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

23 lines
355 B
C
Raw Normal View History

2025-06-27 00:32:57 +08:00
#ifndef TIMER_H__
#define TIMER_H__
#include "stm32f4xx.h"
2025-06-27 00:32:57 +08:00
typedef struct {
TIM_TypeDef *Tim;
uint32_t Cycle; // <20><><EFBFBD>ڣ<EFBFBD>us
void (*UpdataCall)(void);
2025-06-27 00:32:57 +08:00
} TIMER_InitStruct;
typedef struct {
uint8_t Inited;
void (*UpdataCall)(void);
2025-06-27 00:32:57 +08:00
} TIMER_UserStruct;
int TIMER_InitNormal(TIMER_InitStruct *init);
2025-06-27 00:32:57 +08:00
void TIMER_DeInit(TIM_TypeDef *TIMx);
2025-06-27 00:32:57 +08:00
#endif