Zephyr API Documentation 4.2.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 0x030 |
Domain clocks. | |
#define | STM32_CLOCK_BUS_AHB2 0x034 |
#define | STM32_CLOCK_BUS_AHB3 0x038 |
#define | STM32_CLOCK_BUS_APB1 0x040 |
#define | STM32_CLOCK_BUS_APB2 0x044 |
#define | STM32_CLOCK_BUS_APB3 0x0A8 |
#define | STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
#define | STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB3 |
#define | STM32_SRC_HSI (STM32_SRC_LSI + 1) |
Domain clocks. | |
#define | STM32_SRC_HSE (STM32_SRC_HSI + 1) |
#define | STM32_SRC_PLL_P (STM32_SRC_HSE + 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_PCLK (STM32_SRC_PLL_R + 1) |
Peripheral bus clock. | |
#define | STM32_SRC_TIMPCLK1 (STM32_SRC_PCLK + 1) |
#define | STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
#define | STM32_SRC_PLLI2S_R (STM32_SRC_TIMPCLK2 + 1) |
#define | STM32_SRC_PLLSAI_P (STM32_SRC_PLLI2S_R + 1) |
#define | STM32_SRC_PLLSAI_Q (STM32_SRC_PLLSAI_P + 1) |
#define | STM32_SRC_PLLSAI_DIVQ (STM32_SRC_PLLSAI_Q + 1) |
#define | STM32_SRC_PLLSAI_R (STM32_SRC_PLLSAI_DIVQ + 1) |
#define | STM32_SRC_PLLSAI_DIVR (STM32_SRC_PLLSAI_R + 1) |
#define | CFGR_REG 0x08 |
RCC_CFGRx register offset. | |
#define | BDCR_REG 0x70 |
RCC_BDCR register offset. | |
#define | I2S_SEL(val) |
Device domain clocks selection helpers. | |
#define | MCO1_SEL(val) |
#define | MCO1_PRE(val) |
#define | MCO2_SEL(val) |
#define | MCO2_PRE(val) |
#define | MCO_PRE_DIV_1 0 |
#define | MCO_PRE_DIV_2 4 |
#define | MCO_PRE_DIV_3 5 |
#define | MCO_PRE_DIV_4 6 |
#define | MCO_PRE_DIV_5 7 |
#define | RTC_SEL(val) |
BDCR devices. | |
#define | DCKCFGR1_REG 0x8C |
RCC_DKCFGR register offset. | |
#define | DCKCFGR2_REG 0x90 |
#define | USART1_SEL(val) |
Dedicated clocks configuration register selection helpers. | |
#define | USART2_SEL(val) |
#define | USART3_SEL(val) |
#define | USART4_SEL(val) |
#define | USART5_SEL(val) |
#define | USART6_SEL(val) |
#define | USART7_SEL(val) |
#define | USART8_SEL(val) |
#define | I2C1_SEL(val) |
#define | I2C2_SEL(val) |
#define | I2C3_SEL(val) |
#define | I2C4_SEL(val) |
#define | LPTIM1_SEL(val) |
#define | CEC_SEL(val) |
#define | CK48M_SEL(val) |
#define | SDMMC1_SEL(val) |
#define | SDMMC2_SEL(val) |
#define | DSI_SEL(val) |
#define BDCR_REG 0x70 |
RCC_BDCR register offset.
#define CEC_SEL | ( | val | ) |
#define CFGR_REG 0x08 |
RCC_CFGRx register offset.
#define CK48M_SEL | ( | val | ) |
#define DCKCFGR1_REG 0x8C |
RCC_DKCFGR register offset.
#define DCKCFGR2_REG 0x90 |
#define DSI_SEL | ( | val | ) |
#define I2C1_SEL | ( | val | ) |
#define I2C2_SEL | ( | val | ) |
#define I2C3_SEL | ( | val | ) |
#define I2C4_SEL | ( | val | ) |
#define I2S_SEL | ( | val | ) |
Device domain clocks selection helpers.
CFGR devices
#define LPTIM1_SEL | ( | val | ) |
#define MCO1_PRE | ( | val | ) |
#define MCO1_SEL | ( | val | ) |
#define MCO2_PRE | ( | val | ) |
#define MCO2_SEL | ( | val | ) |
#define MCO_PRE_DIV_1 0 |
#define MCO_PRE_DIV_2 4 |
#define MCO_PRE_DIV_3 5 |
#define MCO_PRE_DIV_4 6 |
#define MCO_PRE_DIV_5 7 |
#define RTC_SEL | ( | val | ) |
BDCR devices.
#define SDMMC1_SEL | ( | val | ) |
#define SDMMC2_SEL | ( | val | ) |
#define STM32_CLOCK_BUS_AHB1 0x030 |
Domain clocks.
Bus clocks
#define STM32_CLOCK_BUS_AHB2 0x034 |
#define STM32_CLOCK_BUS_AHB3 0x038 |
#define STM32_CLOCK_BUS_APB1 0x040 |
#define STM32_CLOCK_BUS_APB2 0x044 |
#define STM32_CLOCK_BUS_APB3 0x0A8 |
#define STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB3 |
#define STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
#define STM32_SRC_HSE (STM32_SRC_HSI + 1) |
#define STM32_SRC_HSI (STM32_SRC_LSI + 1) |
Domain clocks.
System clock Fixed clocks
#define STM32_SRC_PCLK (STM32_SRC_PLL_R + 1) |
Peripheral bus clock.
#define STM32_SRC_PLL_P (STM32_SRC_HSE + 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_PLLI2S_R (STM32_SRC_TIMPCLK2 + 1) |
#define STM32_SRC_PLLSAI_DIVQ (STM32_SRC_PLLSAI_Q + 1) |
#define STM32_SRC_PLLSAI_DIVR (STM32_SRC_PLLSAI_R + 1) |
#define STM32_SRC_PLLSAI_P (STM32_SRC_PLLI2S_R + 1) |
#define STM32_SRC_PLLSAI_Q (STM32_SRC_PLLSAI_P + 1) |
#define STM32_SRC_PLLSAI_R (STM32_SRC_PLLSAI_DIVQ + 1) |
#define STM32_SRC_TIMPCLK1 (STM32_SRC_PCLK + 1) |
#define STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
#define USART1_SEL | ( | val | ) |
Dedicated clocks configuration register selection helpers.
DKCFGR2 devices
#define USART2_SEL | ( | val | ) |
#define USART3_SEL | ( | val | ) |
#define USART4_SEL | ( | val | ) |
#define USART5_SEL | ( | val | ) |
#define USART6_SEL | ( | val | ) |
#define USART7_SEL | ( | val | ) |
#define USART8_SEL | ( | val | ) |