[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/6] Add nRF51 DETECT signal with test
From: |
Chris Laplante |
Subject: |
[PATCH 0/6] Add nRF51 DETECT signal with test |
Date: |
Fri, 14 Jul 2023 23:27:06 +0000 |
This patch series implements the nRF51 DETECT signal
in the GPIO peripheral. A qtest is added exercising the signal.
To implement the test, named out-GPIO IRQ interception had to be added
to the qtest framework. I also took the opportunity to improve IRQ
interception a bit by adding 'FAIL' responses when interception fails.
Otherwise, it is frustrating to troubleshoot why calls to
qtest_irq_intercept_out and friends appears to do nothing.
Chris Laplante (6):
hw/gpio/nrf51: implement DETECT signal
qtest: implement named interception of out-GPIO
qtest: bail from irq_intercept_in if name is specified
qtest: factor out qtest_install_gpio_out_intercepts
qtest: irq_intercept_[out/in]: return FAIL if no intercepts are
installed
qtest: microbit-test: add tests for nRF51 DETECT
hw/arm/nrf51_soc.c | 1 +
hw/gpio/nrf51_gpio.c | 14 ++++++++-
include/hw/gpio/nrf51_gpio.h | 1 +
softmmu/qtest.c | 56 ++++++++++++++++++++++++++----------
tests/qtest/libqtest.c | 6 ++++
tests/qtest/libqtest.h | 11 +++++++
tests/qtest/microbit-test.c | 42 +++++++++++++++++++++++++++
7 files changed, 115 insertions(+), 16 deletions(-)
--
2.39.2
- [PATCH 0/6] Add nRF51 DETECT signal with test,
Chris Laplante <=
- [PATCH 1/6] hw/gpio/nrf51: implement DETECT signal, Chris Laplante, 2023/07/14
- [PATCH 2/6] qtest: implement named interception of out-GPIO, Chris Laplante, 2023/07/14
- [PATCH 3/6] qtest: bail from irq_intercept_in if name is specified, Chris Laplante, 2023/07/14
- [PATCH 4/6] qtest: factor out qtest_install_gpio_out_intercepts, Chris Laplante, 2023/07/14
- [PATCH 5/6] qtest: irq_intercept_[out/in]: return FAIL if no intercepts are installed, Chris Laplante, 2023/07/14