NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
Direct Memory Access Controller (DMA) HW driver source file. More...
#include <neorv32.h>
Functions | |
int | neorv32_wdt_available (void) |
void | neorv32_wdt_setup (uint32_t timeout, int lock, int debug_en, int sleep_en, int strict) |
int | neorv32_wdt_disable (void) |
void | neorv32_wdt_feed (uint32_t password) |
int | neorv32_wdt_get_cause (void) |
Direct Memory Access Controller (DMA) HW driver source file.
Watchdog Timer (WDT) HW driver source file.
int neorv32_wdt_available | ( | void | ) |
Check if WDT unit was synthesized.
int neorv32_wdt_disable | ( | void | ) |
Disable watchdog timer.
void neorv32_wdt_feed | ( | uint32_t | password | ) |
Feed watchdog (reset timeout counter).
[in] | password | Password for WDT reset. |
int neorv32_wdt_get_cause | ( | void | ) |
Get cause of last system reset.
void neorv32_wdt_setup | ( | uint32_t | timeout, |
int | lock, | ||
int | debug_en, | ||
int | sleep_en, | ||
int | strict ) |
Configure and enable watchdog timer. The WDT control register bits are listed in NEORV32_WDT_CTRL_enum.
[in] | timeout | 24-bit timeout value. A WDT IRQ is triggered when the internal counter reaches 'timeout/2'. A system hardware reset is triggered when the internal counter reaches 'timeout'. |
[in] | lock | Control register will be locked when 1 (until next reset). |
[in] | debug_en | Allow watchdog to continue operation even when CPU is in debug mode. |
[in] | sleep_en | Allow watchdog to continue operation even when CPU is in sleep mode. |
[in] | strict | Force hardware reset if reset password is incorrect or if trying to alter a locked configuration. |