Lines Matching +full:close +full:- +full:pull
10 * Copyright 2018 Steffen Görtz <contrib@steffen-goertz.de>
13 * the COPYING file in the top-level directory.
40 if (now - start > 600) { in uart_wait_for_event()
78 QTestState *qts = qtest_init_with_serial("-M microbit", &sock_fd); in test_nrf51_uart()
110 close(sock_fd); in test_nrf51_uart()
139 QTestState *qts = qtest_init("-M microbit"); in test_microbit_i2c()
190 QTestState *qts = qtest_init("-M microbit"); in test_nrf51_nvmc()
196 /* Test write-read config register */ in test_nrf51_nvmc()
281 QTestState *qts = qtest_init("-M microbit"); in test_nrf51_gpio()
335 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 0); in test_nrf51_gpio()
338 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 1); in test_nrf51_gpio()
341 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, -1); in test_nrf51_gpio()
346 /* Check pull-up working */ in test_nrf51_gpio()
347 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 0); in test_nrf51_gpio()
356 /* Check pull-down working */ in test_nrf51_gpio()
357 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 1); in test_nrf51_gpio()
365 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, -1); in test_nrf51_gpio()
375 /* Check self-stimulation */ in test_nrf51_gpio()
386 * Check short-circuit - generates an guest_error which must be checked in test_nrf51_gpio()
391 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 0); in test_nrf51_gpio()
398 QTestState *qts = qtest_init("-M microbit"); in test_nrf51_gpio_detect()
401 /* Connect input buffer on pins 1-7, configure SENSE for high level */ in test_nrf51_gpio_detect()
411 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", i, 1); in test_nrf51_gpio_detect()
419 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", i, 0); in test_nrf51_gpio_detect()
426 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 1); in test_nrf51_gpio_detect()
428 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 0, 0); in test_nrf51_gpio_detect()
432 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", i, 1); in test_nrf51_gpio_detect()
435 qtest_set_irq_in(qts, "/machine/nrf51", "unnamed-gpio-in", 3, 0); in test_nrf51_gpio_detect()
482 QTestState *qts = qtest_init("-M microbit"); in test_nrf51_timer()
518 while (steps_to_overflow--) { in test_nrf51_timer()
534 /* Test Proposal: Shortcut Compare -> Clear */ in test_nrf51_timer()
535 /* Test Proposal: Shortcut Compare -> Stop */ in test_nrf51_timer()