aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nrf/src')
-rw-r--r--embassy-nrf/src/time_driver.rs11
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")]