Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32mp2_clock.h File Reference

Go to the source code of this file.

Macros

#define STM32_CLOCK(per, bit)   (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.
 
#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_MIN   STM32_CLOCK_PERIPH_GPIOA
 
#define STM32_CLOCK_PERIPH_MAX   STM32_CLOCK_PERIPH_GPIOZ
 

Macro Definition Documentation

◆ STM32_CLK

#define STM32_CLK   1U

◆ STM32_CLOCK

#define STM32_CLOCK (   per,
  bit 
)    (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_GPIOZ

◆ STM32_CLOCK_PERIPH_MIN

#define STM32_CLOCK_PERIPH_MIN   STM32_CLOCK_PERIPH_GPIOA

◆ STM32_LP_CLK

#define STM32_LP_CLK   2U