2020-01-28 16:11:46 +00:00
|
|
|
#ifndef __INCLUDE_TIMER_H__
|
|
|
|
#define __INCLUDE_TIMER_H__
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "stm32f10x_tim.h"
|
|
|
|
|
2021-04-13 15:09:25 +00:00
|
|
|
#define TIMER_REV_INT_CFG_DECLARE(TIMER) void TIMER##_ConfigReceiveInterrupt(TIMER_INT_FP pfCallBack, int iPreemptionPriority, int SubPriority)
|
2020-01-28 16:11:46 +00:00
|
|
|
|
|
|
|
typedef void(*TIMER_INT_FP)(void);
|
|
|
|
|
|
|
|
void BASE_TIMER_Initialize(TIM_TypeDef* pstTimerBase, uint16_t uiReloadValue, uint16_t uiPrescaler);
|
2021-04-13 15:09:25 +00:00
|
|
|
void BASE_TIMER_ActiveInterrupt(TIM_TypeDef* pstTimerBase, bool bEnable);
|
2020-01-28 16:11:46 +00:00
|
|
|
|
|
|
|
TIMER_REV_INT_CFG_DECLARE(TIM3);
|
|
|
|
TIMER_REV_INT_CFG_DECLARE(TIM4);
|
|
|
|
|
|
|
|
#endif /* __INCLUDE_TIMER_H__ */
|