stm32-rs / stm32l4xx-hal

A Hardware abstraction layer for the stm32l432xx series chips written in rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?