PAN1080 Peripheral API
Modules | Functions
Wdt Interface

Wdt Interface. More...

Collaboration diagram for Wdt Interface:

Modules

 Wdt timeout count
 Wdt timeout count definition.
 
 Wdt reset delay time
 Wdt reset delay time definition.
 

Functions

__STATIC_INLINE void WDT_ClearResetFlag (void)
 This function clear WDT time-out reset system flag. More...
 
__STATIC_INLINE void WDT_ClearTimeoutFlag (void)
 This function clear WDT time-out flag. More...
 
__STATIC_INLINE void WDT_ClearTimeoutIntFlag (void)
 This function clear WDT time-out interrupt flag. More...
 
__STATIC_INLINE void WDT_ClearTimeoutWakeupFlag (void)
 This function clear WDT time-out wake-up system flag. More...
 
__STATIC_INLINE bool WDT_GetResetFlag (void)
 This function indicate WDT time-out to reset system or not. More...
 
__STATIC_INLINE bool WDT_GetTimeoutFlag (void)
 This function indicate WDT time-out evnet occurred or not. More...
 
__STATIC_INLINE bool WDT_GetTimeoutIntFlag (void)
 This function indicate WDT time-out interrupt occurred or not. More...
 
__STATIC_INLINE bool WDT_GetTimeoutWakeupFlag (void)
 This function indicate WDT time-out waked system up or not. More...
 
__STATIC_INLINE void WDT_ResetCounter (void)
 This function is used to reset 18-bit WDT counter. More...
 
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. More...
 
void WDT_Close (void)
 This function stops WDT counting and disable WDT module. More...
 
void WDT_EnableInt (void)
 This function enables the WDT time-out interrupt. More...
 
void WDT_DisableInt (void)
 This function disables the WDT time-out interrupt. More...
 

Detailed Description

Wdt Interface.

Function Documentation

◆ WDT_ClearResetFlag()

__STATIC_INLINE void WDT_ClearResetFlag ( void  )

This function clear WDT time-out reset system flag.

Returns
None

◆ WDT_ClearTimeoutFlag()

__STATIC_INLINE void WDT_ClearTimeoutFlag ( void  )

This function clear WDT time-out flag.

Returns
None

◆ WDT_ClearTimeoutIntFlag()

__STATIC_INLINE void WDT_ClearTimeoutIntFlag ( void  )

This function clear WDT time-out interrupt flag.

Returns
None

◆ WDT_ClearTimeoutWakeupFlag()

__STATIC_INLINE void WDT_ClearTimeoutWakeupFlag ( void  )

This function clear WDT time-out wake-up system flag.

Returns
None

◆ WDT_Close()

void WDT_Close ( void  )

This function stops WDT counting and disable WDT module.

Returns
None

◆ WDT_DisableInt()

void WDT_DisableInt ( void  )

This function disables the WDT time-out interrupt.

Returns
None

◆ WDT_EnableInt()

void WDT_EnableInt ( void  )

This function enables the WDT time-out interrupt.

Returns
None

◆ WDT_GetResetFlag()

__STATIC_INLINE bool WDT_GetResetFlag ( void  )

This function indicate WDT time-out to reset system or not.

Returns
WDT reset system or not
Return values
falseWDT did not cause system reset
trueWDT caused system reset

◆ WDT_GetTimeoutFlag()

__STATIC_INLINE bool WDT_GetTimeoutFlag ( void  )

This function indicate WDT time-out evnet occurred or not.

Returns
WDT time-out evnet occurred or not
Return values
falseWDT time-out evnet did not occur
trueWDT time-out evnet occurred

◆ WDT_GetTimeoutIntFlag()

__STATIC_INLINE bool WDT_GetTimeoutIntFlag ( void  )

This function indicate WDT time-out interrupt occurred or not.

Returns
WDT time-out interrupt occurred or not
Return values
falseWDT time-out interrupt did not occur
trueWDT time-out interrupt occurred

◆ WDT_GetTimeoutWakeupFlag()

__STATIC_INLINE bool WDT_GetTimeoutWakeupFlag ( void  )

This function indicate WDT time-out waked system up or not.

Returns
WDT time-out waked system up or not
Return values
falseWDT did not wake up system
trueWDT waked up system

◆ WDT_Open()

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.

Parameters
[in]u32TimeoutIntervalTime-out interval period of WDT module. Valid values are:
[in]u32ResetDelayReset delay period while WDT time-out happened. Valid values are:
[in]u32EnableResetEnable WDT reset system function. Valid values are TRUE and FALSE
[in]u32EnableWakeupEnable WDT wake-up system function. Valid values are TRUE and FALSE
Returns
None
CLK_SetWdtClkSrc(WDT_CLK_SRC_SEL_APBDIV);
@ WDT_RESET_DELAY_1025CLK
Definition: pan_wdt.h:51
@ WDT_TIMEOUT_2POW16
Definition: pan_wdt.h:38
void CLK_SetWdtClkSrc(uint32_t u32clksel)
This API is used to select wdt clock source.
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.

◆ WDT_ResetCounter()

__STATIC_INLINE void WDT_ResetCounter ( void  )

This function is used to reset 18-bit WDT counter.

Returns
None

If WDT is activated and enabled to reset system, software must reset WDT counter before WDT time-out plus reset delay reached. Or WDT generate a reset signal.