Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pinctrl-rcar-common.h File Reference

Go to the source code of this file.

Macros

#define IPSR(bank, shift, func)   (((bank) << 10U) | ((shift) << 4U) | (func))
 Utility macro to build IPSR property entry.
 
#define PIN_NOGPSR_START   1024U
 
#define RCAR_GP_PIN(bank, pin)   (((bank) * 32U) + (pin))
 Utility macro to encode a GPIO capable pin.
 
#define RCAR_NOGP_PIN(pin)   (PIN_NOGPSR_START + pin)
 Utility macro to encode a non capable GPIO pin.
 

Macro Definition Documentation

◆ IPSR

#define IPSR (   bank,
  shift,
  func 
)    (((bank) << 10U) | ((shift) << 4U) | (func))

Utility macro to build IPSR property entry.

IPSR: Peripheral Function Select Register Each IPSR bank can hold 8 cellules of 4 bits coded function.

Parameters
bankthe IPSR register bank.
shiftthe bit shift for this alternate function.
functhe 4 bits encoded alternate function.

Function code [ 0 : 3 ] Function shift [ 4 : 9 ] IPSR bank [ 10 : 13 ]

◆ PIN_NOGPSR_START

#define PIN_NOGPSR_START   1024U

◆ RCAR_GP_PIN

#define RCAR_GP_PIN (   bank,
  pin 
)    (((bank) * 32U) + (pin))

Utility macro to encode a GPIO capable pin.

Parameters
bankthe GPIO bank
pinthe pin within the GPIO bank (0..31)

◆ RCAR_NOGP_PIN

#define RCAR_NOGP_PIN (   pin)    (PIN_NOGPSR_START + pin)

Utility macro to encode a non capable GPIO pin.

Parameters
pinthe encoded pin number