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

23 lines
834 B
C
Raw Normal View History

2024-01-20 13:19:09 +08:00
#ifndef DELAY_H
#define DELAY_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f10x.h"
/**********************************************************************************************************************/
2024-01-23 15:06:39 +08:00
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
2024-01-20 13:19:09 +08:00
/**********************************************************************************************************************/
2024-01-23 15:06:39 +08:00
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 getDeltaTime(void); // Return the time difference(us). max:655s
2024-01-20 13:19:09 +08:00
#ifdef __cplusplus
}
#endif
#endif // #ifndef DELAY_H