This functional group implements management of the interrupts of the watchdog timers.
Returns the status of the interrupt of the specified watchdog timer module but does not clear it. Return TRUE if the interrupt of the specified general purpose timer module is pending and FALSE otherwise.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt is currently pending. |
FALSE | The timer interrupt is not currently pending. |
Returns the state of the interrupt of the specified watchdog timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt is currently pending. |
FALSE | The timer interrupt is not currently pending. |
Clears the pending status of the interrupt of the specified watchdog timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |
Returns the status of the interrupt of the specified watchdog timer module and also clears it. Return TRUE if the interrupt of the specified timer module is pending and FALSE otherwise.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt was pending. |
FALSE | The timer interrupt was not pending. |
Sets the timeout response mode of the specified watchdog timer. For ALT_WATCHDOGx or ALT_WATCHDOGx_INITIAL, the options are to generate a system reset or to generate an interrupt and then generate a system reset if the interrupt is not cleared by the next time the watchdog timer counter rolls over.
- Parameters
-
tmr_id | The timer identifier. |
type | ALT_WDOG_WARM_RESET - reset the core immediately.
ALT_WDOG_INT_THEN_RESET - raise an interrupt. If the interrupt is not cleared before the timer counts down to zero again, reset the CPU cores.
|
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |
ALT_E_BAD_ARG | Specified an incorrect timer or an unsupported response mode for the specified timer. |
Returns the response mode of the specified timer.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_WDOG_WARM_RESET | - reset the core immediately.
|
ALT_WDOG_INT_THEN_RESET | - Raise an interrupt. If the interrupt is not cleared before timer wraps around again, reset the CPU cores.
|
ALT_WDOG_UNKNOWN | - The operation failed or invalid watchdog timer id. |
Returns the component code of the watchdog timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
uint32_t | The component code of the module. It should be 0x44570120. |
Returns the version code of the watchdog timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
uint32_t | The encoded revision number of the module. |