您的位置:首页 > 产品设计 > UI/UE

uboot下init_sequence_f函数之INIT_FUNC_WATCHDOG_INIT

2017-03-22 08:21 393 查看
include/watchdog.h INIT_FUNC_WATCHDOG_INIT

 

#if defined(CONFIG_WATCHDOG) || defined(CONFIG_HW_WATCHDOG)
#define INIT_FUNC_WATCHDOG_INIT init_func_watchdog_init,
#define INIT_FUNC_WATCHDOG_RESET init_func_watchdog_reset,
#else
#define INIT_FUNC_WATCHDOG_INIT
#define INIT_FUNC_WATCHDOG_RESET
#endif

 

 

#if defined(CONFIG_WATCHDOG) || defined(CONFIG_HW_WATCHDOG)
static int init_func_watchdog_init(void)
{
# if defined(CONFIG_HW_WATCHDOG) && (defined(CONFIG_BLACKFIN) || \
 defined(CONFIG_M68K) || defined(CONFIG_MICROBLAZE) || \
 defined(CONFIG_SH) || defined(CONFIG_AT91SAM9_WATCHDOG) || \
 defined(CONFIG_DESIGNWARE_WATCHDOG) || \
 defined(CONFIG_IMX_WATCHDOG))
 hw_watchdog_init();
 puts("       Watchdog enabled\n");

# endif
 WATCHDOG_RESET();
 return 0;
}
int init_func_watchdog_reset(void)
{
 WATCHDOG_RESET();
 return 0;
}
#endif /* CONFIG_WATCHDOG */

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: