Files
player/Project/Src/Drive/Include/timer.h

34 lines
338 B
C
Raw Normal View History

2025-06-27 00:32:57 +08:00
#ifndef TIMER_H__
#define TIMER_H__
typedef struct
{
TIM_TypeDef *Tim;
2025-07-05 19:47:28 +08:00
u32 Cycle; //<2F><><EFBFBD>ڣ<EFBFBD>us
2025-06-27 00:32:57 +08:00
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