117 uint32_t microsec_period,
WDT_CLK_DIV
Clock divider settings.
Definition wdt.h:59
void wdt_pet(void)
Resets the counter value.
void wdt_set_counter(uint8_t value)
Sets the counter value.
void wdt_enable_watchdog(uint8_t initial_count, WDT_CLK_DIV clk_config, WDT_RST reset_select)
Enables the WDT in watchdog mode.
int wdt_is_enabled(void)
Returns whether the WDT is enabled.
WDT_RST
Reset signal type.
Definition wdt.h:76
void wdt_enable_timer(uint8_t initial_count, uint32_t microsec_period, uint8_t irq_prio, wdt_callback callback, void *user_data)
Enables the WDT as an interval timer.
uint8_t wdt_get_counter(void)
Fetches the counter value.
void wdt_disable(void)
Disables the WDT.
@ WDT_CLK_DIV_1024
Period: 1.31ms.
Definition wdt.h:65
@ WDT_CLK_DIV_2048
Period: 2.62ms.
Definition wdt.h:66
@ WDT_CLK_DIV_64
Period: 82us.
Definition wdt.h:61
@ WDT_CLK_DIV_256
Period: 328us.
Definition wdt.h:63
@ WDT_CLK_DIV_4096
Period: 5.25ms.
Definition wdt.h:67
@ WDT_CLK_DIV_512
Period: 656us.
Definition wdt.h:64
@ WDT_CLK_DIV_32
Period: 41us.
Definition wdt.h:60
@ WDT_CLK_DIV_128
Period: 164us.
Definition wdt.h:62
@ WDT_RST_POWER_ON
Power-On Reset.
Definition wdt.h:77
@ WDT_RST_MANUAL
Manual Reset.
Definition wdt.h:78
void(* wdt_callback)(void *user_data)
Definition wdt.h:86