|
Zephyr API Documentation 4.3.0-rc2
A Scalable Open Source RTOS
|
#include "stm32_common_clocks.h"Go to the source code of this file.
Macros | |
| #define | STM32_CLOCK_BUS_AHB1 0x048 |
| Bus clocks. | |
| #define | STM32_CLOCK_BUS_AHB2 0x04c |
| #define | STM32_CLOCK_BUS_AHB3 0x050 |
| #define | STM32_CLOCK_BUS_APB1 0x058 |
| #define | STM32_CLOCK_BUS_APB1_2 0x05c |
| #define | STM32_CLOCK_BUS_APB2 0x060 |
| #define | STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
| #define | STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB2 |
| #define | STM32_SRC_HSI (STM32_SRC_LSI + 1) |
| Domain clocks. | |
| #define | STM32_SRC_HSI48 (STM32_SRC_HSI + 1) |
| #define | STM32_SRC_MSI (STM32_SRC_HSI48 + 1) |
| #define | STM32_SRC_PCLK (STM32_SRC_MSI + 1) |
| Bus clock. | |
| #define | STM32_SRC_TIMPCLK1 (STM32_SRC_PCLK + 1) |
| #define | STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
| #define | STM32_SRC_PLL_P (STM32_SRC_TIMPCLK2 + 1) |
| PLL clock outputs. | |
| #define | STM32_SRC_PLL_Q (STM32_SRC_PLL_P + 1) |
| #define | STM32_SRC_PLL_R (STM32_SRC_PLL_Q + 1) |
| #define | STM32_SRC_PLLSAI1_P (STM32_SRC_PLL_R + 1) |
| #define | STM32_SRC_PLLSAI1_Q (STM32_SRC_PLLSAI1_P + 1) |
| #define | STM32_SRC_PLLSAI1_R (STM32_SRC_PLLSAI1_Q + 1) |
| #define | STM32_SRC_PLLSAI2_P (STM32_SRC_PLLSAI1_R + 1) |
| #define | STM32_SRC_PLLSAI2_Q (STM32_SRC_PLLSAI2_P + 1) |
| #define | STM32_SRC_PLLSAI2_R (STM32_SRC_PLLSAI2_Q + 1) |
| #define | STM32_SRC_PLLSAI2_DIVR (STM32_SRC_PLLSAI2_R + 1) |
| #define | CCIPR_REG 0x88 |
| RCC_CCIPR register offset. | |
| #define | CCIPR2_REG 0x9C |
| #define | BDCR_REG 0x90 |
| RCC_BDCR register offset. | |
| #define | CFGR_REG 0x08 |
| RCC_CFGRx register offset. | |
| #define | USART1_SEL(val) |
| Device domain clocks selection helpers. | |
| #define | USART2_SEL(val) |
| #define | USART3_SEL(val) |
| #define | UART4_SEL(val) |
| #define | UART5_SEL(val) |
| #define | LPUART1_SEL(val) |
| #define | I2C1_SEL(val) |
| #define | I2C2_SEL(val) |
| #define | I2C3_SEL(val) |
| #define | LPTIM1_SEL(val) |
| #define | LPTIM2_SEL(val) |
| #define | LPTIM3_SEL(val) |
| #define | FDCAN_SEL(val) |
| #define | CLK48_SEL(val) |
| #define | ADC_SEL(val) |
| #define | I2C4_SEL(val) |
| CCIPR2 devices. | |
| #define | DFSDM_SEL(val) |
| #define | ADFSDM_SEL(val) |
| #define | SAI1_SEL(val) |
| #define | SAI2_SEL(val) |
| #define | SDMMC_SEL(val) |
| #define | OSPI_SEL(val) |
| #define | RTC_SEL(val) |
| BDCR devices. | |
| #define | MCO1_SEL(val) |
| CFGR devices. | |
| #define | MCO1_PRE(val) |
| #define ADC_SEL | ( | val | ) |
| #define ADFSDM_SEL | ( | val | ) |
| #define BDCR_REG 0x90 |
RCC_BDCR register offset.
| #define CCIPR2_REG 0x9C |
| #define CCIPR_REG 0x88 |
RCC_CCIPR register offset.
| #define CFGR_REG 0x08 |
RCC_CFGRx register offset.
| #define CLK48_SEL | ( | val | ) |
| #define DFSDM_SEL | ( | val | ) |
| #define FDCAN_SEL | ( | val | ) |
| #define I2C1_SEL | ( | val | ) |
| #define I2C2_SEL | ( | val | ) |
| #define I2C3_SEL | ( | val | ) |
| #define I2C4_SEL | ( | val | ) |
CCIPR2 devices.
| #define LPTIM1_SEL | ( | val | ) |
| #define LPTIM2_SEL | ( | val | ) |
| #define LPTIM3_SEL | ( | val | ) |
| #define LPUART1_SEL | ( | val | ) |
| #define MCO1_PRE | ( | val | ) |
| #define MCO1_SEL | ( | val | ) |
CFGR devices.
| #define OSPI_SEL | ( | val | ) |
| #define RTC_SEL | ( | val | ) |
BDCR devices.
| #define SAI1_SEL | ( | val | ) |
| #define SAI2_SEL | ( | val | ) |
| #define SDMMC_SEL | ( | val | ) |
| #define STM32_CLOCK_BUS_AHB1 0x048 |
Bus clocks.
| #define STM32_CLOCK_BUS_AHB2 0x04c |
| #define STM32_CLOCK_BUS_AHB3 0x050 |
| #define STM32_CLOCK_BUS_APB1 0x058 |
| #define STM32_CLOCK_BUS_APB1_2 0x05c |
| #define STM32_CLOCK_BUS_APB2 0x060 |
| #define STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB2 |
| #define STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
| #define STM32_SRC_HSI (STM32_SRC_LSI + 1) |
Domain clocks.
System clock Fixed clocks
| #define STM32_SRC_HSI48 (STM32_SRC_HSI + 1) |
| #define STM32_SRC_MSI (STM32_SRC_HSI48 + 1) |
| #define STM32_SRC_PCLK (STM32_SRC_MSI + 1) |
Bus clock.
| #define STM32_SRC_PLL_P (STM32_SRC_TIMPCLK2 + 1) |
PLL clock outputs.
| #define STM32_SRC_PLL_Q (STM32_SRC_PLL_P + 1) |
| #define STM32_SRC_PLL_R (STM32_SRC_PLL_Q + 1) |
| #define STM32_SRC_PLLSAI1_P (STM32_SRC_PLL_R + 1) |
| #define STM32_SRC_PLLSAI1_Q (STM32_SRC_PLLSAI1_P + 1) |
| #define STM32_SRC_PLLSAI1_R (STM32_SRC_PLLSAI1_Q + 1) |
| #define STM32_SRC_PLLSAI2_DIVR (STM32_SRC_PLLSAI2_R + 1) |
| #define STM32_SRC_PLLSAI2_P (STM32_SRC_PLLSAI1_R + 1) |
| #define STM32_SRC_PLLSAI2_Q (STM32_SRC_PLLSAI2_P + 1) |
| #define STM32_SRC_PLLSAI2_R (STM32_SRC_PLLSAI2_Q + 1) |
| #define STM32_SRC_TIMPCLK1 (STM32_SRC_PCLK + 1) |
| #define STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
| #define UART4_SEL | ( | val | ) |
| #define UART5_SEL | ( | val | ) |
| #define USART1_SEL | ( | val | ) |
Device domain clocks selection helpers.
CCIPR devices
| #define USART2_SEL | ( | val | ) |
| #define USART3_SEL | ( | val | ) |