qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 6/6] qtest: microbit-test: add tests for nRF51 DETECT


From: Thomas Huth
Subject: Re: [PATCH v3 6/6] qtest: microbit-test: add tests for nRF51 DETECT
Date: Mon, 31 Jul 2023 07:17:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 28/07/2023 18.05, Chris Laplante wrote:
Exercise the DETECT mechanism of the GPIO peripheral.

Signed-off-by: Chris Laplante <chris@laplante.io>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
---
  tests/qtest/microbit-test.c | 42 +++++++++++++++++++++++++++++++++++++
  1 file changed, 42 insertions(+)

diff --git a/tests/qtest/microbit-test.c b/tests/qtest/microbit-test.c
index 6022a92b6a..8f87810cd5 100644
--- a/tests/qtest/microbit-test.c
+++ b/tests/qtest/microbit-test.c
@@ -393,6 +393,47 @@ static void test_nrf51_gpio(void)
      qtest_quit(qts);
  }
+static void test_nrf51_gpio_detect(void) {
+    QTestState *qts = qtest_init("-M microbit");
+    int i;
+
+    // Connect input buffer on pins 1-7, configure SENSE for high level

QEMU coding style says that // comments should be avoided. See docs/devel/style.rst , section "Comment style". Please use /* ... */ comments instead.

 Thanks,
  Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]