CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
ci130x_TimerWdt.h
浏览该文件的文档.
1 
10 #ifndef __TIMERWDT_H
11 #define __TIMERWDT_H
12 
13 #include "ci130x_system.h"
14 #include "platform_config.h"
15 
16 #ifdef __cplusplus
17  extern "C" {
18 #endif
19 
20 #ifndef TWDG_CLK
21 #define TWDG_CLK (get_apb_clk())
22 #endif
23 
31 enum
32 {
35 };
36 
37 enum
38 {
39  TWDG_PCLK = 0,
41 };
42 
43 enum
44 {
47 };
48 
49 
50 typedef struct
51 {
52  unsigned int scale;
53  unsigned int lower;
54  unsigned int upper;
55  unsigned int mode;
57 
58 void TWDG_IRQHandler(void);
59 
60 void TWDG_init( TWDG_InitTypeDef *initStruct );
61 
62 void TWDG_disable(void);
63 
64 unsigned int TWDG_counter(void);
65 
66 void TWDG_service(void);
67 
68 void TWDG_test(int mode,int ms_windowLowper,int ms_windowUpper);
69 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif
79 /***************** (C) COPYRIGHT Chipintelli Technology Co., Ltd. *****END OF FILE****/
Definition: ci130x_TimerWdt.h:45
Definition: ci130x_TimerWdt.h:46
unsigned int upper
Definition: ci130x_TimerWdt.h:54
void TWDG_test(int mode, int ms_windowLowper, int ms_windowUpper)
时间看门狗测试程序
Definition: ci130x_TimerWdt.c:139
void TWDG_disable(void)
关闭时间看门狗
Definition: ci130x_TimerWdt.c:97
void TWDG_IRQHandler(void)
看门狗中断服务函数
Definition: ci130x_TimerWdt.c:159
unsigned int scale
Definition: ci130x_TimerWdt.h:52
Definition: ci130x_TimerWdt.h:40
unsigned int mode
Definition: ci130x_TimerWdt.h:55
chip级定义
Definition: ci130x_TimerWdt.h:33
void TWDG_init(TWDG_InitTypeDef *initStruct)
初始化配置时间看门狗
Definition: ci130x_TimerWdt.c:76
Definition: ci130x_TimerWdt.h:34
Definition: ci130x_TimerWdt.h:39
Definition: ci130x_TimerWdt.h:50
unsigned int TWDG_counter(void)
获取counter值
Definition: ci130x_TimerWdt.c:109
void TWDG_service(void)
看门狗service
Definition: ci130x_TimerWdt.c:125
unsigned int lower
Definition: ci130x_TimerWdt.h:53