7#ifndef _HARDWARE_WATCHDOG_H
8#define _HARDWARE_WATCHDOG_H
11#include "hardware/structs/watchdog.h"
34#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_WATCHDOG
35#ifdef PARAM_ASSERTIONS_ENABLED_WATCHDOG
36#define PARAM_ASSERTIONS_ENABLED_HARDWARE_WATCHDOG PARAM_ASSERTIONS_ENABLED_WATCHDOG
38#define PARAM_ASSERTIONS_ENABLED_HARDWARE_WATCHDOG 0
136static inline uint32_t watchdog_get_count(
void) {
void watchdog_update(void)
Reload the watchdog counter with the amount of time set in watchdog_enable.
Definition watchdog.c:26
bool watchdog_enable_caused_reboot(void)
Did watchdog_enable cause the last reboot?
Definition watchdog.c:123
uint32_t watchdog_get_time_remaining_ms(void)
Returns the number of microseconds before the watchdog will reboot the chip.
Definition watchdog.c:31
bool watchdog_caused_reboot(void)
Did the watchdog cause the last reboot?
Definition watchdog.c:114
void watchdog_enable(uint32_t delay_ms, bool pause_on_debug)
Enable the watchdog.
Definition watchdog.c:79
void watchdog_reboot(uint32_t pc, uint32_t sp, uint32_t delay_ms)
Define actions to perform at watchdog timeout.
Definition watchdog.c:90
void watchdog_start_tick(uint cycles)
Start the watchdog tick.
Definition watchdog.c:16
void watchdog_disable(void)
Disable the watchdog.
Definition watchdog.c:86