Open
Description
Setting up a watchdog timer to reset a microcontroller if it isn't serviced at regular intervals is fairly common. Also, from my experience watchdogs tend to be fairly similar and minimalist making them a potentially easy inclusion for a trait. I haven't analysed a large number of controllers but the typical operation seems to be as follows:
- Once enabled watchdog cannot be disabled
- A bit must be set or cleared periodically or processor is reset
- Period length may be configurable
- May be able to see current timer value.
I think 1, 2 and 3 would be essential for a watchdog trait, via functions start
, kick
and set_period
. Due to it on some microcontrollers only offering a subset of timer functionality I'm also not sure how much crossover there should be with the timer traits? Open to discussion this is just prompted by some work I've been doing recently with STM32 processors.
Metadata
Metadata
Assignees
Labels
No labels