23 lines
355 B
C
23 lines
355 B
C
|
|
#ifndef TIMER_H__
|
|
#define TIMER_H__
|
|
|
|
#include "stm32f4xx.h"
|
|
|
|
typedef struct {
|
|
TIM_TypeDef *Tim;
|
|
uint32_t Cycle; // ÖÜÆÚ£¬us
|
|
void (*UpdataCall)(void);
|
|
} TIMER_InitStruct;
|
|
|
|
typedef struct {
|
|
uint8_t Inited;
|
|
void (*UpdataCall)(void);
|
|
} TIMER_UserStruct;
|
|
|
|
int TIMER_InitNormal(TIMER_InitStruct *init);
|
|
|
|
void TIMER_DeInit(TIM_TypeDef *TIMx);
|
|
|
|
#endif
|