libxr 1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
stm32_power.hpp
1#pragma once
2
3#include "libxr.hpp"
4#include "main.h"
5#include "power.hpp"
6
7extern void __NVIC_SystemReset(void);
8
9namespace LibXR {
10
12 public:
13 explicit STM32PowerManager() {}
14
15 void Reset() override { NVIC_SystemReset(); }
16
17 void Shutdown() override { HAL_PWR_EnterSTANDBYMode(); }
18};
19
20} // namespace LibXR
电源管理器基类 / Abstract base class for Power Manager
Definition power.hpp:18
void Shutdown() override
关闭系统电源 / Shuts down the system power
void Reset() override
复位电源管理模块 / Resets the power management module
LibXR Color Control Library / LibXR终端颜色控制库
constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值