10#ifndef WATCHDOG_PORTING_H
11#define WATCHDOG_PORTING_H
15#define CONFIG_WDT_CLOCK 24000000
16#define WDT_CNT_WIDTH 32
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