34#ifdef HAL_TIM_MODULE_ENABLED
65 static TIM_HandleTypeDef*
htim;
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
STM32 SysTick 时间基准实现 / STM32 SysTick-based timebase implementation.
MillisecondTimestamp _get_milliseconds()
获取当前毫秒计数 / Get current timestamp in milliseconds
STM32Timebase()
默认构造函数 / Default constructor
MicrosecondTimestamp _get_microseconds()
获取当前微秒计数 / Get current timestamp in microseconds
STM32 硬件定时器时间基准实现 / STM32 timer-based timebase implementation.
STM32TimerTimebase(TIM_HandleTypeDef *timer)
构造函数 / Constructor
MillisecondTimestamp _get_milliseconds()
获取当前毫秒计数 / Get current timestamp in milliseconds
static TIM_HandleTypeDef * htim
硬件定时器句柄静态指针 / Static pointer to timer handle
MicrosecondTimestamp _get_microseconds()
获取当前微秒计数 / Get current timestamp in microseconds
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.