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

Go to the source code of this file.

Macros

#define GD32_RESET_CONFIG(reg, bit)
 Encode RCU register offset and configuration bit.
 

Macro Definition Documentation

◆ GD32_RESET_CONFIG

#define GD32_RESET_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