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 0x014 |
Bus gatting clocks. | |
#define | STM32_CLOCK_BUS_APB2 0x018 |
#define | STM32_CLOCK_BUS_APB1 0x01c |
#define | STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB1 |
#define | STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB1 |
#define | STM32_SRC_HSI (STM32_SRC_LSI + 1) |
Domain clocks. | |
#define | STM32_SRC_PCLK (STM32_SRC_HSI + 1) |
Bus clock. | |
#define | STM32_SRC_TIMPCLK1 (STM32_SRC_PCLK + 1) |
#define | STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
#define | STM32_SRC_TIMPLLCLK (STM32_SRC_TIMPCLK2 + 1) |
#define | STM32_SRC_PLLCLK (STM32_SRC_TIMPLLCLK + 1) |
PLL clock. | |
#define | CFGR_REG 0x04 |
RCC_CFGRx register offset. | |
#define | CFGR3_REG 0x30 |
#define | BDCR_REG 0x20 |
RCC_BDCR register offset. | |
#define | I2S_SEL(val) |
Device domain clocks selection helpers) | |
#define | MCO1_SEL(val) |
#define | MCO1_PRE(val) |
#define | USART1_SEL(val) |
CFGR3 devices. | |
#define | I2C1_SEL(val) |
#define | I2C2_SEL(val) |
#define | I2C3_SEL(val) |
#define | TIM1_SEL(val) |
#define | TIM8_SEL(val) |
#define | TIM15_SEL(val) |
#define | TIM16_SEL(val) |
#define | TIM17_SEL(val) |
#define | TIM20_SEL(val) |
#define | USART2_SEL(val) |
#define | USART3_SEL(val) |
#define | USART4_SEL(val) |
#define | USART5_SEL(val) |
#define | TIM2_SEL(val) |
#define | TIM3_4_SEL(val) |
#define | RTC_SEL(val) |
BDCR devices. |
#define BDCR_REG 0x20 |
RCC_BDCR register offset.
#define CFGR3_REG 0x30 |
#define CFGR_REG 0x04 |
RCC_CFGRx register offset.
#define I2C1_SEL | ( | val | ) |
#define I2C2_SEL | ( | val | ) |
#define I2C3_SEL | ( | val | ) |
#define I2S_SEL | ( | val | ) |
Device domain clocks selection helpers)
CFGR devices
#define MCO1_PRE | ( | val | ) |
#define MCO1_SEL | ( | val | ) |
#define RTC_SEL | ( | val | ) |
BDCR devices.
#define STM32_CLOCK_BUS_AHB1 0x014 |
Bus gatting clocks.
#define STM32_CLOCK_BUS_APB1 0x01c |
#define STM32_CLOCK_BUS_APB2 0x018 |
#define STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB1 |
#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_PCLK (STM32_SRC_HSI + 1) |
Bus clock.
#define STM32_SRC_PLLCLK (STM32_SRC_TIMPLLCLK + 1) |
PLL clock.
#define STM32_SRC_TIMPCLK1 (STM32_SRC_PCLK + 1) |
#define STM32_SRC_TIMPCLK2 (STM32_SRC_TIMPCLK1 + 1) |
#define STM32_SRC_TIMPLLCLK (STM32_SRC_TIMPCLK2 + 1) |
#define TIM15_SEL | ( | val | ) |
#define TIM16_SEL | ( | val | ) |
#define TIM17_SEL | ( | val | ) |
#define TIM1_SEL | ( | val | ) |
#define TIM20_SEL | ( | val | ) |
#define TIM2_SEL | ( | val | ) |
#define TIM3_4_SEL | ( | val | ) |
#define TIM8_SEL | ( | val | ) |
#define USART1_SEL | ( | val | ) |
CFGR3 devices.
#define USART2_SEL | ( | val | ) |
#define USART3_SEL | ( | val | ) |
#define USART4_SEL | ( | val | ) |
#define USART5_SEL | ( | val | ) |