libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
ch32_timebase.hpp
1#pragma once
2
3#include "libxr.hpp"
4
5#include DEF2STR(LIBXR_CH32_CONFIG_FILE)
6
7extern uint32_t SystemCoreClock;
8
9namespace LibXR
10{
11
15class CH32Timebase : public Timebase
16{
17 public:
19
21
23
24 static inline void OnSysTickInterrupt();
25
26 void Sync(uint32_t ticks);
27
28 static inline volatile uint32_t sys_tick_ms_ = 0;
29};
30
31} // namespace LibXR
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.
Definition timebase.hpp:18
LibXR 命名空间
Definition ch32_can.hpp:14