Zephyr API Documentation 4.2.0
A Scalable Open Source RTOS
 4.2.0
stm32mp2_clock.h File Reference

Go to the source code of this file.

Macros

#define STM32_CLOCK(per, bit)
 Pack RCC clock register offset and bit in two 32-bit values as expected for the Device Tree clocks property on STM32.
#define STM32_CLK   1U
#define STM32_LP_CLK   2U
#define STM32_CLOCK_PERIPH_GPIOA   0x52C
#define STM32_CLOCK_PERIPH_GPIOB   0x530
#define STM32_CLOCK_PERIPH_GPIOC   0x534
#define STM32_CLOCK_PERIPH_GPIOD   0x538
#define STM32_CLOCK_PERIPH_GPIOE   0x53C
#define STM32_CLOCK_PERIPH_GPIOF   0x540
#define STM32_CLOCK_PERIPH_GPIOG   0x544
#define STM32_CLOCK_PERIPH_GPIOH   0x548
#define STM32_CLOCK_PERIPH_GPIOI   0x54C
#define STM32_CLOCK_PERIPH_GPIOJ   0x550
#define STM32_CLOCK_PERIPH_GPIOK   0x554
#define STM32_CLOCK_PERIPH_GPIOZ   0x558
#define STM32_CLOCK_PERIPH_USART1   0x77C
#define STM32_CLOCK_PERIPH_USART2   0x780
#define STM32_CLOCK_PERIPH_USART3   0x784
#define STM32_CLOCK_PERIPH_UART4   0x788
#define STM32_CLOCK_PERIPH_UART5   0x78C
#define STM32_CLOCK_PERIPH_USART6   0x790
#define STM32_CLOCK_PERIPH_UART7   0x794
#define STM32_CLOCK_PERIPH_UART8   0x798
#define STM32_CLOCK_PERIPH_UART9   0x79C
#define STM32_CLOCK_PERIPH_MIN   STM32_CLOCK_PERIPH_GPIOA
#define STM32_CLOCK_PERIPH_MAX   STM32_CLOCK_PERIPH_UART9

Macro Definition Documentation

◆ STM32_CLK

#define STM32_CLK   1U

◆ STM32_CLOCK

#define STM32_CLOCK ( per,
bit )
Value:
(STM32_CLOCK_PERIPH_##per) (1 << bit)

Pack RCC clock register offset and bit in two 32-bit values as expected for the Device Tree clocks property on STM32.

Parameters
perSTM32 Peripheral name (expands to STM32_CLOCK_PERIPH_{PER})
bitClock bit

◆ STM32_CLOCK_PERIPH_GPIOA

#define STM32_CLOCK_PERIPH_GPIOA   0x52C

◆ STM32_CLOCK_PERIPH_GPIOB

#define STM32_CLOCK_PERIPH_GPIOB   0x530

◆ STM32_CLOCK_PERIPH_GPIOC

#define STM32_CLOCK_PERIPH_GPIOC   0x534

◆ STM32_CLOCK_PERIPH_GPIOD

#define STM32_CLOCK_PERIPH_GPIOD   0x538

◆ STM32_CLOCK_PERIPH_GPIOE

#define STM32_CLOCK_PERIPH_GPIOE   0x53C

◆ STM32_CLOCK_PERIPH_GPIOF

#define STM32_CLOCK_PERIPH_GPIOF   0x540

◆ STM32_CLOCK_PERIPH_GPIOG

#define STM32_CLOCK_PERIPH_GPIOG   0x544

◆ STM32_CLOCK_PERIPH_GPIOH

#define STM32_CLOCK_PERIPH_GPIOH   0x548

◆ STM32_CLOCK_PERIPH_GPIOI

#define STM32_CLOCK_PERIPH_GPIOI   0x54C

◆ STM32_CLOCK_PERIPH_GPIOJ

#define STM32_CLOCK_PERIPH_GPIOJ   0x550

◆ STM32_CLOCK_PERIPH_GPIOK

#define STM32_CLOCK_PERIPH_GPIOK   0x554

◆ STM32_CLOCK_PERIPH_GPIOZ

#define STM32_CLOCK_PERIPH_GPIOZ   0x558

◆ STM32_CLOCK_PERIPH_MAX

#define STM32_CLOCK_PERIPH_MAX   STM32_CLOCK_PERIPH_UART9

◆ STM32_CLOCK_PERIPH_MIN

#define STM32_CLOCK_PERIPH_MIN   STM32_CLOCK_PERIPH_GPIOA

◆ STM32_CLOCK_PERIPH_UART4

#define STM32_CLOCK_PERIPH_UART4   0x788

◆ STM32_CLOCK_PERIPH_UART5

#define STM32_CLOCK_PERIPH_UART5   0x78C

◆ STM32_CLOCK_PERIPH_UART7

#define STM32_CLOCK_PERIPH_UART7   0x794

◆ STM32_CLOCK_PERIPH_UART8

#define STM32_CLOCK_PERIPH_UART8   0x798

◆ STM32_CLOCK_PERIPH_UART9

#define STM32_CLOCK_PERIPH_UART9   0x79C

◆ STM32_CLOCK_PERIPH_USART1

#define STM32_CLOCK_PERIPH_USART1   0x77C

◆ STM32_CLOCK_PERIPH_USART2

#define STM32_CLOCK_PERIPH_USART2   0x780

◆ STM32_CLOCK_PERIPH_USART3

#define STM32_CLOCK_PERIPH_USART3   0x784

◆ STM32_CLOCK_PERIPH_USART6

#define STM32_CLOCK_PERIPH_USART6   0x790

◆ STM32_LP_CLK

#define STM32_LP_CLK   2U