diff options
| author | Ulf Lilleengen <[email protected]> | 2025-11-26 14:42:46 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-11-26 14:42:46 +0100 |
| commit | da96ef9d51730975b52fa2c92ec27236b68f1daf (patch) | |
| tree | 0ed8adae028870ef057e24cd00920dac9678cd4f /embassy-nrf | |
| parent | cb293d866ed26d2b6c8018450ece26d84089e137 (diff) | |
chore: cleanup
Diffstat (limited to 'embassy-nrf')
| -rw-r--r-- | embassy-nrf/src/time_driver.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/embassy-nrf/src/time_driver.rs b/embassy-nrf/src/time_driver.rs index de1974fb7..35f65bd64 100644 --- a/embassy-nrf/src/time_driver.rs +++ b/embassy-nrf/src/time_driver.rs | |||
| @@ -182,15 +182,10 @@ impl RtcDriver { | |||
| 182 | while r.counter().read().0 != 0 {} | 182 | while r.counter().read().0 != 0 {} |
| 183 | 183 | ||
| 184 | #[cfg(feature = "_grtc")] | 184 | #[cfg(feature = "_grtc")] |
| 185 | { | 185 | loop { |
| 186 | // According to datasheet, we need to wait for STATUS.LFTIMER.READY | 186 | if r.status().lftimer().read().ready() { |
| 187 | // before the timer is actually started | 187 | break; |
| 188 | loop { | ||
| 189 | if r.status().lftimer().read().ready() { | ||
| 190 | break; | ||
| 191 | } | ||
| 192 | } | 188 | } |
| 193 | // Keep SYSCOUNTER[0] always active so we can read it anytime without BUSY waits | ||
| 194 | } | 189 | } |
| 195 | 190 | ||
| 196 | #[cfg(feature = "_grtc")] | 191 | #[cfg(feature = "_grtc")] |
