From f3a17092d110f0a60d4f6c12eff9385d73e7bbe5 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 25 Sep 2014 11:50:16 +0200 Subject: [PATCH] remove unused HWTIMER_OVERFLOW_MICROS macro for 32 bit timers HWTIMER_MAXTICKS is MAX_INT already, so any further multiplication will overflow --- core/include/hwtimer.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/include/hwtimer.h b/core/include/hwtimer.h index 0bc615a7bc2a9..b8cb8731deb0e 100644 --- a/core/include/hwtimer.h +++ b/core/include/hwtimer.h @@ -70,11 +70,6 @@ #warning "HWTIMER_MAXTICKS undefined. Set HWTIMER_MAXTICKS to maximum number of ticks countable on the current architecture." #endif -/** - * @brief microseconds before hwtimer overflow - */ -#define HWTIMER_OVERFLOW_MICROS() (1000000L / HWTIMER_SPEED * HWTIMER_MAXTICKS) - typedef uint32_t timer_tick_t; /**< data type for hwtimer ticks */ /**