Lines Matching +full:interrupt +full:- +full:map +full:- +full:mask
4 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/dt-bindings/gpio/ti-cc13xx-cc26xx-gpio.h>
17 #include <driverlib/interrupt.h>
29 /* bits 16-18 in iocfg registers correspond to interrupt settings */
32 /* the rest are for general (non-interrupt) config */
48 uint32_t mask);
50 uint32_t mask);
72 return -ENOTSUP; in gpio_cc13xx_cc26xx_config()
92 return -ENOTSUP; in gpio_cc13xx_cc26xx_config()
106 return -EINVAL; in gpio_cc13xx_cc26xx_config()
137 uint32_t mask, in gpio_cc13xx_cc26xx_port_set_masked_raw() argument
140 GPIO_setMultiDio(mask & value); in gpio_cc13xx_cc26xx_port_set_masked_raw()
141 GPIO_clearMultiDio(mask & ~value); in gpio_cc13xx_cc26xx_port_set_masked_raw()
147 uint32_t mask) in gpio_cc13xx_cc26xx_port_set_bits_raw() argument
149 GPIO_setMultiDio(mask); in gpio_cc13xx_cc26xx_port_set_bits_raw()
155 uint32_t mask) in gpio_cc13xx_cc26xx_port_clear_bits_raw() argument
157 GPIO_clearMultiDio(mask); in gpio_cc13xx_cc26xx_port_clear_bits_raw()
163 uint32_t mask) in gpio_cc13xx_cc26xx_port_toggle_bits() argument
165 GPIO_toggleMultiDio(mask); in gpio_cc13xx_cc26xx_port_toggle_bits()
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()
267 static int gpio_cc13xx_cc26xx_port_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_cc13xx_cc26xx_port_get_direction() argument
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()