5#include DEF2STR(LIBXR_CH32_CONFIG_FILE)
7extern uint32_t SystemCoreClock;
24 static inline void OnSysTickInterrupt();
26 void Sync(uint32_t ticks);
28 static inline volatile uint32_t sys_tick_ms_ = 0;
CH32 时间基准实现 / CH32 timebase implementation.
MicrosecondTimestamp _get_microseconds() override
纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds...
MillisecondTimestamp _get_milliseconds() override
纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds...
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.