Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
stm32mp2_reset.h File Reference

Go to the source code of this file.

Macros

#define STM32_RESET(per, bit)
 Pack RCC register offset and bit in one 32-bit value.
#define STM32_RST   0U
#define STM32_RESET_PERIPH_USART1   0x77C
#define STM32_RESET_PERIPH_USART2   0x780
#define STM32_RESET_PERIPH_USART3   0x784
#define STM32_RESET_PERIPH_UART4   0x788
#define STM32_RESET_PERIPH_UART5   0x78C
#define STM32_RESET_PERIPH_USART6   0x790
#define STM32_RESET_PERIPH_UART7   0x794
#define STM32_RESET_PERIPH_UART8   0x798
#define STM32_RESET_PERIPH_UART9   0x79C

Macro Definition Documentation

◆ STM32_RESET

#define STM32_RESET ( per,
bit )
Value:
(((STM32_RESET_PERIPH_##per##) << 5U) | (bit))

Pack RCC register offset and bit in one 32-bit value.

5 LSBs are used to keep bit number in 32-bit RCC register. Next 12 bits are used to keep RCC register offset. Remaining bits are unused.

Parameters
perSTM32 peripheral name
bitReset bit

◆ STM32_RESET_PERIPH_UART4

#define STM32_RESET_PERIPH_UART4   0x788

◆ STM32_RESET_PERIPH_UART5

#define STM32_RESET_PERIPH_UART5   0x78C

◆ STM32_RESET_PERIPH_UART7

#define STM32_RESET_PERIPH_UART7   0x794

◆ STM32_RESET_PERIPH_UART8

#define STM32_RESET_PERIPH_UART8   0x798

◆ STM32_RESET_PERIPH_UART9

#define STM32_RESET_PERIPH_UART9   0x79C

◆ STM32_RESET_PERIPH_USART1

#define STM32_RESET_PERIPH_USART1   0x77C

◆ STM32_RESET_PERIPH_USART2

#define STM32_RESET_PERIPH_USART2   0x780

◆ STM32_RESET_PERIPH_USART3

#define STM32_RESET_PERIPH_USART3   0x784

◆ STM32_RESET_PERIPH_USART6

#define STM32_RESET_PERIPH_USART6   0x790

◆ STM32_RST

#define STM32_RST   0U