Lines Matching +full:analog +full:- +full:mode
4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/dt-bindings/pinctrl/stm32-pinctrl-common.h>
11 #include <zephyr/dt-bindings/pinctrl/stm32f1-afio.h>
13 /* Adapted from Linux: include/dt-bindings/pinctrl/stm32-pinfunc.h */
16 * @brief Macro to generate pinmux int using port, pin number and mode arguments
17 * This is adapted from Linux equivalent st,stm32f429-pinctrl binding
34 * - mode [ 0 : 1 ]
35 * - line [ 2 : 5 ]
36 * - port [ 6 : 9 ]
37 * - remap [ 10 : 19 ]
41 * @param mode Pin mode (ANALOG, GPIO_IN, ALTERNATE).
44 #define STM32F1_PINMUX(port, line, mode, remap) \ argument
45 (((((port) - 'A') & STM32_PORT_MASK) << STM32_PORT_SHIFT) | \
47 (((mode) & STM32_MODE_MASK) << STM32_MODE_SHIFT) | \
56 #define ANALOG 0x2 /* Analog */ macro
64 * GPIO I/O Mode [ 0 ]
75 /* Port Mode */
105 /* GPIO High impedance/Pull-up/Pull-down */