RIOT-OS / rust-riot-wrappers

The `riot-wrappers` crate, which enables high-level access to RIOT from the Rust programming language
13 stars 10 forks source link

Implement groundhog::RollingTimer and Default for ZTimer clocks #9

Open chrysn opened 2 years ago

chrysn commented 2 years ago

This would make the timer the trivial choice for running being used with choreographer -- nice blinky LEDs!

To make ZTimer clocks default-able, they'll need to take a clock into the type. That'd be a good idea anyway.

chrysn commented 2 years ago

This depends on https://github.com/RIOT-OS/RIOT/pull/17607 or at least some ztimer_acquire to be available in RIOT.

chrysn commented 2 years ago

It also depends on some resolution of https://github.com/jamesmunns/groundhog/issues/1 -- it'd be easiest if its resolution were "yes we'll just lug around the timers"; with the other resolution, creation of the type itself would somehow need to be gated by a once performed acquisition (and I'm not sure yet how that'd work out).