stm32_ota/SYSTEM/SYSTICK/systick.h

47 lines
731 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 __SYSTICK_H
#define __SYSTICK_H
#include "sys.h"
#include "stm32f10x_it.h"
/*****************************************
*供外部使用的常变量
****************************************/
#define TICK_RATE_HZ 100 //systick频率100次tick中断/S
/*****************************************
*对外接口函数声明
****************************************/
extern void SysTick_Init(void) ; //STM32滴答定时器初始化
extern void Delay_Us(u32 nus) ; //us延时函数
extern void Delay_Ms(u32 nms) ; //ms延时函数
extern void Delay_Ms_StopScheduler(u32 nms) ; //ms延时函数关闭freertos任务轮询。
#endif