watchdog_reboot() function
Define actions to perform at watchdog timeout By default the SDK assumes a 12MHz XOSC and sets the watchdog_start_tick appropriately.
Syntax
void watchdog_reboot(uint32_t pc,
uint32_t sp,
uint32_t delay_ms);
Arguments
pc
If Zero, a standard boot will be performed, if non-zero this is the program counter to jump to on reset.
sp
If \p pc is non-zero, this will be the stack pointer used.
delay_ms
Initial load value. Maximum value 8388, approximately 8.3s.
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.