watchdog.h File Reference
#include "pico.h"
#include "hardware/structs/watchdog.h"
Include dependency graph for watchdog.h:

Go to the source code of this file.

Functions

void watchdog_reboot (uint32_t pc, uint32_t sp, uint32_t delay_ms)
 Define actions to perform at watchdog timeout. More...
 
void watchdog_start_tick (uint cycles)
 Start the watchdog tick. More...
 
void watchdog_update (void)
 Reload the watchdog counter with the amount of time set in watchdog_enable.
 
void watchdog_enable (uint32_t delay_ms, bool pause_on_debug)
 Enable the watchdog. More...
 
bool watchdog_caused_reboot (void)
 Did the watchdog cause the last reboot? More...
 
bool watchdog_enable_caused_reboot (void)
 Did watchdog_enable cause the last reboot? More...
 
uint32_t watchdog_get_count (void)
 Returns the number of microseconds before the watchdog will reboot the chip. More...