30 lines
944 B
C
30 lines
944 B
C
#ifndef __GATE_TIMER_H
|
||
#define __GATE_TIMER_H
|
||
#include "stm32f10x.h"
|
||
#include "timer.h"
|
||
|
||
/******************************************************************************
|
||
*可供外部使用常变量
|
||
*******************************************************************************/
|
||
|
||
|
||
/*****************************************
|
||
*内部函数声明
|
||
****************************************/
|
||
//void GreenLight_Timer(void) ;
|
||
//void GreenLight_Timer_Start(void) ;
|
||
//void GreenLight_Timer_Over(void) ;
|
||
|
||
/*****************************************
|
||
*对外接口函数声明
|
||
****************************************/
|
||
extern void CalculateTimerInit(void) ; //使用TIMER7作为节拍计数器,100ms中断一次
|
||
extern void CalculateStart(void) ; //开启计数器
|
||
extern uint32_t CalculateOver(void) ; //关闭计数器,返回计数值
|
||
extern void CalculateRunTime(void) ; //计数器中断处理函数
|
||
|
||
extern void TimeRefreshTimerInit(void) ; //使用TIMER6作为OLED刷新显示时间定时器 1s中断一次
|
||
|
||
|
||
#endif
|