stm32_ota/USER/GATE_TIMER/gate_timer.h

30 lines
944 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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