blob: e4f4e583c7b8fde45bb715ee68d12d2682640c92 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#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
9extern const kal_uint32 g_WATCHDOG_RESTART_REG;
10extern const kal_uint32 g_WATCHDOG_RESTART_VALUE;
11extern const kal_uint32 g_ABNORMAL_RST_REG;
12extern 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
17extern kal_bool Is_WDT_Init(void);
18
19extern kal_uint32 Get_WATCHDOG_BASE(void);
20
21extern kal_uint32 Get_WATCHDOG_RESTART_CMD(void);
22
23
24#endif
25
26