Lines Matching +full:op +full:- +full:mode

4  * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/dt-bindings/gpio/ti-cc13xx-cc26xx-gpio.h>
29 /* bits 16-18 in iocfg registers correspond to interrupt settings */
32 /* the rest are for general (non-interrupt) config */
72 return -ENOTSUP; in gpio_cc13xx_cc26xx_config()
92 return -ENOTSUP; in gpio_cc13xx_cc26xx_config()
106 return -EINVAL; in gpio_cc13xx_cc26xx_config()
172 enum gpio_int_mode mode, in gpio_cc13xx_cc26xx_pin_interrupt_configure() argument
177 if (mode != GPIO_INT_MODE_DISABLED) { in gpio_cc13xx_cc26xx_pin_interrupt_configure()
178 if (mode == GPIO_INT_MODE_EDGE) { in gpio_cc13xx_cc26xx_pin_interrupt_configure()
187 return -ENOTSUP; in gpio_cc13xx_cc26xx_pin_interrupt_configure()
205 struct gpio_cc13xx_cc26xx_data *data = port->data; in gpio_cc13xx_cc26xx_manage_callback()
207 return gpio_manage_callback(&data->callbacks, callback, set); in gpio_cc13xx_cc26xx_manage_callback()
217 struct gpio_cc13xx_cc26xx_data *data = dev->data; in gpio_cc13xx_cc26xx_isr()
223 gpio_fire_callbacks(&data->callbacks, dev, status); in gpio_cc13xx_cc26xx_isr()
273 gpio_port_pins_t op = 0; in gpio_cc13xx_cc26xx_port_get_direction() local
274 const struct gpio_driver_config *cfg = port->config; in gpio_cc13xx_cc26xx_port_get_direction()
276 map &= cfg->port_pin_mask; in gpio_cc13xx_cc26xx_port_get_direction()
279 for (pin = find_lsb_set(map) - 1; map; in gpio_cc13xx_cc26xx_port_get_direction()
280 map &= ~BIT(pin), pin = find_lsb_set(map) - 1) { in gpio_cc13xx_cc26xx_port_get_direction()
288 for (pin = find_lsb_set(map) - 1; map; in gpio_cc13xx_cc26xx_port_get_direction()
289 map &= ~BIT(pin), pin = find_lsb_set(map) - 1) { in gpio_cc13xx_cc26xx_port_get_direction()
290 op |= GPIO_getOutputEnableDio(pin) * BIT(pin); in gpio_cc13xx_cc26xx_port_get_direction()
293 *outputs = op; in gpio_cc13xx_cc26xx_port_get_direction()