PebbleOS
Loading...
Searching...
No Matches
Functions
watchdog.h File Reference
#include <stdbool.h>
#include <pbl/drivers/mcu_reboot_reason.h>

Functions

void watchdog_init (void)
 Configure the watchdog, without starting it.
 
void watchdog_start (void)
 Start the watchdog.
 
void watchdog_stop (void)
 Stop the watchdog.
 
void watchdog_feed (void)
 Restart the watchdog countdown.
 
bool watchdog_check_reset_flag (void)
 Check whether the last reset was caused by the watchdog.
 
McuRebootReason watchdog_clear_reset_flag (void)
 Read and clear the hardware reset cause.
 
McuRebootReason watchdog_get_reset_flag (void)
 Get the reset cause read by the last watchdog_clear_reset_flag().