TMPM4G9  V1.0.0.0
bsp_timer.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __BSP_TIMER_H
17 #define __BSP_TIMER_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_sample_def.h"
27 
37 /*------------------------------------------------------------------------------*/
38 /* Macro Function */
39 /*------------------------------------------------------------------------------*/
45 /* no define */
46  /* End of group BSP_UTILITIES_Exported_macro */
50 
51 
52 /*------------------------------------------------------------------------------*/
53 /* Configuration */
54 /*------------------------------------------------------------------------------*/
60 /* no define */
61  /* End of group BSP_UTILITIES_Exported_define */
65 
66 
67 /*------------------------------------------------------------------------------*/
68 /* Macro Definition */
69 /*------------------------------------------------------------------------------*/
75 /* no define */
76 
77  /* End of group BSP_UTILITIES_Exported_define */
81 
82 
83 /*------------------------------------------------------------------------------*/
84 /* Enumerated Type Definition */
85 /*------------------------------------------------------------------------------*/
91 /* no define */
92  /* End of group BSP_UTILITIES_Exported_define */
96 
97 
98 /*------------------------------------------------------------------------------*/
99 /* Structure Definition */
100 /*------------------------------------------------------------------------------*/
105 /*----------------------------------*/
110 /*----------------------------------*/
111 typedef struct
112 {
113  uint32_t id;
115  uint32_t type;
118  uint32_t interval;
119  void (*handler)(uint32_t id);
121 
122 /*----------------------------------*/
126 /*----------------------------------*/
127 typedef struct
128 {
129  uint32_t reserved;
131 
132 /*----------------------------------*/
136 /*----------------------------------*/
137 typedef struct
138 {
141 } timer_t; /* End of group BSP_UTILITIES_Exported_define */
145 
146 
147 /*------------------------------------------------------------------------------*/
148 /* Functions */
149 /*------------------------------------------------------------------------------*/
154 void timer_initialize(timer_t *p_instance);
155 void timer_finalize(timer_t *p_instance);
156 void timer_start(timer_t *p_instance);
157 void timer_stop(timer_t *p_instance);
158 void timer_irq_handler(timer_t *p_instance);
159 
160  /* End of group BSP_UTILITIES_Exported_functions */
164  /* End of group BSP_UTILITIES */
168  /* End of group Example */
172 
173 #ifdef __cplusplus
174 }
175 #endif /* __cplusplus */
176 #endif /* __BSP_TIMER_H */
177 
t32a_t * p_t32a
Definition: bsp_timer.h:114
timer_private_info_t info
Definition: bsp_timer.h:140
enum IRQn IRQn_Type
Timer Class.
Definition: bsp_timer.h:137
void timer_stop(timer_t *p_instance)
uint32_t id
Definition: bsp_timer.h:113
IRQn_Type irq
Definition: bsp_timer.h:117
uint32_t interval
Definition: bsp_timer.h:118
Private Information.
Definition: bsp_timer.h:127
void timer_irq_handler(timer_t *p_instance)
timer_initial_setting_t init
Definition: bsp_timer.h:139
uint32_t type
Definition: bsp_timer.h:115
T32A handle structure definition.
Definition: txz_t32a.h:979
Initial setting. User must be set.
Definition: bsp_timer.h:111
void timer_initialize(timer_t *p_instance)
void timer_start(timer_t *p_instance)
void timer_finalize(timer_t *p_instance)
uint32_t reserved
Definition: bsp_timer.h:129