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

RTIC Monotonic for RTC and TIMER #427

Merged
merged 79 commits into from
May 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
bcea11c
added monotonic file and feature-flag
ivajon Sep 18, 2023
dccf6ff
corrected feature flag
ivajon Sep 19, 2023
3e3ce6b
impl now, clear_compare_flag
ivajon Sep 19, 2023
e4d8750
zero, reset
ivajon Sep 19, 2023
d4c0a0b
instantiatable
ivajon Sep 19, 2023
253927c
test
ivajon Sep 20, 2023
cc12409
Kinda works
ivajon Sep 20, 2023
9ea385f
freq gated new works now
ivajon Sep 21, 2023
7bc7cdc
all timers implemented
ivajon Sep 21, 2023
32c954e
Added documentation
ivajon Sep 22, 2023
06d73de
move to a sealed mod
ivajon Sep 22, 2023
9d7a5ed
first draft with now, clear_compare_flag, zero and reset
Kyrne Sep 23, 2023
3280617
improved by casting RegBlock3 to RegBlock0
ivajon Sep 24, 2023
e780752
rework to use agnostic trait
ivajon Sep 24, 2023
3970769
add compiler gates to ensure future documentation
ivajon Sep 24, 2023
0956ee2
macro cleanup
ivajon Sep 24, 2023
b027b0a
added example
ivajon Sep 25, 2023
c495801
quick-start docs
ivajon Sep 25, 2023
8e9738c
include new test in xtask
ivajon Sep 25, 2023
1a39be7
remove redundant target flag
ivajon Sep 25, 2023
5f1419d
finishing up
Kyrne Sep 25, 2023
3467cd4
a little cleaner, still issues with TIMER>0
ivajon Sep 25, 2023
d937b19
cleanup register access
ivajon Sep 26, 2023
b7b0bf5
correct errors
ivajon Sep 26, 2023
6280b18
cleanup
ivajon Sep 26, 2023
68c6594
make macro reusable
ivajon Sep 26, 2023
af2e81c
add mod
Kyrne Sep 26, 2023
46508d3
Implements monotonic on the TIMER peripheral
Kyrne Sep 26, 2023
ca3181c
remove RateMonotonic
ivajon Sep 26, 2023
678411d
remove add interrupt dissable flag
ivajon Sep 26, 2023
9011590
merge with main
Kyrne Sep 26, 2023
ab2293d
Merge pull request #14 from Kyrne/timer_abstraction
ivajon Sep 26, 2023
ce962b7
migrate logic out of macros
ivajon Sep 26, 2023
d560fbc
rename instant -> instance
ivajon Sep 26, 2023
f565cef
migrate logic out of macros
Kyrne Sep 26, 2023
afc8bc1
merge with main
Kyrne Sep 26, 2023
0396276
Merge branch 'master' of https://github.com/Kyrne/nrf-hal into rtc
Kyrne Sep 26, 2023
d6d0af1
macro changed and started implementing rtcinstance
Kyrne Sep 26, 2023
b8c9c09
rework to implement monotonic on registers rather than peripherals
ivajon Sep 27, 2023
1587537
rework to 2 abstraction
ivajon Sep 27, 2023
b0ab6f0
moved rtc new outside macro
Kyrne Sep 27, 2023
0a18193
fix overflow
Kyrne Sep 27, 2023
d018fe1
fix instance
Kyrne Sep 28, 2023
faa65c8
rtc example
Kyrne Sep 28, 2023
9ebf3f9
added rtc calculatios
Kyrne Sep 30, 2023
c54200c
update presc
Kyrne Oct 1, 2023
4c67592
update presc
Kyrne Oct 1, 2023
818aab2
update freq gate macro and fixed error enum
Kyrne Oct 1, 2023
a85ab5e
restructure and finishing up docs
Kyrne Oct 1, 2023
b907c01
fixed rtc and timer examples
Kyrne Oct 1, 2023
6792120
address pr issues
Kyrne Oct 1, 2023
4a001a6
change main to rtc example
Kyrne Oct 2, 2023
e8a273f
unused doc comment
Kyrne Oct 2, 2023
c9918b5
Merge pull request #16 from Kyrne/rtc
Kyrne Oct 2, 2023
6411305
decrease the macro footprint
ivajon Oct 2, 2023
4d00979
update docs to be a bit cleaner
ivajon Oct 2, 2023
fea0c7b
Merge pull request #17 from Kyrne/decrease_macro_footprint
Kyrne Oct 2, 2023
a151adf
update lib.rs
ivajon Oct 3, 2023
99e7531
fix max prescaler value
Kyrne Oct 3, 2023
55492ec
Fix build after #422.
qwandor May 23, 2024
ad04c72
Merge branch 'buildfix' into monotonic
qwandor May 23, 2024
9d48d4c
cargo fmt
qwandor May 23, 2024
8827d13
Link to latest version of docs.
qwandor May 23, 2024
75f9095
Remove comment from template.
qwandor May 23, 2024
f34be4f
Update dependencies of example.
qwandor May 23, 2024
220912c
Fixes for embedded-hal 1.0.
qwandor May 23, 2024
b72c65f
No point reexporting a module that is already public.
qwandor May 23, 2024
bfe7f5a
Add monotonic feature for nrf52805 too.
qwandor May 23, 2024
ac0dd6d
Remove duplicate example.
qwandor May 23, 2024
ccca311
Make both examples binaries.
qwandor May 23, 2024
c08102e
Sort dependencies.
qwandor May 23, 2024
8708f6b
Add to changelog.
qwandor May 23, 2024
4a6760e
Fix cargo doc warnings.
qwandor May 23, 2024
bb1bb77
Fix feature conditions.
qwandor May 23, 2024
8eff0e5
Format doc comments and fix typos.
qwandor May 23, 2024
3c353da
Monotonic doesn't build on nrf51 or nrf52832 so remove the feature.
qwandor May 23, 2024
c8bf535
Correct docs (#18)
ivajon May 23, 2024
ee11451
rename user facing feature to rtic-monotonic
ivajon May 23, 2024
4c00992
Use consistent feature name.
qwandor May 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add compiler gates to ensure future documentation
  • Loading branch information
ivajon committed Sep 24, 2023
commit 39707697a52ed752e75abec799c72f64ecc0c1cd
8 changes: 7 additions & 1 deletion nrf-hal-common/src/monotonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ The TIMER's are configured to use a 32 bit wide counter, this means that the tim
[`MonotonicTimer`] documentation.
**/

#![deny(missing_docs)]
#![deny(non_camel_case_types)]
#![deny(clippy::all)]
#![deny(clippy::undocumented_unsafe_blocks)]


#[cfg(any(feature = "9160", feature = "5340-app", feature = "5340-net"))]
use crate::pac::{
timer0_ns::RegisterBlock as RegBlock0, TIMER0_NS as TIMER0, TIMER1_NS as TIMER1,
Expand Down Expand Up @@ -73,7 +79,7 @@ mod sealed {
unsafe fn _reset(&mut self);
}
}
use sealed::{Instance,RateMonotonic};
use sealed::{Instance, RateMonotonic};

/// A marker trait denoting
/// that the specified [`pac`](crate::pac)
Expand Down