Rahix / avr-hal

embedded-hal abstractions for AVR microcontrollers
Apache License 2.0
1.3k stars 219 forks source link

impl wdt modes #556

Open JonasFocke01 opened 4 months ago

JonasFocke01 commented 4 months ago

This adds the ability to set the mode for the watchdog.
Previously the wdt mode was enforced to softreset the board.
Now we can also set it to trigger the WDT interrupt by calling watchdog.set_mode().

This PR closes #552

Please let me know if there is anything i need to change!