can i ask a question about the watchdog code that you have posted.
Would mind telling me how the WatchdogIntHandler interrupt function was called ? I understand that feedwatchdog variable is use to determine the state within the WatchdogIntHandler function if the watchdog should reset or not. But i am kinda of confused by how the WatchdogIntHandler interrupt function is being called ? Is it through the watchdogreloadset() where once 2s is up, it will automatically trigger WatchdogIntHandler function ?
// Register the watchdog interrupt handler