|
|
static constexpr uint32_t | Hse = 25_MHz |
| |
|
static constexpr uint32_t | Lse = 32.768_kHz |
| |
| static constexpr Rcc::PllConfig | pll |
| |
|
static constexpr uint32_t | PllP = Hse / pll.M * pll.N / pll.P |
| |
|
static constexpr uint32_t | PllQ = Hse / pll.M * pll.N / pll.Q |
| |
|
static constexpr uint32_t | Frequency = PllP |
| |
|
static constexpr uint32_t | Ahb = Frequency |
| |
|
static constexpr uint32_t | Apb1 = Frequency / 2 |
| |
|
static constexpr uint32_t | Apb2 = Frequency |
| |
|
static constexpr uint32_t | Ahb1 = Ahb |
| |
|
static constexpr uint32_t | Crc = Ahb1 |
| |
|
static constexpr uint32_t | Dma1 = Ahb1 |
| |
|
static constexpr uint32_t | Dma2 = Ahb1 |
| |
|
static constexpr uint32_t | Flash = Ahb1 |
| |
|
static constexpr uint32_t | I2c1 = Apb1 |
| |
|
static constexpr uint32_t | I2c2 = Apb1 |
| |
|
static constexpr uint32_t | I2c3 = Apb1 |
| |
|
static constexpr uint32_t | I2s2Ext = Apb1 |
| |
|
static constexpr uint32_t | I2s3Ext = Apb1 |
| |
|
static constexpr uint32_t | IwdgBus = Apb1 |
| |
|
static constexpr uint32_t | Pwr = Apb1 |
| |
|
static constexpr uint32_t | RtcBus = Apb1 |
| |
|
static constexpr uint32_t | Spi2 = Apb1 |
| |
|
static constexpr uint32_t | Spi3 = Apb1 |
| |
|
static constexpr uint32_t | Usart2 = Apb1 |
| |
|
static constexpr uint32_t | Wwdg = Apb1 |
| |
|
static constexpr uint32_t | Adc = Apb2 |
| |
|
static constexpr uint32_t | Adc1Common = Apb2 |
| |
|
static constexpr uint32_t | Exti = Apb2 |
| |
|
static constexpr uint32_t | Sdio = Apb2 |
| |
|
static constexpr uint32_t | Spi1 = Apb2 |
| |
|
static constexpr uint32_t | Spi4 = Apb2 |
| |
|
static constexpr uint32_t | Spi5 = Apb2 |
| |
|
static constexpr uint32_t | Syscfg = Apb2 |
| |
|
static constexpr uint32_t | Usart1 = Apb2 |
| |
|
static constexpr uint32_t | Usart6 = Apb2 |
| |
|
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 | Timer9 = Apb2Timer |
| |
|
static constexpr uint32_t | Timer10 = Apb2Timer |
| |
|
static constexpr uint32_t | Timer11 = Apb2Timer |
| |
|
static constexpr uint32_t | Usb = PllQ |
| |
|
static constexpr uint32_t | Iwdg = Rcc::LsiFrequency |
| |
|
static constexpr uint32_t | Rtc = Lse |
| |
STM32F401 running at 84MHz generated from the external 25MHz crystal.