soc: raspberrypi: common: reformat pinctrl include
Apply clang-format on source files. Signed-off-by: Martin Meyer <meyer.m90@gmail.com>
This commit is contained in:
parent
5d39cc1eea
commit
010d7d1b9a
1 changed files with 30 additions and 33 deletions
|
@ -71,13 +71,10 @@ typedef struct rpi_pinctrl_soc_pin pinctrl_soc_pin_t;
|
|||
* @param prop Property name describing state pins.
|
||||
*/
|
||||
#define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \
|
||||
{DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
|
||||
DT_FOREACH_PROP_ELEM, pinmux, \
|
||||
{DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
|
||||
Z_PINCTRL_STATE_PIN_INIT)}
|
||||
|
||||
#define RP2_GET_PIN_NUM(pinctrl) \
|
||||
(((pinctrl) >> RP2_PIN_NUM_POS) & RP2_PIN_NUM_MASK)
|
||||
#define RP2_GET_PIN_ALT_FUNC(pinctrl) \
|
||||
(((pinctrl) >> RP2_ALT_FUNC_POS) & RP2_ALT_FUNC_MASK)
|
||||
#define RP2_GET_PIN_NUM(pinctrl) (((pinctrl) >> RP2_PIN_NUM_POS) & RP2_PIN_NUM_MASK)
|
||||
#define RP2_GET_PIN_ALT_FUNC(pinctrl) (((pinctrl) >> RP2_ALT_FUNC_POS) & RP2_ALT_FUNC_MASK)
|
||||
|
||||
#endif /* ZEPHYR_SOC_ARM_RPI_PICO_RP2_PINCTRL_SOC_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue