30 lines
939 B
C
30 lines
939 B
C
#ifndef __USER_TIMER_H
|
||
#define __USER_TIMER_H
|
||
#include "stm32f10x.h"
|
||
#include "timer.h"
|
||
|
||
/******************************************************************************
|
||
*可供外部使用常变量
|
||
*******************************************************************************/
|
||
|
||
|
||
/*****************************************
|
||
*内部函数声明
|
||
****************************************/
|
||
|
||
|
||
/*****************************************
|
||
*对外接口函数声明
|
||
****************************************/
|
||
extern void YcOSTimerSchedulerInit(TIMERFP pLowPrioTaskCallback, TIMERFP pHighPrioTaskCallback) ;
|
||
extern void YcOSSchedulerStart(void) ;
|
||
extern void YcOSSchedulerClose(void) ;
|
||
extern void Calculate_Timer_Init(void) ; //使用TIMER7作为节拍计数器,100ms中断一次
|
||
extern void Calculate_Start(void) ; //开启计时器
|
||
extern uint32_t Calculate_Over(void) ; //结束节拍计时器并返回节拍数
|
||
extern void Calculate_Run_Time(void) ; //使用TIMER7中断回调函数
|
||
|
||
|
||
|
||
#endif
|