How to convert frequency types (e.g. Hertz) back to u32?
sourcebox opened this issue · comments
This does not work because systick.set_reload()
requires an u32 value:
systick.set_reload(clocks.hclk() / 1000 - 1);
So what's the way to go here?
A Hardware abstraction layer for the stm32l432xx series chips written in rust.
sourcebox opened this issue · comments
This does not work because systick.set_reload()
requires an u32 value:
systick.set_reload(clocks.hclk() / 1000 - 1);
So what's the way to go here?