![]() |
Zephyr API 4.4.99
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_HSE (STM32_SRC_MSI + 1) |
| #define | STM32_SRC_PCLK (STM32_SRC_HSE + 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 | CCIPR_REG 0x88 |
| RCC_CCIPR register offset. | |
| #define | BDCR_REG 0x90 |
| RCC_BDCR register offset. | |
| #define | CSR_REG 0x94 |
| RCC_CSR register offset. | |
| #define | USART1_SEL(val) |
| Device domain clocks selection helpers. | |
| #define | LPUART1_SEL(val) |
| #define | I2C1_SEL(val) |
| #define | I2C3_SEL(val) |
| #define | LPTIM1_SEL(val) |
| #define | LPTIM2_SEL(val) |
| #define | SAI1_SEL(val) |
| #define | CLK48_SEL(val) |
| #define | ADC_SEL(val) |
| #define | RNG_SEL(val) |
| #define | RTC_SEL(val) |
| BDCR devices. | |
| #define | RFWKP_SEL(val) |
| CSR devices. | |
| #define ADC_SEL | ( | val | ) |
| #define BDCR_REG 0x90 |
RCC_BDCR register offset.
| #define CCIPR_REG 0x88 |
RCC_CCIPR register offset.
| #define CLK48_SEL | ( | val | ) |
| #define CSR_REG 0x94 |
RCC_CSR register offset.
| #define I2C1_SEL | ( | val | ) |
| #define I2C3_SEL | ( | val | ) |
| #define LPTIM1_SEL | ( | val | ) |
| #define LPTIM2_SEL | ( | val | ) |
| #define LPUART1_SEL | ( | val | ) |
| #define RFWKP_SEL | ( | val | ) |
CSR devices.
| #define RNG_SEL | ( | val | ) |
| #define RTC_SEL | ( | val | ) |
BDCR devices.
| #define SAI1_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_HSE (STM32_SRC_MSI + 1) |
| #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_HSE + 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_TIMPCLK1 (STM32_SRC_PCLK + 1) |
| #define STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
| #define USART1_SEL | ( | val | ) |
Device domain clocks selection helpers.
CCIPR devices