Home
last modified time | relevance | path

Searched refs:TEST_PIN (Results 1 – 8 of 8) sorted by relevance

/tests/drivers/gpio/gpio_ite_it8xxx2_v2/src/
A Dmain.c30 #define TEST_PIN 1 macro
103 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
117 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
135 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
159 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
201 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
225 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
374 zexpect_equal(registers.gpcr[TEST_PIN], 0, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
419 TEST_PIN, registers.gpcr[TEST_PIN]); in ZTEST()
434 TEST_PIN, registers.gpcr[TEST_PIN]); in ZTEST()
[all …]
/tests/drivers/gpio/gpio_api_1pin/src/
A Dtest_config.c58 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT); in ZTEST()
61 pin_set_raw_and_verify(port, TEST_PIN, 1, TEST_POINT(1)); in ZTEST()
62 pin_set_raw_and_verify(port, TEST_PIN, 0, TEST_POINT(1)); in ZTEST()
75 pin_set_raw_and_verify(port, TEST_PIN, 0, TEST_POINT(2)); in ZTEST()
76 pin_get_raw_and_verify(port, TEST_PIN, 0, TEST_POINT(2)); in ZTEST()
78 pin_set_raw_and_verify(port, TEST_PIN, 1, TEST_POINT(3)); in ZTEST()
79 pin_get_raw_and_verify(port, TEST_PIN, 1, TEST_POINT(3)); in ZTEST()
81 pin_set_raw_and_verify(port, TEST_PIN, 0, TEST_POINT(4)); in ZTEST()
119 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT); in ZTEST()
125 pin_in_val = gpio_pin_get_raw(port, TEST_PIN); in ZTEST()
[all …]
A Dtest_pin.c79 pin_set_raw_and_verify(port, TEST_PIN, 1, 0); in ZTEST()
82 ret = gpio_pin_toggle(port, TEST_PIN); in ZTEST()
113 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | in ZTEST()
117 pin_set_and_verify(port, TEST_PIN, 1, 0); in ZTEST()
123 ret = gpio_pin_toggle(port, TEST_PIN); in ZTEST()
198 pin_set_and_verify(port, TEST_PIN, test_vector[i], i); in ZTEST()
202 pin_get_and_verify(port, TEST_PIN, val_expected, i); in ZTEST()
241 pin_get_and_verify(port, TEST_PIN, val_expected, i); in ZTEST()
251 pin_get_and_verify(port, TEST_PIN, val_expected, i); in ZTEST()
292 pin_get_and_verify(port, TEST_PIN, val_expected, i); in ZTEST()
[all …]
A Dtest_port.c130 port_set_bits_raw_and_verify(port, BIT(TEST_PIN), 0); in ZTEST()
132 val_expected = BIT(TEST_PIN); in ZTEST()
135 ret = gpio_port_toggle_bits(port, BIT(TEST_PIN)); in ZTEST()
139 val_expected ^= BIT(TEST_PIN); in ZTEST()
359 val_expected |= test_vector[i][0] & (BIT(TEST_PIN)); in ZTEST()
363 val_expected &= ~(test_vector[i][1] & (BIT(TEST_PIN))); in ZTEST()
398 val_expected |= test_vector[i][0] & (BIT(TEST_PIN)); in ZTEST()
402 val_expected &= ~(test_vector[i][1] & (BIT(TEST_PIN))); in ZTEST()
439 val_expected |= test_vector[i][0] & (BIT(TEST_PIN)); in ZTEST()
440 val_expected &= ~(test_vector[i][1] & (BIT(TEST_PIN))); in ZTEST()
[all …]
A Dtest_pin_interrupt.c19 zassert_equal(pins, BIT(TEST_PIN), in callback_edge()
30 zassert_equal(pins, BIT(TEST_PIN), in callback_level()
83 gpio_init_callback(&gpio_cb, callback_edge, BIT(TEST_PIN)); in test_gpio_pin_interrupt_edge()
95 pin_set_and_verify(port, TEST_PIN, 1, i); in test_gpio_pin_interrupt_edge()
103 pin_set_and_verify(port, TEST_PIN, 0, i); in test_gpio_pin_interrupt_edge()
116 pin_set_and_verify(port, TEST_PIN, 1, i); in test_gpio_pin_interrupt_edge()
117 pin_set_and_verify(port, TEST_PIN, 0, i); in test_gpio_pin_interrupt_edge()
179 pin_set_and_verify(port, TEST_PIN, pin_out_val, i); in test_gpio_pin_interrupt_level()
186 pin_set_and_verify(port, TEST_PIN, pin_out_val, i); in test_gpio_pin_interrupt_level()
201 pin_set_and_verify(port, TEST_PIN, 1, i); in test_gpio_pin_interrupt_level()
[all …]
A Dtest_gpio_api.h20 #define TEST_PIN DT_GPIO_PIN(DT_INST(0, test_gpio_external_pulldown), gpios) macro
24 #define TEST_PIN DT_GPIO_PIN(DT_ALIAS(led0), gpios) macro
/tests/drivers/gpio/gpio_nrf/src/
A Dmain.c14 #define TEST_PIN DT_GPIO_PIN(DT_ALIAS(led0), gpios) macro
30 err = gpio_pin_configure(port, TEST_PIN, GPIO_PUSH_PULL | NRF_GPIO_DRIVE_S0H1); in ZTEST()
36 err = gpio_pin_configure(port, TEST_PIN, GPIO_PUSH_PULL | NRF_GPIO_DRIVE_H0S1); in ZTEST()
42 err = gpio_pin_configure(port, TEST_PIN, GPIO_PUSH_PULL | NRF_GPIO_DRIVE_H0H1); in ZTEST()
48 err = gpio_pin_configure(port, TEST_PIN, GPIO_OPEN_DRAIN | NRF_GPIO_DRIVE_H0S1); in ZTEST()
73 response = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_ACTIVE_HIGH); in ZTEST()
76 response = gpio_pin_set(port, TEST_PIN, 0); in ZTEST()
79 response = gpio_pin_set(port, TEST_PIN, 1); in ZTEST()
82 response = gpio_pin_toggle(port, TEST_PIN); in ZTEST()
85 response = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | GPIO_PULL_DOWN); in ZTEST()
[all …]
/tests/drivers/gpio/gpio_get_direction/src/
A Dmain.c12 #define TEST_PIN DT_GPIO_PIN(DT_ALIAS(led0), gpios) macro
25 fixture.pin = TEST_PIN; in gpio_get_direction_setup()

Completed in 22 milliseconds