Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sf32lb-clocks-common.h File Reference

Go to the source code of this file.

Macros

#define SF32LB_CLOCK_CONFIG(offset, bit)
 Encode RCC register offset and configuration bit.

Macro Definition Documentation

◆ SF32LB_CLOCK_CONFIG

#define SF32LB_CLOCK_CONFIG ( offset,
bit )
Value:
((((offset) & SF32LB_CLOCK_OFFSET_MSK) << SF32LB_CLOCK_OFFSET_POS) | \
(((bit) & SF32LB_CLOCK_BIT_MSK) << SF32LB_CLOCK_BIT_POS))

Encode RCC register offset and configuration bit.

Bitmap:

  • 0..7: offset
  • 8..12: bit number
  • 13-15: reserved
Parameters
offsetRCC register offset to ENRx register
bitConfiguration bit