rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #ifndef WDT_PUBLIC_H |
| 2 | #define WDT_PUBLIC_H |
| 3 | |
| 4 | #include "drv_features_wdt.h" |
| 5 | #include "reg_base.h" |
| 6 | #include "kal_general_types.h" |
| 7 | |
| 8 | |
| 9 | extern const kal_uint32 g_WATCHDOG_RESTART_REG; |
| 10 | extern const kal_uint32 g_WATCHDOG_RESTART_VALUE; |
| 11 | extern const kal_uint32 g_ABNORMAL_RST_REG; |
| 12 | extern const kal_uint32 g_ABNORMAL_RST_VAL; |
| 13 | |
| 14 | //WDT_RESINTERVAL will be 0xfff(default) when the first bootup, then WDT_RESINTERVAL will be 0xffa when wdt_init() |
| 15 | //if the value is 0xfff when bootup,we will kown this is the first bootup or normal reset |
| 16 | //if the value is 0ffa when bootup,we will kown this is abnormal reset |
| 17 | extern kal_bool Is_WDT_Init(void); |
| 18 | |
| 19 | extern kal_uint32 Get_WATCHDOG_BASE(void); |
| 20 | |
| 21 | extern kal_uint32 Get_WATCHDOG_RESTART_CMD(void); |
| 22 | |
| 23 | |
| 24 | #endif |
| 25 | |
| 26 | |