PAN1080 Peripheral API
|
Wdt Interface. More...
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... | |
Wdt Interface.
__STATIC_INLINE void WDT_ClearResetFlag | ( | void | ) |
This function clear WDT time-out reset system flag.
__STATIC_INLINE void WDT_ClearTimeoutFlag | ( | void | ) |
This function clear WDT time-out flag.
__STATIC_INLINE void WDT_ClearTimeoutIntFlag | ( | void | ) |
This function clear WDT time-out interrupt flag.
__STATIC_INLINE void WDT_ClearTimeoutWakeupFlag | ( | void | ) |
This function clear WDT time-out wake-up system flag.
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.
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.
false | WDT did not cause system reset |
true | WDT caused system reset |
__STATIC_INLINE bool WDT_GetTimeoutFlag | ( | void | ) |
This function indicate WDT time-out evnet occurred or not.
false | WDT time-out evnet did not occur |
true | WDT time-out evnet occurred |
__STATIC_INLINE bool WDT_GetTimeoutIntFlag | ( | void | ) |
This function indicate WDT time-out interrupt occurred or not.
false | WDT time-out interrupt did not occur |
true | WDT time-out interrupt occurred |
__STATIC_INLINE bool WDT_GetTimeoutWakeupFlag | ( | void | ) |
This function indicate WDT time-out waked system up or not.
false | WDT did not wake up system |
true | WDT waked up system |
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.
[in] | u32TimeoutInterval | Time-out interval period of WDT module. Valid values are: |
[in] | u32ResetDelay | Reset delay period while WDT time-out happened. Valid values are: |
[in] | u32EnableReset | Enable WDT reset system function. Valid values are TRUE and FALSE |
[in] | u32EnableWakeup | Enable WDT wake-up system function. Valid values are TRUE and FALSE |
__STATIC_INLINE void WDT_ResetCounter | ( | void | ) |
This function is used to reset 18-bit WDT counter.
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.