62 #include <inc/hw_types.h>
63 #include <inc/hw_ints.h>
64 #include <inc/hw_memmap.h>
65 #include <inc/hw_wdt.h>
74 #define WATCHDOG_LOCK_UNLOCKED 0x00000000 // Unlocked
75 #define WATCHDOG_LOCK_LOCKED 0x00000001 // Locked
76 #define WATCHDOG_LOCK_UNLOCK 0x1ACCE551 // Unlocks the Watchdog Timer
84 #define WATCHDOG_INT_TIMEOUT 0x00000001 // Watchdog timer expired
91 #define WATCHDOG_INT_TYPE_INT 0x00000000
92 #define WATCHDOG_INT_TYPE_NMI 0x00000004
288 __STATIC_INLINE uint32_t
306 __STATIC_INLINE uint32_t
418 __STATIC_INLINE uint32_t
__STATIC_INLINE void WatchdogUnlock(void)
Disables the watchdog timer lock mechanism.
#define WATCHDOG_INT_TIMEOUT
#define WATCHDOG_INT_TYPE_NMI
__STATIC_INLINE uint32_t WatchdogValueGet(void)
Gets the current watchdog timer value.
__STATIC_INLINE void WatchdogIntEnable(void)
Enables the watchdog timer interrupt.
__STATIC_INLINE void WatchdogResetDisable(void)
Disables the watchdog timer reset.
__STATIC_INLINE void WatchdogIntClear(void)
Clears the watchdog timer interrupt.
__STATIC_INLINE void WatchdogIntTypeSet(uint32_t ui32Type)
Sets the type of interrupt generated by the watchdog.
__STATIC_INLINE void WatchdogLock(void)
Enables the watchdog timer lock mechanism.
__STATIC_INLINE void WatchdogStallEnable(void)
Enables stalling of the watchdog timer during debug events.
__STATIC_INLINE bool WatchdogRunning(void)
Determines if the watchdog timer is enabled.
#define WATCHDOG_INT_TYPE_INT
__STATIC_INLINE bool WatchdogLockState(void)
Gets the state of the watchdog timer lock mechanism.
#define WATCHDOG_LOCK_UNLOCK
__STATIC_INLINE void WatchdogIntRegister(void(*pfnHandler)(void))
Registers an interrupt handler for the watchdog timer interrupt.
__STATIC_INLINE uint32_t WatchdogReloadGet(void)
Gets the watchdog timer reload value.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
__STATIC_INLINE void WatchdogResetEnable(void)
Enables the watchdog timer reset.
__STATIC_INLINE void WatchdogEnable(void)
Enables the watchdog timer.
__STATIC_INLINE void WatchdogReloadSet(uint32_t ui32LoadVal)
Sets the watchdog timer reload value.
__STATIC_INLINE void WatchdogIntUnregister(void)
Unregisters an interrupt handler for the watchdog timer interrupt.
__STATIC_INLINE uint32_t WatchdogIntStatus(void)
Gets the current watchdog timer interrupt status.
#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.
__STATIC_INLINE void WatchdogStallDisable(void)
Disables stalling of the watchdog timer during debug events.