Zephyr API Documentation 4.0.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)
 Encode RCU register offset and configuration bit.
 

Macro Definition Documentation

◆ GD32_CLOCK_CONFIG

#define GD32_CLOCK_CONFIG ( reg,
bit )
Value:
(((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