Open
Description
I am currently bindgen'ing OpenThread and want to create an idiomatic wrapper around it.
Among other things (e.g. radio-hal), OpenThread needs support for a MilliSecond timer API:
pub unsafe extern "C" fn otPlatAlarmMilliStop(_aInstance: *mut otInstance) {};
pub unsafe extern "C" fn otPlatAlarmMilliStartAt(_aInstance: *mut otInstance, _aT0: u32, _aDt: u32) {};
pub unsafe extern "C" fn otPlatAlarmMilliGetNow() -> u32 {};
I am wondering what I should build this on. I see several (competing? complementing?) options:
- rtic (https://rtic.rs/0.5/book/en/)
- embedded_time (https://docs.rs/embedded-time)
- nb (https://docs.rs/nb/1.0.0/nb/)
- embedded_hal::timer (https://docs.rs/embedded-hal/1.0.0-alpha.1/embedded_hal/index.html)
Any recommendations?