Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gd32-clocks-common.h File Reference

Go to the source code of this file.

Macros

#define GD32_CLOCK_CONFIG(reg, bit)    (((GD32_ ## reg ## _OFFSET) << 6U) | (bit))
 Encode RCU register offset and configuration bit.
 

Macro Definition Documentation

◆ GD32_CLOCK_CONFIG

#define GD32_CLOCK_CONFIG (   reg,
  bit 
)     (((GD32_ ## reg ## _OFFSET) << 6U) | (bit))

Encode RCU register offset and configuration bit.

  • 0..5: bit number
  • 6..14: offset
  • 15: reserved
Parameters
regRCU register name (expands to GD32_{reg}_OFFSET)
bitConfiguration bit