WDT Exported Functions
- group WDT_Exported_Functions
Functions
-
void WDG_ClockEnable(void)
Watch Dog Clock Enable.
- Returns:
None.
-
void WDG_Config(uint16_t div_factor, uint8_t cnt_limit, T_WDG_MODE wdg_mode)
Watch Dog Timer Config.
- Parameters:
div_factor – [in] 16Bit: 32.768k/(1+divfactor).
cnt_limit – [in] 2^(cnt_limit+1) - 1 ; max 11~15 = 0xFFF.
wdg_mode – [in] Select Watch Dog mode.
0: interrupt CPU
1: reset all except aon
2: reset core domain
3: reset all
- Returns:
None.
-
void WDG_Enable(void)
Watch Dog Timer Enable.
- Returns:
None.
-
void WDG_Disable(void)
Watch Dog Timer Disable.
- Returns:
None.
-
void WDG_Restart(void)
Watch Dog Timer Restart.
- Returns:
None.
-
void WDG_SystemReset(T_WDG_MODE wdg_mode, T_SW_RESET_REASON reset_reason)
Watch Dog System Reset.
- Parameters:
wdg_mode – [in] 0: interrupt CPU 1: reset all except aon 2: reset core domain 3: reset all
reset_reason – [in] This parameter can refer to Watch Dog Reset Reason.
- Returns:
None.
-
T_SW_RESET_REASON reset_reason_get(void)
Get watch Dog reset reason.
- Returns:
Watch Dog reset reason. This parameter can refer to Watch Dog Reset Reason.
-
void WDG_ClockEnable(void)