From aee4771a429e30f194b8b031686990be5b95fd56 Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Mon, 28 Jan 2019 22:17:12 +0100
Subject: [PATCH] tests/periph_rtt: use a 5s delay between each hello

---
 tests/periph_rtt/README.md | 2 +-
 tests/periph_rtt/main.c    | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/periph_rtt/README.md b/tests/periph_rtt/README.md
index 6e093a32cb..ddd3a6c641 100644
--- a/tests/periph_rtt/README.md
+++ b/tests/periph_rtt/README.md
@@ -1,6 +1,6 @@
 Expected result
 ===============
-When everything works as expected, you should see a hello message popping up every 10 seconds.
+When everything works as expected, you should see a hello message popping up every 5 seconds.
 
 Background
 ==========
diff --git a/tests/periph_rtt/main.c b/tests/periph_rtt/main.c
index 09313c939a..a0647ff45d 100644
--- a/tests/periph_rtt/main.c
+++ b/tests/periph_rtt/main.c
@@ -14,7 +14,7 @@
  * @brief       Test for low-level Real Time Timer drivers
  *
  * This test will initialize the real-time timer and trigger an alarm printing
- * 'Hello' every 10 seconds
+ * 'Hello' every 5 seconds
  *
  * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
  *
@@ -29,7 +29,7 @@
 #include "periph_conf.h"
 #include "periph/rtt.h"
 
-#define TICKS_TO_WAIT       (10 * RTT_FREQUENCY)
+#define TICKS_TO_WAIT       (5 * RTT_FREQUENCY)
 
 static volatile uint32_t last;
 
@@ -47,7 +47,7 @@ void cb(void *arg)
 int main(void)
 {
     puts("\nRIOT RTT low-level driver test");
-    puts("This test will display 'Hello' every 10 seconds\n");
+    puts("This test will display 'Hello' every 5 seconds\n");
 
     puts("Initializing the RTT driver");
     rtt_init();
@@ -56,7 +56,7 @@ int main(void)
     printf("RTT now: %" PRIu32 "\n", now);
 
     last = (now + TICKS_TO_WAIT) & RTT_MAX_VALUE;
-    printf("Setting initial alarm to now + 10 s (%" PRIu32 ")\n", last);
+    printf("Setting initial alarm to now + 5 s (%" PRIu32 ")\n", last);
     rtt_set_alarm(last, cb, 0);
 
     puts("Done setting up the RTT, wait for many Hellos");
-- 
GitLab