CC3200 Peripheral Driver Library User's Guide
1.2.0
|
Functions | |
tBoolean | WatchdogRunning (unsigned long ulBase) |
void | WatchdogEnable (unsigned long ulBase) |
void | WatchdogLock (unsigned long ulBase) |
void | WatchdogUnlock (unsigned long ulBase) |
tBoolean | WatchdogLockState (unsigned long ulBase) |
void | WatchdogReloadSet (unsigned long ulBase, unsigned long ulLoadVal) |
unsigned long | WatchdogReloadGet (unsigned long ulBase) |
unsigned long | WatchdogValueGet (unsigned long ulBase) |
void | WatchdogIntRegister (unsigned long ulBase, void(*pfnHandler)(void)) |
void | WatchdogIntUnregister (unsigned long ulBase) |
unsigned long | WatchdogIntStatus (unsigned long ulBase, tBoolean bMasked) |
void | WatchdogIntClear (unsigned long ulBase) |
void | WatchdogStallEnable (unsigned long ulBase) |
void | WatchdogStallDisable (unsigned long ulBase) |
void WatchdogEnable | ( | unsigned long | ulBase | ) |
Enables the watchdog timer.
ulBase | is the base address of the watchdog timer module. |
This will enable the watchdog timer counter and interrupt.
void WatchdogIntClear | ( | unsigned long | ulBase | ) |
Clears the watchdog timer interrupt.
ulBase | is the base address of the watchdog timer module. |
The watchdog timer interrupt source is cleared, so that it no longer asserts.
void WatchdogIntRegister | ( | unsigned long | ulBase, |
void(*)(void) | pfnHandler | ||
) |
Registers an interrupt handler for watchdog timer interrupt.
ulBase | is the base address of the watchdog timer module. |
pfnHandler | is a pointer to the function to be called when the watchdog timer interrupt occurs. |
This function does the actual registering of the interrupt handler. This will enable the global interrupt in the interrupt controller; the watchdog timer interrupt must be enabled via WatchdogEnable(). It is the interrupt handler's responsibility to clear the interrupt source via WatchdogIntClear().
unsigned long WatchdogIntStatus | ( | unsigned long | ulBase, |
tBoolean | bMasked | ||
) |
Gets the current watchdog timer interrupt status.
ulBase | is the base address of the watchdog timer module. |
bMasked | is false if the raw interrupt status is required and true if the masked interrupt status is required. |
This returns the interrupt status for the watchdog timer module. Either the raw interrupt status or the status of interrupt that is allowed to reflect to the processor can be returned.
void WatchdogIntUnregister | ( | unsigned long | ulBase | ) |
Unregisters an interrupt handler for the watchdog timer interrupt.
ulBase | is the base address of the watchdog timer module. |
This function does the actual unregistering of the interrupt handler. This function will clear the handler to be called when a watchdog timer interrupt occurs. This will also mask off the interrupt in the interrupt controller so that the interrupt handler no longer is called.
void WatchdogLock | ( | unsigned long | ulBase | ) |
Enables the watchdog timer lock mechanism.
ulBase | is the base address of the watchdog timer module. |
Locks out write access to the watchdog timer configuration registers.
tBoolean WatchdogLockState | ( | unsigned long | ulBase | ) |
Gets the state of the watchdog timer lock mechanism.
ulBase | is the base address of the watchdog timer module. |
Returns the lock state of the watchdog timer registers.
unsigned long WatchdogReloadGet | ( | unsigned long | ulBase | ) |
Gets the watchdog timer reload value.
ulBase | is the base address of the watchdog timer module. |
This function gets the value that is loaded into the watchdog timer when the count reaches zero for the first time.
void WatchdogReloadSet | ( | unsigned long | ulBase, |
unsigned long | ulLoadVal | ||
) |
Sets the watchdog timer reload value.
ulBase | is the base address of the watchdog timer module. |
ulLoadVal | is the load value for the watchdog timer. |
This function sets the value to load into the watchdog timer when the count reaches zero for the first time; if the watchdog timer is running when this function is called, then the value will be immediately loaded into the watchdog timer counter. If the ulLoadVal parameter is 0, then an interrupt is immediately generated.
tBoolean WatchdogRunning | ( | unsigned long | ulBase | ) |
Determines if the watchdog timer is enabled.
ulBase | is the base address of the watchdog timer module. |
This will check to see if the watchdog timer is enabled.
void WatchdogStallDisable | ( | unsigned long | ulBase | ) |
Disables stalling of the watchdog timer during debug events.
ulBase | is the base address of the watchdog timer module. |
This function disables the debug mode stall of the watchdog timer. By doing so, the watchdog timer continues to count regardless of the processor debug state.
void WatchdogStallEnable | ( | unsigned long | ulBase | ) |
Enables stalling of the watchdog timer during debug events.
ulBase | is the base address of the watchdog timer module. |
This function allows the watchdog timer to stop counting when the processor is stopped by the debugger. By doing so, the watchdog is prevented from expiring (typically almost immediately from a human time perspective) and resetting the system (if reset is enabled). The watchdog will instead expired after the appropriate number of processor cycles have been executed while debugging (or at the appropriate time after the processor has been restarted).
void WatchdogUnlock | ( | unsigned long | ulBase | ) |
Disables the watchdog timer lock mechanism.
ulBase | is the base address of the watchdog timer module. |
Enables write access to the watchdog timer configuration registers.
unsigned long WatchdogValueGet | ( | unsigned long | ulBase | ) |
Gets the current watchdog timer value.
ulBase | is the base address of the watchdog timer module. |
This function reads the current value of the watchdog timer.