Lines Matching +full:out +full:- +full:gpio
4 * SPDX-License-Identifier: Apache-2.0
7 /* Include esp-idf headers first to avoid redefining BIT() macro */
16 #define out out.val macro
21 /* gpio structs in esp32c3 series are different from xtensa ones */
22 #define out out.data macro
27 /* gpio structs in esp32c6 are also different */
28 #define out out.out_data_orig macro
46 * @brief Array containing each GPIO port address.
55 /** Number of GPIO ports. */
84 return -EINVAL; in esp32_pin_apply_config()
94 ret = -EINVAL; in esp32_pin_apply_config()
98 /* Set pin function as GPIO */ in esp32_pin_apply_config()
103 gpio_ll_pulldown_dis(&GPIO, io_pin); in esp32_pin_apply_config()
104 gpio_ll_pullup_en(&GPIO, io_pin); in esp32_pin_apply_config()
114 ret = -ENOTSUP; in esp32_pin_apply_config()
121 gpio_ll_pullup_dis(&GPIO, io_pin); in esp32_pin_apply_config()
122 gpio_ll_pulldown_en(&GPIO, io_pin); in esp32_pin_apply_config()
132 ret = -ENOTSUP; in esp32_pin_apply_config()
141 ret = -EINVAL; in esp32_pin_apply_config()
158 gpio_ll_output_enable(&GPIO, io_pin); in esp32_pin_apply_config()
162 gpio_ll_output_disable(&GPIO, io_pin); in esp32_pin_apply_config()
167 gpio_ll_input_enable(&GPIO, io_pin); in esp32_pin_apply_config()
170 gpio_ll_input_disable(&GPIO, io_pin); in esp32_pin_apply_config()
187 return -EINVAL; in esp32_pin_configure()
193 return -EINVAL; in esp32_pin_configure()
219 return -ENOTSUP; in esp32_pin_configure()
256 gpio_dev->out_w1ts = BIT(pin_num); in esp32_pin_configure()
261 gpio_dev->out1_w1ts.data = BIT(pin_num - 32); in esp32_pin_configure()
270 gpio_dev->out_w1tc = BIT(pin_num); in esp32_pin_configure()
275 gpio_dev->out1_w1tc.data = BIT(pin_num - 32); in esp32_pin_configure()