diff --git a/tests/xtimer_shift_on_compare/Makefile b/tests/xtimer_shift_on_compare/Makefile deleted file mode 100644 index f26e324b6e..0000000000 --- a/tests/xtimer_shift_on_compare/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -APPLICATION = xtimer_shift_on_compare -include ../Makefile.tests_common - -BOARD_WHITELIST += msb-430h arduino-mega2560 waspmote-pro - -BOARD ?= native -RIOTBASE ?= $(CURDIR)/../.. - -USEMODULE += xtimer - -include $(RIOTBASE)/Makefile.include diff --git a/tests/xtimer_shift_on_compare/main.c b/tests/xtimer_shift_on_compare/main.c deleted file mode 100644 index ea2d567bcd..0000000000 --- a/tests/xtimer_shift_on_compare/main.c +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2015 Kaspar Schleiser - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @ingroup tests - * @{ - * - * @file - * @brief timer test application - * - * @author Kaspar Schleiser - * - * @} - */ - -#include -#include "xtimer.h" -#include "periph_conf.h" - -#define ITERATIONS 128 -#define MAXSHIFT 8 - -static unsigned min[MAXSHIFT]; -static unsigned max[MAXSHIFT]; -static unsigned avg[MAXSHIFT]; -static unsigned total[MAXSHIFT]; - -int main(void) -{ - puts("xtimer_shift_on_compare test application.\n"); - - printf("trying %u iterations\n", ITERATIONS); - - uint32_t a, b; - unsigned i = 0; - - for (int shift = 0; shift < MAXSHIFT; shift++) { - min[shift] = (unsigned)0xffffffff; - max[shift] = 0; - total[shift] = 0; - avg[shift] = 0; - - for (int j=0; j < ITERATIONS; j++) { - i = 0; - do { - i++; - if (i >= 0xF) { - break; - } - else { - } - - a = _lltimer_now() | _high_cnt; - b = _lltimer_now() | _high_cnt; - } while ((a>>shift) != (b>>shift)); - - min[shift] = i < min[shift] ? i : min[shift]; - max[shift] = i > max[shift] ? i : max[shift]; - if (i != 0xF) { - total[shift]++; - avg[shift] += i; - } - } - } - - for (int i=0; i < MAXSHIFT; i++) { - if (min[i] >= 0xF) { - printf("shift %i is too little.\n", i); - } else { - printf("shift %i min=%u max=%u n_success=%u avg=%u\n", i, min[i], max[i], total[i], avg[i]/total[i]); - } - } - - printf("\nTest complete.\n"); - return 0; -}