libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
mspm0_timebase.hpp
1#pragma once
2
3#include "dl_systick.h"
4#include "timebase.hpp"
5
6namespace LibXR
7{
8
9class MSPM0Timebase : public Timebase
10{
11 public:
13
14 static void OnSysTickInterrupt();
15
16 static void Sync(uint32_t ticks);
17
19
21
22 inline static volatile uint32_t sys_tick_ms; // NOLINT
23};
24
25} // namespace LibXR
MillisecondTimestamp _get_milliseconds() override
纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds...
MicrosecondTimestamp _get_microseconds() override
纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds...
表示微秒级时间戳的类。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