接口函数
API | 芯片 | |
---|---|---|
GR551x | GR5526 | |
app_aon_wdt_init |
Y |
Y |
app_aon_wdt_deinit |
Y |
Y |
app_aon_wdt_refresh |
Y |
Y |
app_aon_wdt_init
函数原型 |
uint16_t app_aon_wdt_init(app_aon_wdt_params_t *p_params, app_aon_wdt_evt_handler_t evt_handler) |
---|---|
功能说明 |
初始化WDT |
输入参数 |
|
返回值 |
APP_DRV_xxx:详见SDK_Folder\drivers\inc\app_drv_error.h宏定义 |
备注 |
回调函数形式参照typedef void (*app_aon_wdt_evt_handler_t)(void); HAL层已经实现中断标志位的清理,用户不用关心中断标志的清理,回调函数根据返回事件类型进行相应的处理即可。 |
app_aon_wdt_deinit
函数原型 |
uint16_t app_aon_wdt_deinit(void) |
---|---|
功能说明 |
反初始化WDT |
输入参数 | |
返回值 |
APP_DRV_xxx:详见SDK_Folder\drivers\inc\app_drv_error.h宏定义 |
备注 |
app_aon_wdt_refresh
函数原型 |
uint16_t app_aon_wdt_refresh(void) |
---|---|
功能说明 |
WDT喂狗,重新装载计数值 |
输入参数 | |
返回值 |
APP_DRV_xxx:详见SDK_Folder\drivers\inc\app_drv_error.h宏定义 |
备注 |