37 #ifndef __WATCHDOG_H__ 38 #define __WATCHDOG_H__ 51 #include "../inc/hw_types.h" 52 #include "../inc/hw_memmap.h" 53 #include "../inc/hw_hostmcu_aon.h" 54 #include "../inc/hw_ints.h" 72 #define HOSTMCU_AON_CFGWICSNS_ELP_TMR_EN (HOSTMCU_AON_CFGWICSNS_VAL_TMRREQ_EN << 0) 73 #define HOSTMCU_AON_CFGWUTP_ELP_TMR_FAST (HOSTMCU_AON_CFGWUTP_VAL_TMRREQ << 0) 230 temp |= ticksInResetResolution;
310 #endif // __WATCHDOG_H__ #define HOSTMCU_AON_O_CFGWUTP
Definition: hw_hostmcu_aon.h:51
__STATIC_INLINE void WatchdogEnableWakeUpEvent(void)
Enables the timer wake-up event.
Definition: watchdog.h:131
__STATIC_INLINE void WatchdogSetSwMode(void)
Configures the timer to work in software mode.
Definition: watchdog.h:264
#define HOSTMCU_AON_CFGWDT_THR_M
Definition: hw_hostmcu_aon.h:491
#define HWREG(x)
Definition: hw_types.h:78
#define __STATIC_INLINE
Definition: hw_types.h:57
__STATIC_INLINE void WatchdogDisableResetEvent(void)
Disables the timer reset event.
Definition: watchdog.h:116
#define HOSTMCU_AON_CFGTMRWU_THR_M
Definition: hw_hostmcu_aon.h:422
void WatchdogStopSequence(void)
Sequence to stop the timer.
Definition: watchdog.c:72
#define HOSTMCU_AON_CFGTMRWU_EN
Definition: hw_hostmcu_aon.h:441
#define HOSTMCU_AON_O_CFGWICSNS
Definition: hw_hostmcu_aon.h:48
__STATIC_INLINE void WatchdogClearWakeUpEvent(void)
Clears the timer wake-up event.
Definition: watchdog.h:88
__STATIC_INLINE void WatchdogSetWakeUpThreshold(uint32_t ticks)
Sets the wake-up threshold.
Definition: watchdog.h:221
#define HOSTMCU_AON_ELPTMREN_VAL_S
Definition: hw_hostmcu_aon.h:336
#define HOSTMCU_AON_ELPTMREN_TMRSWCTL_SW
Definition: hw_hostmcu_aon.h:355
#define HOSTMCU_AON_TMRWUREQ_CLR_M
Definition: hw_hostmcu_aon.h:465
#define HOSTMCU_AON_CFGWDT_EN
Definition: hw_hostmcu_aon.h:505
#define HOSTMCU_AON_ELPTMREN_VAL_EN
Definition: hw_hostmcu_aon.h:338
#define HOSTMCU_AON_ELPTMREN_VAL_DIS
Definition: hw_hostmcu_aon.h:337
#define HOSTMCU_AON_ELPTMREN_ELPTMRLD
Definition: hw_hostmcu_aon.h:395
#define HOSTMCU_AON_O_CFGWDT
Definition: hw_hostmcu_aon.h:63
__STATIC_INLINE void WatchdogEnableResetEvent(void)
Enables the timer reset event.
Definition: watchdog.h:150
__STATIC_INLINE void WatchdogWaitUntilDisabled(void)
Waits until the timer is disabled.
Definition: watchdog.h:191
#define HOSTMCU_AON_BASE
Definition: hw_memmap.h:81
void WatchdogStartSequence(void)
Sequence to start the timer.
Definition: watchdog.c:44
#define HOSTMCU_AON_CFGWUTP_ELP_TMR_FAST
Definition: watchdog.h:73
#define HOSTMCU_AON_ELPTMREN_VAL_M
Definition: hw_hostmcu_aon.h:335
__STATIC_INLINE void WatchdogSetResetThreshold(uint32_t ticks)
Sets the reset threshold.
Definition: watchdog.h:246
__STATIC_INLINE bool WatchdogStatus(void)
Reads the status of the timer.
Definition: watchdog.h:163
__STATIC_INLINE void WatchdogWaitUntilEnabled(void)
Waits until the timer is enabled.
Definition: watchdog.h:178
#define HOSTMCU_AON_O_ELPTMREN
Definition: hw_hostmcu_aon.h:54
#define HOSTMCU_AON_CFGWDT_THR_S
Definition: hw_hostmcu_aon.h:492
__STATIC_INLINE void WatchdogDisableWakeUpEvent(void)
Disables the timer wake-up event.
Definition: watchdog.h:100
#define HOSTMCU_AON_O_TMRWUREQ
Definition: hw_hostmcu_aon.h:60
#define HOSTMCU_AON_O_CFGTMRWU
Definition: hw_hostmcu_aon.h:57
#define HOSTMCU_AON_CFGWICSNS_ELP_TMR_EN
Definition: watchdog.h:72
__STATIC_INLINE void WatchdogReset(void)
Re-sets the timer back to zero.
Definition: watchdog.h:203