diff --git a/tests/periph_rtt/README.md b/tests/periph_rtt/README.md index 6e093a32cb2d350182237cee9970cafc7926b0ba..ddd3a6c6415b019934263007789a270f4e899656 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 09313c939ad1b67c1537fb6562cb6e0ab17db92f..a0647ff45d4658310374dc991cccb6448fce3269 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");