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 0x48 |
Bus gatting clocks. | |
#define | STM32_CLOCK_BUS_IOP 0x4C |
#define | STM32_CLOCK_BUS_APB1 0x58 |
#define | STM32_CLOCK_BUS_APB1_2 0x60 |
#define | STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
#define | STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB1_2 |
#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) |
Peripheral bus clock. | |
#define | STM32_SRC_PLL_P (STM32_SRC_PCLK + 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_CK48 (STM32_SRC_PLL_R + 1) |
#define | CCIPR_REG 0x88 |
RCC_CCIPR register offset. | |
#define | BDCR_REG 0x90 |
RCC_BDCR register offset. | |
#define | USART1_SEL(val) |
Device domain clocks selection helpers. | |
#define | USART2_SEL(val) |
#define | LPUART3_SEL(val) |
#define | LPUART2_SEL(val) |
#define | LPUART1_SEL(val) |
#define | I2C1_SEL(val) |
#define | I2C3_SEL(val) |
#define | LPTIM1_SEL(val) |
#define | LPTIM2_SEL(val) |
#define | LPTIM3_SEL(val) |
#define | TIM1_SEL(val) |
#define | TIM15_SEL(val) |
#define | CLK48_SEL(val) |
#define | ADC_SEL(val) |
#define | RTC_SEL(val) |
BDCR 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 I2C1_SEL | ( | val | ) |
#define I2C3_SEL | ( | val | ) |
#define LPTIM1_SEL | ( | val | ) |
#define LPTIM2_SEL | ( | val | ) |
#define LPTIM3_SEL | ( | val | ) |
#define LPUART1_SEL | ( | val | ) |
#define LPUART2_SEL | ( | val | ) |
#define LPUART3_SEL | ( | val | ) |
#define RTC_SEL | ( | val | ) |
BDCR devices.
#define STM32_CLOCK_BUS_AHB1 0x48 |
Bus gatting clocks.
#define STM32_CLOCK_BUS_APB1 0x58 |
#define STM32_CLOCK_BUS_APB1_2 0x60 |
#define STM32_CLOCK_BUS_IOP 0x4C |
#define STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB1_2 |
#define STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
#define STM32_SRC_CK48 (STM32_SRC_PLL_R + 1) |
#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) |
Peripheral bus clock.
#define STM32_SRC_PLL_P (STM32_SRC_PCLK + 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 TIM15_SEL | ( | val | ) |
#define TIM1_SEL | ( | val | ) |
#define USART1_SEL | ( | val | ) |
Device domain clocks selection helpers.
CCIPR devices
#define USART2_SEL | ( | val | ) |