Enable the watchdog By default the SDK assumes a 12MHz XOSC and sets the watchdog_start_tick appropriately. This method sets a marker in the watchdog scratch register 4 that is checked by watchdog_enable_caused_reboot. If the device is subsequently reset via a call to watchdog_reboot (including for example by dragging a UF2 onto the RPI-RP2), then this value will be cleared, and so watchdog_enable_caused_reboot will return false.
Number of milliseconds before watchdog will reboot without watchdog_update being called. Maximum of 8388, which is approximately 8.3 seconds
pause_on_debug
If the watchdog should be paused when the debugger is stepping through code
Notes
If watchdog_start_tick value does not give a 1MHz clock to the watchdog system, then the \p delay_ms parameter will not be in milliseconds. See the datasheet for more details.
Examples
watchdog_enable() is referenced by 1 libraries and example projects: