libxr
Embedded C++ framework for bare-metal, RTOS and Linux
Loading...
Searching...
No Matches
stm32_timebase.hpp
1#pragma once
2
3#include "main.h"
4#include "timebase.hpp"
5
6namespace LibXR
7{
22class STM32Timebase : public Timebase
23{
24 public:
32};
33
34#ifdef HAL_TIM_MODULE_ENABLED
35
51{
52 public:
61 STM32TimerTimebase(TIM_HandleTypeDef* timer);
62
66 static TIM_HandleTypeDef* htim; // NOLINT
67};
68
69#endif
70
71} // 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 命名空间 / LibXR namespace.
Definition ch32_can.hpp:14