![]() |
NEORV32 - Software Framework Documentation
|
Watchdog Timer (WDT) HW driver header file. More...
Go to the source code of this file.
Functions | |
int | neorv32_wdt_available (void) |
void | neorv32_wdt_setup (uint8_t prsc, uint8_t mode, uint8_t lock) |
int | neorv32_wdt_disable (void) |
void | neorv32_wdt_reset (void) |
int | neorv32_wdt_get_cause (void) |
void | neorv32_wdt_force (void) |
Watchdog Timer (WDT) HW driver header file.
int neorv32_wdt_available | ( | void | ) |
Check if WDT unit was synthesized.
int neorv32_wdt_disable | ( | void | ) |
Disable watchdog timer.
void neorv32_wdt_force | ( | void | ) |
Force immediate watchdog action (reset/IRQ).
int neorv32_wdt_get_cause | ( | void | ) |
Get cause of last system reset.
void neorv32_wdt_reset | ( | void | ) |
Feed watchdog (reset timeout counter).
void neorv32_wdt_setup | ( | uint8_t | prsc, |
uint8_t | mode, | ||
uint8_t | lock | ||
) |
Configure and enable watchdog timer. The WDT control register bits are listed in NEORV32_WDT_CTRL_enum.
[in] | prsc | Clock prescaler to select timeout interval. See NEORV32_CLOCK_PRSC_enum. |
[in] | mode | Trigger system reset on timeout when 1, trigger interrupt on timeout when 0. |
[in] | lock | Control register will be locked when 1 (until next reset). |