RobotHardware-UESTC/Hardware/银星机器人底盘/PiRobot-YH_Firmware v1.1/STM32/BSPLIB/delay.h

23 lines
830 B
C
Raw Normal View History

2024-01-24 20:47:03 +08:00
#ifndef DELAY_H
#define DELAY_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f10x.h"
/**********************************************************************************************************************/
void delay_ms(uint16_t t); // using timer to delay time, max delay time is 1864ms
void delay_us(uint16_t t); // using timer to delay time, max delay time is 1864ms
/**********************************************************************************************************************/
void System_TimerInit(void); // Initialize the Time measurement system
float getSystemTime(void); // Return the current time(us), max:281474976s--->3257.8 days
float getDeltaTime(void); // Return the time difference(us). max:655s
#ifdef __cplusplus
}
#endif
#endif // #ifndef DELAY_H