stm32-rs / stm32l0xx-hal

A hardware abstraction layer (HAL) for the STM32L0 series microcontrollers written in Rust
BSD Zero Clause License
96 stars 60 forks source link

Fix max frequency assertion #186

Closed jamwaffles closed 3 years ago

jamwaffles commented 3 years ago

IIRC I did test the examples when working on #183, but this error shows up when using the PLL which none of them do. I found this when testing with my own project code. At any rate, here's a fix for embedded-time comparisons when using the PLL.