23 lines
860 B
C
23 lines
860 B
C
#ifndef _LHL_BTIM_H
|
|
#define _LHL_BTIM_H
|
|
|
|
/*==================================================================================*/
|
|
//系统宏重定义
|
|
/*==================================================================================*/
|
|
#define BTIM pBTIM
|
|
|
|
/*==================================================================================*/
|
|
//函数声明
|
|
/*==================================================================================*/
|
|
void BTIM0_Init(uint16_t btim_period);//只做初始化,不带启动
|
|
void BTIM1_Init(uint16_t btim_period);
|
|
|
|
void StartBtimer0(uint16_t btim_period);//单独调用直接启用
|
|
void StopBtimer0(void);
|
|
void StartBtimer1(uint16_t btim_period);
|
|
void StopBtimer1(void);
|
|
|
|
typedef void (*btimer_irq_callback_t)(void);
|
|
void Btimer_register_irq_callback(BTIM_ID_t timer, btimer_irq_callback_t btim_irq_callback);
|
|
#endif
|