1 /* 2 * Copyright (c) 2006-2022, Synwit Technology Co.,Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2022-7-21 Rbb666 first version 9 */ 10 11 #ifndef __DRV_WDT_H__ 12 #define __DRV_WDT_H__ 13 14 #include <rtthread.h> 15 #include "board.h" 16 17 struct ifx_wdt_cfg 18 { 19 const char *name; 20 cyhal_wdt_t *WDTx; 21 }; 22 23 struct ifx_wdt 24 { 25 struct ifx_wdt_cfg *cfg; 26 struct rt_watchdog_device wdt_device; 27 }; 28 29 int rt_hw_wdt_init(void); 30 31 #endif /* __DRV_WDT_H__ */ 32