21 #ifndef ARCH_PWR_HPP_INCLUDED 22 #define ARCH_PWR_HPP_INCLUDED 32 static_assert(_system_voltage >=
volt(1.8) && _system_voltage <=
volt(3.6),
"unsupported system voltage");
34 template<
typename system_clock_type >
35 struct power_save_enable_impl {
36 static_assert(system_clock_type::hclk_freq <=
mhz(144),
"system clock frequency too high for power save feature");
47 template<
typename system_clock_type >
59 #endif // ARCH_PWR_HPP_INCLUDED static __always_inline void set(void)
static constexpr voltage_t system_voltage
Definition: pwr.hpp:42
static void disable_backup_domain_write_protection(void)
Definition: pwr.hpp:52
static constexpr voltage_t volt(long double x)
static constexpr freq_t mhz(unsigned long long x)
typename power_save_enable_impl< system_clock_type >::type power_save_enable
disable high performance mode
Definition: pwr.hpp:48