Zephyr API 3.6.99
Loading...
Searching...
No Matches
stm32-common.h File Reference

Go to the source code of this file.

Macros

#define STM32_RESET(bus, bit)
 Pack RCC register offset and bit in one 32-bit value.
 

Macro Definition Documentation

◆ STM32_RESET

#define STM32_RESET ( bus,
bit )
Value:
(((STM32_RESET_BUS_##bus) << 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
busSTM32 bus name (expands to STM32_RESET_BUS_{bus})
bitReset bit