Skip to content

Commit

Permalink
remove unused HWTIMER_OVERFLOW_MICROS macro
Browse files Browse the repository at this point in the history
for 32 bit timers HWTIMER_MAXTICKS is MAX_INT already, so any further multiplication will overflow
  • Loading branch information
benpicco committed Sep 25, 2014
1 parent 4bc3eef commit f3a1709
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/include/hwtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/**
Expand Down

0 comments on commit f3a1709

Please sign in to comment.