Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hal: Tock: Namespace HAL, update timer implementation and update libtock-c #1313

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

alistair23
Copy link
Contributor

@alistair23 alistair23 commented Nov 7, 2024

This is based on the discussion here: tock/libtock-c#456 (comment)

This namespaces the Tock HAL public macro and structs and uses the native timer implementation.

This also updates to the latest libtock-c commit. libtock-c now includes a libtockHal.h, so we can use that instead of the version in RadioLib.

@alistair23
Copy link
Contributor Author

alistair23 commented Nov 7, 2024

The Tock CI failure is because there is a chicken and egg problem with the libtock-c submodule. We need tock/libtock-c#456 merged and then update libtock-c based on these changes.

ppannuto and others added 2 commits November 13, 2024 21:18
Tock has direct support for querying time. The prior `millis()`
method here replicated the same functionality, but missed some
corner case concerns around overflow/wrapping. Instead, just use
the native Tock time getter method. This also removes unneeded
global variables and methods.
Update to the latest libtock-c commit. libtock-c now includes a
libtockHal.h, so we can use that instead of the version here.

Signed-off-by: Alistair Francis <[email protected]>
@alistair23 alistair23 force-pushed the pats/tock-hal-updates branch from 075d977 to ff12e94 Compare November 13, 2024 11:22
@alistair23 alistair23 changed the title hal: Tock: Namespace Tock HAL and update timer implementation hal: Tock: Namespace Tock HAL, update timer implementation and update libtock-c Nov 13, 2024
@alistair23 alistair23 changed the title hal: Tock: Namespace Tock HAL, update timer implementation and update libtock-c hal: Tock: Namespace HAL, update timer implementation and update libtock-c Nov 13, 2024
@jgromes
Copy link
Owner

jgromes commented Nov 13, 2024

Looks good to me! @alistair23 since the PR in libtock was merged, I guess that now this is ready to be merged as well, correct?

@alistair23
Copy link
Contributor Author

Looks good to me! @alistair23 since the PR in libtock was merged, I guess that now this is ready to be merged as well, correct?

Yep! This is ready to go

@jgromes jgromes merged commit 9d9d480 into jgromes:master Nov 14, 2024
28 checks passed
@jgromes
Copy link
Owner

jgromes commented Nov 14, 2024

Merged, thank you!

@alistair23 alistair23 deleted the pats/tock-hal-updates branch November 14, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants