stm32_ota/ABM开发板(DTU透传APP源码)/YcOS版本/APPV4.0/USER/USER_TIMER/user_timer.h
2024-12-17 20:03:43 +08:00

30 lines
939 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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