1 /* 2 * Copyright (c) 2020-2020, BLUETRUM Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef AB32VG1_HAL_WDT_H__ 8 #define AB32VG1_HAL_WDT_H__ 9 10 #include "ab32vg1_hal_def.h" 11 12 #define WDT_CLR() WDTCON = 0xa 13 #define WDT_EN() WDTCON = 0x110 14 #define WDT_DIS() WDTCON = 0xaa0 15 #define WDT_RST() WDTCON = 0xa000110; while (1) 16 #define WDT_RST_DELAY() WDTCON = 0xa100110; while (1) 17 18 #endif 19