1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

test/xtimer_usleep_until: fix and blacklist

- s/N/NUMOF/
- blacklisted chronos for insufficient RAM
This commit is contained in:
Hauke Petersen 2015-09-02 17:07:36 +02:00
parent 6df83c55db
commit 151dbf95b8
2 changed files with 6 additions and 4 deletions

View File

@ -4,6 +4,8 @@ include ../Makefile.tests_common
BOARD ?= native
RIOTBASE ?= $(CURDIR)/../..
BOARD_INSUFFICIENT_MEMORY := chronos
FEATURES_REQUIRED += periph_timer
USEMODULE += xtimer

View File

@ -22,9 +22,9 @@
#include "xtimer.h"
#include "periph_conf.h"
#define N 1000
#define NUMOF 1000
uint32_t res[N];
uint32_t res[NUMOF];
int main(void)
{
@ -32,7 +32,7 @@ int main(void)
uint32_t interval = 1000;
for (int i = 0; i < N; i++) {
for (int i = 0; i < NUMOF; i++) {
printf("Testing interval %u...\n", (unsigned)interval);
uint32_t last_wakeup = xtimer_now();
uint32_t before = last_wakeup;
@ -42,7 +42,7 @@ int main(void)
interval -= 1;
}
for (int i = 0; i < N; i++) {
for (int i = 0; i < NUMOF; i++) {
printf("%4d diff=%i\n", i, (int)res[i]);
}