mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
Fix nrf monotonics (#852)
* Fix nrf::timer * Bootstrap nrf52840-blinky example * More work on nrf blinky example * Fix README * Add asserts for correct timer functionality * Add correctness check to other monotonics as well * Update Changelog * Fix potential timing issues * Fix race condition in nrf::rtc * Add changelog * Add rtc blinky example * Change rtc example to RC lf clock source * Add changelog to rtic-time * Add changelog * Attempt to fix CI * Update teensy4-blinky Cargo.lock
This commit is contained in:
parent
1622f6b953
commit
89160b7cb9
18 changed files with 1080 additions and 101 deletions
|
|
@ -11,6 +11,8 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
|
|||
|
||||
### Changed
|
||||
|
||||
- Docs: Add sanity check to `half_period_counter` code example
|
||||
|
||||
### Fixed
|
||||
|
||||
## v1.1.0 - 2023-12-04
|
||||
|
|
|
|||
|
|
@ -96,11 +96,13 @@
|
|||
//! fn on_interrupt() {
|
||||
//! if overflow_interrupt_happened() {
|
||||
//! clear_overflow_interrupt();
|
||||
//! HALF_PERIOD_COUNTER.fetch_add(1, Ordering::Relaxed);
|
||||
//! let prev = HALF_PERIOD_COUNTER.fetch_add(1, Ordering::Relaxed);
|
||||
//! assert!(prev % 2 == 1, "Monotonic must have skipped an interrupt!");
|
||||
//! }
|
||||
//! if compare_interrupt_happened() {
|
||||
//! clear_compare_interrupt();
|
||||
//! HALF_PERIOD_COUNTER.fetch_add(1, Ordering::Relaxed);
|
||||
//! let prev = HALF_PERIOD_COUNTER.fetch_add(1, Ordering::Relaxed);
|
||||
//! assert!(prev % 2 == 0, "Monotonic must have skipped an interrupt!");
|
||||
//! }
|
||||
//! }
|
||||
//!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue