62 WDT->CTL |= WDT_CTL_RSTF_Msk;
71 WDT->CTL |= WDT_CTL_TOF_Msk;
80 WDT->CTL |= WDT_CTL_IF_Msk;
89 WDT->CTL |= WDT_CTL_WKF_Msk;
100 return (WDT->CTL & WDT_CTL_RSTF_Msk) ? true :
false;
111 return (WDT->CTL & WDT_CTL_TOF_Msk) ? true :
false;
122 return (WDT->CTL & WDT_CTL_IF_Msk) ? true :
false;
133 return (WDT->CTL & WDT_CTL_WKF_Msk) ? true :
false;
144 WDT->CTL |= WDT_CTL_RSTCNT_Msk;
176 uint32_t u32EnableReset,
177 uint32_t u32EnableWakeup);
_WDT_ResetDelay
Definition: pan_wdt.h:47
enum _WDT_ResetDelay WDT_ResetDelayDef
@ WDT_RESET_DELAY_17CLK
Definition: pan_wdt.h:49
@ WDT_RESET_DELAY_2CLK
Definition: pan_wdt.h:48
@ WDT_RESET_DELAY_1025CLK
Definition: pan_wdt.h:51
@ WDT_RESET_DELAY_129CLK
Definition: pan_wdt.h:50
enum _WDT_Timeout WDT_TimeoutDef
_WDT_Timeout
Definition: pan_wdt.h:31
@ WDT_TIMEOUT_2POW6
Definition: pan_wdt.h:33
@ WDT_TIMEOUT_2POW10
Definition: pan_wdt.h:35
@ WDT_TIMEOUT_2POW16
Definition: pan_wdt.h:38
@ WDT_TIMEOUT_2POW4
Definition: pan_wdt.h:32
@ WDT_TIMEOUT_2POW18
Definition: pan_wdt.h:39
@ WDT_TIMEOUT_2POW12
Definition: pan_wdt.h:36
@ WDT_TIMEOUT_2POW14
Definition: pan_wdt.h:37
@ WDT_TIMEOUT_2POW8
Definition: pan_wdt.h:34
__STATIC_INLINE void WDT_ClearTimeoutWakeupFlag(void)
This function clear WDT time-out wake-up system flag.
Definition: pan_wdt.h:87
__STATIC_INLINE void WDT_ClearTimeoutIntFlag(void)
This function clear WDT time-out interrupt flag.
Definition: pan_wdt.h:78
__STATIC_INLINE bool WDT_GetTimeoutWakeupFlag(void)
This function indicate WDT time-out waked system up or not.
Definition: pan_wdt.h:131
__STATIC_INLINE void WDT_ClearTimeoutFlag(void)
This function clear WDT time-out flag.
Definition: pan_wdt.h:69
void WDT_Close(void)
This function stops WDT counting and disable WDT module.
void WDT_DisableInt(void)
This function disables the WDT time-out interrupt.
__STATIC_INLINE void WDT_ClearResetFlag(void)
This function clear WDT time-out reset system flag.
Definition: pan_wdt.h:60
__STATIC_INLINE bool WDT_GetTimeoutIntFlag(void)
This function indicate WDT time-out interrupt occurred or not.
Definition: pan_wdt.h:120
void WDT_Open(WDT_TimeoutDef u32TimeoutInterval, WDT_ResetDelayDef u32ResetDelay, uint32_t u32EnableReset, uint32_t u32EnableWakeup)
This function make WDT module start counting with different time-out interval.
__STATIC_INLINE bool WDT_GetTimeoutFlag(void)
This function indicate WDT time-out evnet occurred or not.
Definition: pan_wdt.h:109
void WDT_EnableInt(void)
This function enables the WDT time-out interrupt.
__STATIC_INLINE bool WDT_GetResetFlag(void)
This function indicate WDT time-out to reset system or not.
Definition: pan_wdt.h:98
__STATIC_INLINE void WDT_ResetCounter(void)
This function is used to reset 18-bit WDT counter.
Definition: pan_wdt.h:142