64 #include <inc/hw_types.h>
65 #include <inc/hw_ints.h>
66 #include <inc/hw_memmap.h>
67 #include <inc/hw_wdt.h>
76 #define WATCHDOG_LOCK_UNLOCKED 0x00000000 // Unlocked
77 #define WATCHDOG_LOCK_LOCKED 0x00000001 // Locked
78 #define WATCHDOG_LOCK_UNLOCK 0x1ACCE551 // Unlocks the Watchdog Timer
86 #define WATCHDOG_INT_TIMEOUT 0x00000001 // Watchdog timer expired
93 #define WATCHDOG_INT_TYPE_INT 0x00000000
94 #define WATCHDOG_INT_TYPE_NMI 0x00000004
286 __STATIC_INLINE uint32_t
304 __STATIC_INLINE uint32_t
414 __STATIC_INLINE uint32_t
#define WATCHDOG_INT_TIMEOUT
static void WatchdogIntRegister(void(*pfnHandler)(void))
Registers an interrupt handler for the watchdog timer interrupt.
#define WATCHDOG_INT_TYPE_NMI
static void WatchdogUnlock(void)
Disables the watchdog timer lock mechanism.
static bool WatchdogRunning(void)
Determines if the watchdog timer is enabled.
static void WatchdogIntUnregister(void)
Unregisters an interrupt handler for the watchdog timer interrupt.
static void WatchdogLock(void)
Enables the watchdog timer lock mechanism.
static void WatchdogStallDisable(void)
Disables stalling of the watchdog timer during debug events.
static uint32_t WatchdogIntStatus(void)
Gets the current watchdog timer interrupt status.
static void WatchdogIntEnable(void)
Enables the watchdog timer.
static uint32_t WatchdogReloadGet(void)
Gets the watchdog timer reload value.
static void WatchdogEnable(void)
Enables the watchdog timer.
static void WatchdogStallEnable(void)
Enables stalling of the watchdog timer during debug events.
static void WatchdogResetEnable(void)
Enables the watchdog timer reset.
#define WATCHDOG_INT_TYPE_INT
static void WatchdogResetDisable(void)
Disables the watchdog timer reset.
#define WATCHDOG_LOCK_UNLOCK
static bool WatchdogLockState(void)
Gets the state of the watchdog timer lock mechanism.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
static uint32_t WatchdogValueGet(void)
Gets the current watchdog timer value.
static void WatchdogIntTypeSet(uint32_t ui32Type)
Sets the type of interrupt generated by the watchdog.
static void WatchdogReloadSet(uint32_t ui32LoadVal)
Sets the watchdog timer reload value.
static void WatchdogIntClear(void)
Clears the watchdog timer interrupt.
#define WATCHDOG_LOCK_LOCKED
void IntDisable(uint32_t ui32Interrupt)
Disables an interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.
void IntEnable(uint32_t ui32Interrupt)
Enables an interrupt.