Closed gpb01 closed 9 months ago
I had the exact same thought, but you did it. I suggest some modifications.
I suggest some modifications.
Suggestions are always welcome. :-)
Guglielmo
I think it's fine.
Yes 👍
You can merge the pull-request 😊
Thank you! What's the effect of using the other oscillator? Longer intervals?
What's the effect of using the other oscillator? Longer intervals?
The opposite, getting shorter intervals:
#define WTOH_1MS 0
#define WTOH_2MS 1
#define WTOH_4MS 2
#define WTOH_8MS 3
#define WTOH_16MS 4
#define WTOH_32MS 5
#define WTOH_64MS 6
#define WTOH_128MS 7
#define WTOH_256MS 8
#define WTOH_512MS 9
which can be useful on various occasions, e.g. either when the system clock is 32 MHz, or for porting libraries like FreeRTOS that use the WDT interrupt as a system tick.
Guglielmo
PR is waiting ... :-)
Guglielmo
Oh no, sorry for making this wait!
Adds the capability of using the HFRC oscillator for WDT. A usage example has been added.