We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d740201 commit 594e208Copy full SHA for 594e208
include/zephyr/dt-bindings/pinctrl/rpi-pico-pinctrl-common.h
@@ -19,7 +19,8 @@
19
#define RP2_GPIO_OVERRIDE_LOW 2
20
#define RP2_GPIO_OVERRIDE_HIGH 3
21
22
-#define RP2XXX_PINMUX(pin_num, alt_func) (pin_num << RP2_PIN_NUM_POS | alt_func << RP2_ALT_FUNC_POS)
+#define RP2XXX_PINMUX(pin_num, alt_func) \
23
+ (((pin_num) << RP2_PIN_NUM_POS) | ((alt_func) << RP2_ALT_FUNC_POS))
24
25
/* These function are common. SoC-specific functions are defined in their
26
* respective header file. Refer to table 279 and 642 in the RP2040 and RP2350
0 commit comments