47 lines
731 B
C
47 lines
731 B
C
![]() |
#ifndef __SYSTICK_H
|
|||
|
#define __SYSTICK_H
|
|||
|
#include "sys.h"
|
|||
|
#include "stm32f10x_it.h"
|
|||
|
|
|||
|
/*****************************************
|
|||
|
*<EFBFBD><EFBFBD><EFBFBD>ⲿʹ<EFBFBD>õij<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
****************************************/
|
|||
|
#define TICK_RATE_HZ 100 //systickƵ<6B>ʣ<EFBFBD>100<30><30>tick<63>ж<EFBFBD>/S
|
|||
|
/*****************************************
|
|||
|
*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿں<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
****************************************/
|
|||
|
extern void SysTick_Init(void) ; //STM32<33>δ<EFBFBD><CEB4><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>
|
|||
|
extern void Delay_Us(u32 nus) ; //us<75><73>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
|||
|
extern void Delay_Ms(u32 nms) ; //ms<6D><73>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
|||
|
extern void Delay_Ms_StopScheduler(u32 nms) ; //ms<6D><73>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ر<EFBFBD>freertos<6F><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF>
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|