Struct SystemClock

Struct Documentation

struct SystemClock

STM32F407 running at 168MHz from the external 12MHz crystal

Public Static Functions

static inline bool enable()

Public Static Attributes

static constexpr uint32_t Frequency = 168_MHz
static constexpr uint32_t Ahb = Frequency
static constexpr uint32_t Apb1 = Frequency / 4
static constexpr uint32_t Apb2 = Frequency / 2
static constexpr uint32_t Adc = Apb2
static constexpr uint32_t Spi1 = Apb2
static constexpr uint32_t Spi2 = Apb1
static constexpr uint32_t Spi3 = Apb1
static constexpr uint32_t Spi4 = Apb2
static constexpr uint32_t Spi5 = Apb2
static constexpr uint32_t Spi6 = Apb2
static constexpr uint32_t Usart1 = Apb2
static constexpr uint32_t Usart2 = Apb1
static constexpr uint32_t Usart3 = Apb1
static constexpr uint32_t Uart4 = Apb1
static constexpr uint32_t Uart5 = Apb1
static constexpr uint32_t Usart6 = Apb2
static constexpr uint32_t Uart7 = Apb1
static constexpr uint32_t Uart8 = Apb1
static constexpr uint32_t Can1 = Apb1
static constexpr uint32_t Can2 = Apb1
static constexpr uint32_t I2c1 = Apb1
static constexpr uint32_t I2c2 = Apb1
static constexpr uint32_t I2c3 = Apb1
static constexpr uint32_t Apb1Timer = Apb1 * 2
static constexpr uint32_t Apb2Timer = Apb2 * 2
static constexpr uint32_t Timer1 = Apb2Timer
static constexpr uint32_t Timer2 = Apb1Timer
static constexpr uint32_t Timer3 = Apb1Timer
static constexpr uint32_t Timer4 = Apb1Timer
static constexpr uint32_t Timer5 = Apb1Timer
static constexpr uint32_t Timer6 = Apb1Timer
static constexpr uint32_t Timer7 = Apb1Timer
static constexpr uint32_t Timer8 = Apb2Timer
static constexpr uint32_t Timer9 = Apb2Timer
static constexpr uint32_t Timer10 = Apb2Timer
static constexpr uint32_t Timer11 = Apb2Timer
static constexpr uint32_t Timer12 = Apb1Timer
static constexpr uint32_t Timer13 = Apb1Timer
static constexpr uint32_t Timer14 = Apb1Timer