Files
player/Project/Src/Drive/Include/timer.h
2025-06-27 00:32:57 +08:00

34 lines
341 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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