1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00

tests/periph_rtt: use a 5s delay between each hello

This commit is contained in:
Alexandre Abadie 2019-01-28 22:17:12 +01:00
parent fd2ffd9ef7
commit aee4771a42
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 5 additions and 5 deletions

View File

@ -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
==========

View File

@ -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");