21 #ifndef ARCH_FLASH_HPP_INCLUDED 22 #define ARCH_FLASH_HPP_INCLUDED 34 ((hclk_freq <=
mhz(24)) ? 0 :
35 (hclk_freq <=
mhz(48)) ? 1 :
36 (hclk_freq <=
mhz(72)) ? 2 :
46 template<
typename system_clock_type >
49 min_latency(system_clock_type::hclk_freq)
52 template<
unsigned ws >
61 template<
typename... Tp >
63 reglist< Tp... >::template strict_reset_to< FLASH::ACR >();
69 #endif // ARCH_FLASH_HPP_INCLUDED
typename Tp::value_type value_type
static constexpr freq_t mhz(unsigned long long x)
regbits< type, 0, 3 > LATENCY
Latency.
Definition: flash.hpp:54
static void configure(void)
Configure FLASH register using configuration traits (Tp).
Definition: flash.hpp:62