Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32-common.h File Reference

Go to the source code of this file.

Macros

#define STM32_RESET(bus, bit)   (((STM32_RESET_BUS_##bus) << 5U) | (bit))
 Pack RCC register offset and bit in one 32-bit value.
 

Macro Definition Documentation

◆ STM32_RESET

#define STM32_RESET (   bus,
  bit 
)    (((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