PAN1080 Peripheral API
Typedefs | Enumerations | Functions
pan_wdt.h File Reference

Panchip series wdt driver header file. More...

Go to the source code of this file.

Typedefs

typedef enum _WDT_Timeout WDT_TimeoutDef
 
typedef enum _WDT_ResetDelay WDT_ResetDelayDef
 

Enumerations

enum  _WDT_Timeout {
  WDT_TIMEOUT_2POW4 = (0UL << WDT_CTL_TOUTSEL_Pos) , WDT_TIMEOUT_2POW6 = (1UL << WDT_CTL_TOUTSEL_Pos) , WDT_TIMEOUT_2POW8 = (2UL << WDT_CTL_TOUTSEL_Pos) , WDT_TIMEOUT_2POW10 = (3UL << WDT_CTL_TOUTSEL_Pos) ,
  WDT_TIMEOUT_2POW12 = (4UL << WDT_CTL_TOUTSEL_Pos) , WDT_TIMEOUT_2POW14 = (5UL << WDT_CTL_TOUTSEL_Pos) , WDT_TIMEOUT_2POW16 = (6UL << WDT_CTL_TOUTSEL_Pos) , WDT_TIMEOUT_2POW18 = (7UL << WDT_CTL_TOUTSEL_Pos)
}
 
enum  _WDT_ResetDelay { WDT_RESET_DELAY_2CLK = (3UL << WDT_ALTCTL_RSTDSEL_Pos) , WDT_RESET_DELAY_17CLK = (2UL << WDT_ALTCTL_RSTDSEL_Pos) , WDT_RESET_DELAY_129CLK = (1UL << WDT_ALTCTL_RSTDSEL_Pos) , WDT_RESET_DELAY_1025CLK = (0UL << WDT_ALTCTL_RSTDSEL_Pos) }
 

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

Panchip series wdt driver header file.

Version
V1.00
Revision
3
Date
21/11/12 18:33