uboot下init_sequence_f函数之INIT_FUNC_WATCHDOG_INIT

来源:互联网 发布:有免费的域名吗 编辑:程序博客网 时间:2024/06/05 19:04
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 */

 
0 0