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

23 lines
807 B
C

#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 PB_System_Timer_Init(void); //Initialize the Time measurement system
float GetSystemTime(void); //Return the current time(us), max:281474976s--->3257.8 days
float PB_Get_Dtime(void); // Return the time difference(us). max:655s
#ifdef __cplusplus
}
#endif
#endif // #ifndef DELAY_H