Skip to content
Snippets Groups Projects
Commit 096823e4 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: pthread_barrier: vtimer -> xtimer

parent 144a912e
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,6 @@ BOARD_INSUFFICIENT_MEMORY := stm32f0discovery ...@@ -11,6 +11,6 @@ BOARD_INSUFFICIENT_MEMORY := stm32f0discovery
# Modules to include. # Modules to include.
USEMODULE += pthread USEMODULE += pthread
USEMODULE += random USEMODULE += random
USEMODULE += vtimer USEMODULE += xtimer
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "pthread.h" #include "pthread.h"
#include "random.h" #include "random.h"
#include "vtimer.h" #include "xtimer.h"
#define NUM_CHILDREN 4 #define NUM_CHILDREN 4
#define NUM_ITERATIONS 5 #define NUM_ITERATIONS 5
...@@ -45,7 +45,7 @@ static void *run(void *id_) ...@@ -45,7 +45,7 @@ static void *run(void *id_)
uint32_t timeout_us = genrand_uint32() % 2500000; uint32_t timeout_us = genrand_uint32() % 2500000;
printf("Child %i sleeps for %8" PRIu32 " µs.\n", id, timeout_us); printf("Child %i sleeps for %8" PRIu32 " µs.\n", id, timeout_us);
vtimer_usleep(timeout_us); xtimer_usleep(timeout_us);
} }
printf("Done %i\n", id); printf("Done %i\n", id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment