Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stm32f1_clock.h File Reference

Go to the source code of this file.

Macros

#define STM32_CLOCK_BUS_AHB1   0x014
 Domain 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)
 System clock.
 
#define STM32_SRC_HSE   (STM32_SRC_HSI + 1)
 
#define STM32_SRC_EXT_HSE   (STM32_SRC_HSE + 1)
 
#define STM32_SRC_PLLCLK   (STM32_SRC_EXT_HSE + 1)
 
#define CFGR1_REG   0x04
 RCC_CFGRx register offset.
 
#define CFGR2_REG   0x2C
 
#define BDCR_REG   0x20
 RCC_BDCR register offset.
 
#define I2S2_SEL(val)
 Device domain clocks selection helpers.
 
#define I2S3_SEL(val)
 
#define RTC_SEL(val)
 BDCR devices.
 
#define MCO1_SEL(val)
 CFGR1 devices.
 

Macro Definition Documentation

◆ BDCR_REG

#define BDCR_REG   0x20

RCC_BDCR register offset.

◆ CFGR1_REG

#define CFGR1_REG   0x04

RCC_CFGRx register offset.

◆ CFGR2_REG

#define CFGR2_REG   0x2C

◆ I2S2_SEL

#define I2S2_SEL ( val)
Value:
#define STM32_DT_CLOCK_SELECT(val, mask, shift, reg)
Pack STM32 source clock selection RCC register bit fields for the DT.
Definition stm32_common_clocks.h:46
#define CFGR2_REG
Definition stm32f1_clock.h:33

Device domain clocks selection helpers.

CFGR2 devices

◆ I2S3_SEL

#define I2S3_SEL ( val)
Value:

◆ MCO1_SEL

#define MCO1_SEL ( val)
Value:
#define CFGR1_REG
RCC_CFGRx register offset.
Definition stm32f1_clock.h:32

CFGR1 devices.

◆ RTC_SEL

#define RTC_SEL ( val)
Value:
#define BDCR_REG
RCC_BDCR register offset.
Definition stm32f1_clock.h:36

BDCR devices.

◆ STM32_CLOCK_BUS_AHB1

#define STM32_CLOCK_BUS_AHB1   0x014

Domain clocks.

Bus clocks

◆ STM32_CLOCK_BUS_APB1

#define STM32_CLOCK_BUS_APB1   0x01c

◆ STM32_CLOCK_BUS_APB2

#define STM32_CLOCK_BUS_APB2   0x018

◆ STM32_PERIPH_BUS_MAX

#define STM32_PERIPH_BUS_MAX   STM32_CLOCK_BUS_APB1

◆ STM32_PERIPH_BUS_MIN

#define STM32_PERIPH_BUS_MIN   STM32_CLOCK_BUS_AHB1

◆ STM32_SRC_EXT_HSE

#define STM32_SRC_EXT_HSE   (STM32_SRC_HSE + 1)

◆ STM32_SRC_HSE

#define STM32_SRC_HSE   (STM32_SRC_HSI + 1)

◆ STM32_SRC_HSI

#define STM32_SRC_HSI   (STM32_SRC_LSI + 1)

System clock.

Fixed clocks

◆ STM32_SRC_PLLCLK

#define STM32_SRC_PLLCLK   (STM32_SRC_EXT_HSE + 1)