WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
watchdog_porting.h
浏览该文件的文档.
1
10#ifndef WATCHDOG_PORTING_H
11#define WATCHDOG_PORTING_H
12
13#include <stdint.h>
14
15#define CONFIG_WDT_CLOCK 24000000 /* wdg的fpga时钟周期为24mhz */
16#define WDT_CNT_WIDTH 32
17
37
38typedef enum {
39 CHIP_WDT_MODE_RESET = 0, // Will reset core direcotry, when chip watchdog trigger.
40 // Will enter interrupt, when chip watchdog trigger. If chip watchdog not kick in interrupt, core will reset.
44
45
46#ifdef __cplusplus
47#if __cplusplus
48extern "C" {
49#endif /* __cplusplus */
50#endif /* __cplusplus */
51
66
75
84
93
101void irq_wdt_handler(void);
102
103void watchdog_turnon_clk(void);
104
105void watchdog_turnoff_clk(void);
106
108
116void watchdog_port_set_clock(uint32_t wdt_clock);
117
125uint32_t watchdog_port_get_clock(void);
126
131#ifdef __cplusplus
132#if __cplusplus
133}
134#endif /* __cplusplus */
135#endif /* __cplusplus */
136
137#endif
void watchdog_port_unregister_hal_funcs(void)
从hal_watchdog模块注销hal funcs对象
Definition watchdog_porting.c:25
void watchdog_port_set_clock(uint32_t wdt_clock)
设置watchdog的工作时钟。
Definition watchdog_porting.c:45
uint32_t watchdog_get_configtime(void)
void irq_wdt_handler(void)
看门狗中断请求的处理程序
Definition watchdog_porting.c:57
void watchdog_port_register_hal_funcs(void)
将hal funcs对象注册到hal_watchdog模块中
Definition watchdog_porting.c:20
uintptr_t g_watchdog_base_addr
IP的基地址
Definition watchdog_porting.c:17
void watchdog_turnon_clk(void)
Definition watchdog_porting.c:35
uint32_t watchdog_port_get_clock(void)
获取watchdog的工作时钟。
Definition watchdog_porting.c:52
void watchdog_port_register_irq(void)
注册看门狗中断
Definition watchdog_porting.c:30
void watchdog_turnoff_clk(void)
Definition watchdog_porting.c:40
@ CHIP_WDT_TIMEOUT_4S
Definition watchdog_porting.h:21
@ CHIP_WDT_TIMEOUT_2S
Definition watchdog_porting.h:20
void(* hal_chip_watchdog_dump_callback_t)(void)
Definition watchdog_porting.h:18
chip_wdt_mode_t
Definition watchdog_porting.h:38
@ CHIP_WDT_MODE_INTERRUPT
Definition watchdog_porting.h:41
@ CHIP_WDT_MODE_RESET
Definition watchdog_porting.h:39
@ CHIP_WDT_MODE_MAX
Definition watchdog_porting.h:42
chip_wdt_timeout_t
Definition watchdog_porting.h:19
@ CHIP_WDT_TIMEOUT_MAX
Definition watchdog_porting.h:35
@ CHIP_WDT_TIMEOUT_512S
Definition watchdog_porting.h:28
@ CHIP_WDT_TIMEOUT_16384S
Definition watchdog_porting.h:33
@ CHIP_WDT_TIMEOUT_32768S
Definition watchdog_porting.h:34
@ CHIP_WDT_TIMEOUT_2048S
Definition watchdog_porting.h:30
@ CHIP_WDT_TIMEOUT_8192S
Definition watchdog_porting.h:32
@ CHIP_WDT_TIMEOUT_128S
Definition watchdog_porting.h:26
@ CHIP_WDT_TIMEOUT_4096S
Definition watchdog_porting.h:31
@ CHIP_WDT_TIMEOUT_32S
Definition watchdog_porting.h:24
@ CHIP_WDT_TIMEOUT_1024S
Definition watchdog_porting.h:29
@ CHIP_WDT_TIMEOUT_256S
Definition watchdog_porting.h:27
@ CHIP_WDT_TIMEOUT_64S
Definition watchdog_porting.h:25
@ CHIP_WDT_TIMEOUT_8S
Definition watchdog_porting.h:22
@ CHIP_WDT_TIMEOUT_16S
Definition watchdog_porting.h:23
unsigned int uintptr_t
Definition td_type.h:65