There was an error while loading. Please reload this page.
2 parents 20cdf16 + 8c9a288 commit dd8e4c1Copy full SHA for dd8e4c1
1 file changed
embassy-nrf/src/time_driver.rs
@@ -218,8 +218,10 @@ impl RtcDriver {
218
r.events_compare(n).write_value(0);
219
r.intenclr(DOMAIN_IDX).write(|w| w.0 = compare_n(n));
220
221
- // 3. Clear and start the counter.
+ // 3. Clear and start the counter when lftimer is ready
222
+ while !r.status().lftimer().read().ready() {}
223
r.tasks_clear().write_value(1);
224
225
r.tasks_start().write_value(1);
226
227
// 4. Configure the sleep/wake mechanism and enable the SYSCOUNTER.
0 commit comments