Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl_rp1_common.h File Reference

Common definitions for the RP1 pinctrl driver. More...

Go to the source code of this file.

Macros

#define RP1_GET_PIN_NUM(pinctrl)
 Extract the GPIO number from an encoded RP1 pinmux value.
#define RP1_GET_ALT_FUNC(pinctrl)
 Extract the alternate function selector from an encoded RP1 pinmux value.

Detailed Description

Common definitions for the RP1 pinctrl driver.

Macro Definition Documentation

◆ RP1_GET_ALT_FUNC

#define RP1_GET_ALT_FUNC ( pinctrl)
Value:
(((pinctrl) >> RP1_ALT_FUNC_POS) & RP1_ALT_FUNC_MASK)

Extract the alternate function selector from an encoded RP1 pinmux value.

Parameters
pinctrlA pin configuration value defined in devicetree
Returns
GPIO alternate function number

◆ RP1_GET_PIN_NUM

#define RP1_GET_PIN_NUM ( pinctrl)
Value:
(((pinctrl) >> RP1_PIN_NUM_POS) & RP1_PIN_NUM_MASK)

Extract the GPIO number from an encoded RP1 pinmux value.

Parameters
pinctrlA pin configuration value defined in devicetree
Returns
GPIO number