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#include "timebase.hpp"
5
6namespace LibXR
7{
8
9class MSPM0Timebase : public Timebase
10{
11 public:
19
24 static void OnSysTickInterrupt();
25
31 static void Sync(uint32_t ticks);
32
37 inline static volatile uint32_t sys_tick_ms; // NOLINT
38};
39
40} // 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