Searched refs:PIN_IN (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/ |
D | test_config_trigger.c | 17 zassert_equal(pins, BIT(PIN_IN), in callback() 35 ret = gpio_pin_configure(dev_in, PIN_IN, GPIO_INPUT); in ZTEST() 38 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in ZTEST() 43 ret = gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_EDGE_BOTH); in ZTEST() 86 ret = gpio_pin_configure(dev_in, PIN_IN, GPIO_INPUT); in ZTEST() 89 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in ZTEST() 94 ret = gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_EDGE_BOTH); in ZTEST()
|
D | test_callback_trigger.c | 21 zassert_equal(pins, BIT(PIN_IN), in callback() 31 gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_DISABLE); in callback() 41 gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_DISABLE); in test_callback() 59 rc = gpio_pin_configure(dev_in, PIN_IN, (GPIO_INPUT | PIN_IN_FLAGS)); in test_callback() 66 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in test_callback() 78 rc = gpio_pin_interrupt_configure(dev_in, PIN_IN, mode); in test_callback() 89 (void)gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_DISABLE); in test_callback()
|
D | gpio_emul_callback.c | 27 .pin_mask = BIT(PIN_IN) | BIT(PIN_OUT), 43 r = gpio_emul_flags_get(port, PIN_IN, &input_flags); in gpio_emul_callback_handler() 50 r = gpio_emul_input_set(port, PIN_IN, val); in gpio_emul_callback_handler() 64 r = gpio_emul_input_set(port, PIN_IN, val); in gpio_emul_callback_handler()
|
D | test_gpio_port.c | 27 return (v & BIT(PIN_IN)) ? true : false; in raw_in() 42 return (v & BIT(PIN_IN)) ? true : false; in logic_in() 85 dev_in->name, PIN_IN); in setup() 87 rc = gpio_pin_configure(dev_in, PIN_IN, GPIO_INPUT); in setup() 105 zassert_equal(v1 & BIT(PIN_IN), 0, in setup() 137 zassert_not_equal(v1 & BIT(PIN_IN), 0, in setup() 140 TC_PRINT("OUT %d to IN %d linkage works\n", PIN_OUT, PIN_IN); in setup() 198 rc = gpio_port_set_masked_raw(dev_in, BIT(PIN_IN), 0); in bits_physical() 204 rc = gpio_port_set_clr_bits_raw(dev_out, BIT(PIN_IN), BIT(PIN_OUT)); in bits_physical() 210 rc = gpio_port_set_clr_bits_raw(dev_out, BIT(PIN_OUT), BIT(PIN_IN)); in bits_physical() [all …]
|
D | main.c | 30 if (PIN_IN != 15) { in board_setup() 31 printk("FATAL: input pin set in DTS %d != %d\n", PIN_IN, 15); in board_setup() 72 nrf_gpio_backend_register_short(1, PIN_OUT, 1, PIN_IN); in board_setup()
|
D | test_callback_manage.c | 38 int rc = gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_DISABLE); in init_callback() 50 rc = gpio_pin_configure(dev_in, PIN_IN, (GPIO_INPUT | PIN_IN_FLAGS)); in init_callback() 54 gpio_init_callback(&cb_data[0].gpio_cb, handler_1, BIT(PIN_IN)); in init_callback() 59 gpio_init_callback(&cb_data[1].gpio_cb, handler_2, BIT(PIN_IN)); in init_callback() 75 gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_EDGE_RISING); in trigger_callback() 77 gpio_pin_interrupt_configure(dev_in, PIN_IN, GPIO_INT_DISABLE); in trigger_callback()
|
D | test_gpio.h | 29 #define PIN_IN DT_GPIO_PIN(DT_INST(0, test_gpio_basic_api), in_gpios) macro 45 #define PIN_IN 3 macro
|