34 lines
338 B
C
34 lines
338 B
C
|
|
#ifndef TIMER_H__
|
|
#define TIMER_H__
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
{
|
|
TIM_TypeDef *Tim;
|
|
u32 Cycle; //ÖÜÆÚ£¬us
|
|
void (*UpdataCall) (void);
|
|
} TIMER_InitStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
{
|
|
u8 Inited;
|
|
void (*UpdataCall) (void);
|
|
} TIMER_UserStruct;
|
|
|
|
|
|
|
|
int TIMER_InitNormal (TIMER_InitStruct *init);
|
|
|
|
void TIMER_DeInit (TIM_TypeDef* TIMx);
|
|
|
|
|
|
|
|
#endif
|
|
|