![]() |
![]() |
|
CC35xxDriverLibrary
|
|
Macros | |
| #define | HOSTMCU_AON_CFGWICSNS_ELP_TMR_EN (HOSTMCU_AON_CFGWICSNS_VAL_TMRREQ_EN << 0) |
| #define | HOSTMCU_AON_CFGWUTP_ELP_TMR_FAST (HOSTMCU_AON_CFGWUTP_VAL_TMRREQ << 0) |
Functions | |
| __STATIC_INLINE void | WatchdogClearWakeUpEvent (void) |
| Clears the timer wake-up event. More... | |
| __STATIC_INLINE void | WatchdogDisableWakeUpEvent (void) |
| Disables the timer wake-up event. More... | |
| __STATIC_INLINE void | WatchdogDisableResetEvent (void) |
| Disables the timer reset event. More... | |
| __STATIC_INLINE void | WatchdogEnableWakeUpEvent (void) |
| Enables the timer wake-up event. More... | |
| __STATIC_INLINE void | WatchdogEnableResetEvent (void) |
| Enables the timer reset event. More... | |
| __STATIC_INLINE bool | WatchdogStatus (void) |
| Reads the status of the timer. More... | |
| __STATIC_INLINE void | WatchdogWaitUntilEnabled (void) |
| Waits until the timer is enabled. More... | |
| __STATIC_INLINE void | WatchdogWaitUntilDisabled (void) |
| Waits until the timer is disabled. More... | |
| __STATIC_INLINE void | WatchdogReset (void) |
| Re-sets the timer back to zero. More... | |
| __STATIC_INLINE void | WatchdogSetWakeUpThreshold (uint32_t ticks) |
| Sets the wake-up threshold. More... | |
| __STATIC_INLINE void | WatchdogSetResetThreshold (uint32_t ticks) |
| Sets the reset threshold. More... | |
| __STATIC_INLINE void | WatchdogSetSwMode (void) |
| Configures the timer to work in software mode. More... | |
| void | WatchdogStartSequence (void) |
| Sequence to start the timer. More... | |
| void | WatchdogStopSequence (void) |
| Sequence to stop the timer. More... | |
| #define HOSTMCU_AON_CFGWICSNS_ELP_TMR_EN (HOSTMCU_AON_CFGWICSNS_VAL_TMRREQ_EN << 0) |
Referenced by WatchdogDisableWakeUpEvent(), and WatchdogEnableWakeUpEvent().
| #define HOSTMCU_AON_CFGWUTP_ELP_TMR_FAST (HOSTMCU_AON_CFGWUTP_VAL_TMRREQ << 0) |
Referenced by WatchdogEnableWakeUpEvent().
| __STATIC_INLINE void WatchdogClearWakeUpEvent | ( | void | ) |
Clears the timer wake-up event.
References HOSTMCU_AON_BASE, HOSTMCU_AON_O_TMRWUREQ, HOSTMCU_AON_TMRWUREQ_CLR_M, and HWREG.
| __STATIC_INLINE void WatchdogDisableWakeUpEvent | ( | void | ) |
Disables the timer wake-up event.
References HOSTMCU_AON_BASE, HOSTMCU_AON_CFGTMRWU_EN, HOSTMCU_AON_CFGWICSNS_ELP_TMR_EN, HOSTMCU_AON_O_CFGTMRWU, HOSTMCU_AON_O_CFGWICSNS, and HWREG.
| __STATIC_INLINE void WatchdogDisableResetEvent | ( | void | ) |
Disables the timer reset event.
References HOSTMCU_AON_BASE, HOSTMCU_AON_CFGWDT_EN, HOSTMCU_AON_O_CFGWDT, and HWREG.
| __STATIC_INLINE void WatchdogEnableWakeUpEvent | ( | void | ) |
Enables the timer wake-up event.
This function configures the wake-up event as a fast wake-up source, as a sleep wake-up source and enables it.
References HOSTMCU_AON_BASE, HOSTMCU_AON_CFGTMRWU_EN, HOSTMCU_AON_CFGWICSNS_ELP_TMR_EN, HOSTMCU_AON_CFGWUTP_ELP_TMR_FAST, HOSTMCU_AON_O_CFGTMRWU, HOSTMCU_AON_O_CFGWICSNS, HOSTMCU_AON_O_CFGWUTP, and HWREG.
| __STATIC_INLINE void WatchdogEnableResetEvent | ( | void | ) |
Enables the timer reset event.
References HOSTMCU_AON_BASE, HOSTMCU_AON_CFGWDT_EN, HOSTMCU_AON_O_CFGWDT, and HWREG.
| __STATIC_INLINE bool WatchdogStatus | ( | void | ) |
Reads the status of the timer.
References HOSTMCU_AON_BASE, HOSTMCU_AON_ELPTMREN_VAL_M, HOSTMCU_AON_ELPTMREN_VAL_S, HOSTMCU_AON_O_ELPTMREN, and HWREG.
Referenced by WatchdogWaitUntilDisabled(), and WatchdogWaitUntilEnabled().
| __STATIC_INLINE void WatchdogWaitUntilEnabled | ( | void | ) |
Waits until the timer is enabled.
References HOSTMCU_AON_ELPTMREN_VAL_EN, and WatchdogStatus().
Referenced by WatchdogStartSequence().
| __STATIC_INLINE void WatchdogWaitUntilDisabled | ( | void | ) |
Waits until the timer is disabled.
References HOSTMCU_AON_ELPTMREN_VAL_DIS, and WatchdogStatus().
Referenced by WatchdogStopSequence().
| __STATIC_INLINE void WatchdogReset | ( | void | ) |
Re-sets the timer back to zero.
References HOSTMCU_AON_BASE, HOSTMCU_AON_ELPTMREN_ELPTMRLD, HOSTMCU_AON_O_ELPTMREN, and HWREG.
Referenced by WatchdogStartSequence().
| __STATIC_INLINE void WatchdogSetWakeUpThreshold | ( | uint32_t | ticks | ) |
Sets the wake-up threshold.
| [in] | ticks | is the time in reset threshold ticks. Must be greater than 1. |
References HOSTMCU_AON_BASE, HOSTMCU_AON_CFGTMRWU_THR_M, HOSTMCU_AON_CFGWDT_THR_M, HOSTMCU_AON_CFGWDT_THR_S, HOSTMCU_AON_O_CFGTMRWU, and HWREG.
| __STATIC_INLINE void WatchdogSetResetThreshold | ( | uint32_t | ticks | ) |
Sets the reset threshold.
| [in] | ticks | is the time in reset threshold ticks. Must be greater than 1. |
References HOSTMCU_AON_BASE, HOSTMCU_AON_CFGWDT_THR_M, HOSTMCU_AON_CFGWDT_THR_S, HOSTMCU_AON_O_CFGWDT, and HWREG.
| __STATIC_INLINE void WatchdogSetSwMode | ( | void | ) |
Configures the timer to work in software mode.
This function configures the timer to be operational during sleep and wake-up. This requires to manually control the timer.
References HOSTMCU_AON_BASE, HOSTMCU_AON_ELPTMREN_TMRSWCTL_SW, HOSTMCU_AON_O_ELPTMREN, HWREG, WatchdogStartSequence(), and WatchdogStopSequence().
| void WatchdogStartSequence | ( | void | ) |
Sequence to start the timer.
This function implements the sequence to start the timer as required by the hardware.
References HOSTMCU_AON_BASE, HOSTMCU_AON_ELPTMREN_ELPTMRRST, HOSTMCU_AON_ELPTMREN_ELPTMRSET, HOSTMCU_AON_O_ELPTMREN, HWREG, WatchdogReset(), and WatchdogWaitUntilEnabled().
Referenced by WatchdogSetSwMode().
| void WatchdogStopSequence | ( | void | ) |
Sequence to stop the timer.
This function implements the sequence to stop the timer as required by the hardware.
References HOSTMCU_AON_BASE, HOSTMCU_AON_ELPTMREN_ELPTMRRST, HOSTMCU_AON_O_ELPTMREN, HWREG, and WatchdogWaitUntilDisabled().
Referenced by WatchdogSetSwMode().