Teensy 4.1: WDT_T4 watchdog library - Explanation of settings
I have been using the watchdog Timer library (WDT_4) and find it to be indispensable especially in remote installations.
The library seems to be working but I have never been able to find a good explanation of its settings.
There are basically three settings as you can see below (30, 40, 5500). What is the definition of these settings and their relationship to each other? What are typical values for a Teensy 4.1 application?
Thanks in advance for the community's help.
I have been using the watchdog Timer library (WDT_4) and find it to be indispensable especially in remote installations.
The library seems to be working but I have never been able to find a good explanation of its settings.
There are basically three settings as you can see below (30, 40, 5500). What is the definition of these settings and their relationship to each other? What are typical values for a Teensy 4.1 application?
Thanks in advance for the community's help.
Code:
//------------------------------------------
WDT_timings_t config;
config.trigger = 30;
config.timeout = 40;
config.callback = myCallback;
//------------------------------------------
void feedTheDog()
{
static uint32_t callback_test = millis();
if (millis() - callback_test > 5500) {
callback_test = millis();
//Serial.println("Feeding ....");
wdt.feed(); /* comment to stop feeding the watchdog */
}
}
//------------------------------------------
Last edited: