modm-io / modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices
https://modm.io
Mozilla Public License 2.0
733 stars 131 forks source link

Refactor IWDG driver and add initialize function for prescaler with downcounter #1122

Closed salkinium closed 7 months ago

salkinium commented 7 months ago

Ok, this escalated a little. I was just looking through the code and saw that the Iwdg class was not inlined, so I quickly refactored it and then noticed that the prescaler was manually computed and then I had to program a constexpr algorithm for it.

salkinium commented 7 months ago

Great, I messed up and merged this accidentally while rebasing. Fantastic…

salkinium commented 7 months ago

There's no way to open a merged PR, unlike closed PRs, so I'll address the review in a separate PR on the weekend. Damn it.