You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good question, I used these in an internal project before adding in the EmbrioNrf51 abstraction. So you can use them something like
let timer = Timer::timer0(peripherals.TIMER0);
timer.timeout(time).await?;
but that requires bypassing EmbrioNrf51 and getting the Peripherals directly to initialize the different components.
It'd probably be good to add these into EmbrioNrf51 and the example (though that might require changing how they work to support just borrowing the timer instance).
I see there are two timers implemented in https://github.com/Nemo157/embrio-rs/tree/master/embrio-nrf51/src/timer. But as far as I can see they aren't used anywhere?
How is one supposed to use them?
The text was updated successfully, but these errors were encountered: