12 #ifndef SOURCE_CHIP_STM32_STM32F4_INCLUDE_DISTORTOS_CHIP_GETBUSFREQUENCY_HPP_ 13 #define SOURCE_CHIP_STM32_STM32F4_INCLUDE_DISTORTOS_CHIP_GETBUSFREQUENCY_HPP_ 34 return peripheralBase >= AHB1PERIPH_BASE ?
ahbFrequency :
42 #endif // SOURCE_CHIP_STM32_STM32F4_INCLUDE_DISTORTOS_CHIP_GETBUSFREQUENCY_HPP_ CMSIS proxy header for STM32F4.
constexpr uint32_t getBusFrequency(const uintptr_t peripheralBase)
Returns frequency of the bus to which given peripheral is connected.
Definition: getBusFrequency.hpp:32
constexpr uint32_t apb1Frequency
APB1 frequency, Hz.
Definition: clocks.hpp:245
constexpr uint32_t apb2Frequency
APB2 frequency, Hz.
Definition: clocks.hpp:250
Top-level namespace of distortos project.
Definition: buttons.hpp:33
constexpr uint32_t ahbFrequency
AHB frequency, Hz.
Definition: clocks.hpp:242
Definitions of clocks for STM32F4.