mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Merge pull request #878 from jlusticky/avr-clock-fix
avr: fix divide when CLOCK_SECOND is not a power of two
This commit is contained in:
commit
560b0a3b50
@ -72,7 +72,7 @@
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
/* Two tick counters avoid a software divide when CLOCK_SECOND is not a power of two. */
|
||||
#if CLOCK_SECOND && (CLOCK_SECOND - 1)
|
||||
#if CLOCK_SECOND & (CLOCK_SECOND - 1)
|
||||
#define TWO_COUNTERS 1
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user