v1.5.0
Go to the documentation of this file.
7 #ifndef _HARDWARE_WATCHDOG_H
8 #define _HARDWARE_WATCHDOG_H
11 #include "hardware/structs/watchdog.h"
uint32_t watchdog_get_count(void)
Returns the number of microseconds before the watchdog will reboot the chip.
Definition: watchdog.c:30
void watchdog_reboot(uint32_t pc, uint32_t sp, uint32_t delay_ms)
Define actions to perform at watchdog timeout.
Definition: watchdog.c:77
bool watchdog_enable_caused_reboot(void)
Did watchdog_enable cause the last reboot?
Definition: watchdog.c:104
void watchdog_start_tick(uint cycles)
Start the watchdog tick.
Definition: watchdog.c:14
void watchdog_enable(uint32_t delay_ms, bool pause_on_debug)
Enable the watchdog.
Definition: watchdog.c:70
bool watchdog_caused_reboot(void)
Did the watchdog cause the last reboot?
Definition: watchdog.c:99
void watchdog_update(void)
Reload the watchdog counter with the amount of time set in watchdog_enable.
Definition: watchdog.c:25