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
stm32f0_clock.h File Reference

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_HSI14   (STM32_SRC_HSI + 1)
 
#define STM32_SRC_HSI48   (STM32_SRC_HSI14 + 1)
 
#define STM32_SRC_PCLK   (STM32_SRC_HSI48 + 1)
 Bus clock.
 
#define STM32_SRC_PLLCLK   (STM32_SRC_PCLK + 1)
 PLL clock.
 
#define CFGR1_REG   0x04
 RCC_CFGRx register offset.
 
#define CFGR3_REG   0x30
 
#define BDCR_REG   0x20
 RCC_BDCR register offset.
 
#define USART1_SEL(val)
 Device domain clocks selection helpers.
 
#define I2C1_SEL(val)
 
#define CEC_SEL(val)
 
#define USB_SEL(val)
 
#define USART2_SEL(val)
 
#define USART3_SEL(val)
 
#define RTC_SEL(val)
 BDCR devices.
 
#define MCO1_SEL(val)
 CFGR1 devices.
 
#define MCO1_PRE(val)
 

Macro Definition Documentation

◆ BDCR_REG

#define BDCR_REG   0x20

RCC_BDCR register offset.

◆ CEC_SEL

#define CEC_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 CFGR3_REG
Definition stm32f0_clock.h:35

◆ CFGR1_REG

#define CFGR1_REG   0x04

RCC_CFGRx register offset.

◆ CFGR3_REG

#define CFGR3_REG   0x30

◆ I2C1_SEL

#define I2C1_SEL ( val)
Value:

◆ MCO1_PRE

#define MCO1_PRE ( val)
Value:
#define CFGR1_REG
RCC_CFGRx register offset.
Definition stm32f0_clock.h:34

◆ MCO1_SEL

#define MCO1_SEL ( val)
Value:

CFGR1 devices.

◆ RTC_SEL

#define RTC_SEL ( val)
Value:
#define BDCR_REG
RCC_BDCR register offset.
Definition stm32f0_clock.h:38

BDCR devices.

◆ STM32_CLOCK_BUS_AHB1

#define STM32_CLOCK_BUS_AHB1   0x014

Bus gatting 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_HSI

#define STM32_SRC_HSI   (STM32_SRC_LSI + 1)

Domain clocks.

System clock Fixed clocks

◆ STM32_SRC_HSI14

#define STM32_SRC_HSI14   (STM32_SRC_HSI + 1)

◆ STM32_SRC_HSI48

#define STM32_SRC_HSI48   (STM32_SRC_HSI14 + 1)

◆ STM32_SRC_PCLK

#define STM32_SRC_PCLK   (STM32_SRC_HSI48 + 1)

Bus clock.

◆ STM32_SRC_PLLCLK

#define STM32_SRC_PLLCLK   (STM32_SRC_PCLK + 1)

PLL clock.

◆ USART1_SEL

#define USART1_SEL ( val)
Value:

Device domain clocks selection helpers.

CFGR3 devices

◆ USART2_SEL

#define USART2_SEL ( val)
Value:

◆ USART3_SEL

#define USART3_SEL ( val)
Value:

◆ USB_SEL

#define USB_SEL ( val)
Value: