libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
stm32_timebase.hpp
1#pragma once
2
3#include "main.h"
4#include "timebase.hpp"
5
6namespace LibXR
7{
11class STM32Timebase : public Timebase
12{
13 public:
21};
22
23#ifdef HAL_TIM_MODULE_ENABLED
24
29{
30 public:
39 STM32TimerTimebase(TIM_HandleTypeDef* timer);
40
44 static TIM_HandleTypeDef* htim; // NOLINT
45};
46
47#endif
48
49} // namespace LibXR
STM32 SysTick 时间基准实现 / STM32 SysTick-based timebase implementation.
STM32Timebase()
默认构造函数 / Default constructor
STM32 硬件定时器时间基准实现 / STM32 timer-based timebase implementation.
STM32TimerTimebase(TIM_HandleTypeDef *timer)
构造函数 / Constructor
static TIM_HandleTypeDef * htim
硬件定时器句柄静态指针 / Static pointer to timer handle
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
Definition timebase.hpp:17
LibXR 命名空间
Definition ch32_can.hpp:14