libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
mspm0_timebase.hpp
1#pragma once
2
3#include <ti/driverlib/m0p/dl_systick.h>
4
5#include "timebase.hpp"
6
7namespace LibXR
8{
9
10class MSPM0Timebase : public Timebase
11{
12 public:
20
25 static void OnSysTickInterrupt();
26
32 static void Sync(uint32_t ticks);
33
38 inline static volatile uint32_t sys_tick_ms; // NOLINT
39};
40
41} // namespace LibXR
static volatile uint32_t sys_tick_ms
SysTick 毫秒计数器。 SysTick millisecond counter.
MSPM0Timebase()
构造函数 / Constructor
static void OnSysTickInterrupt()
SysTick 中断入口辅助函数。 Helper called from the SysTick interrupt path.
static void Sync(uint32_t ticks)
同步毫秒计数器。 Synchronize the millisecond counter.
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
Definition timebase.hpp:17
LibXR 命名空间
Definition ch32_can.hpp:14