X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Ftimer_simple_avr.c;h=95caf428a03915728aa743c219021030f9e81219;hb=2b387e02ffd797dc8c68e072d29e445821189559;hp=877bbad9c387d78fafd6085401cfcbf364791e99;hpb=f4950b55625896f3779348db0e1d4b1075f27981;p=bertos.git diff --git a/bertos/cpu/avr/drv/timer_simple_avr.c b/bertos/cpu/avr/drv/timer_simple_avr.c index 877bbad9..95caf428 100644 --- a/bertos/cpu/avr/drv/timer_simple_avr.c +++ b/bertos/cpu/avr/drv/timer_simple_avr.c @@ -40,19 +40,18 @@ #warning FIXME:This module is obsolete, yuo must refactor it. #if 0 -#include "hw_cpu.h" +#include #include "timer_simple_avr.h" #include #include #include /* BV() */ -#include /* CLOCK_FREQ */ #include #define MS_PER_SEC 1000UL #define TIMER_PRESCALER 64UL -#define TIMER_DELAY_1MS (255 - CLOCK_FREQ / TIMER_PRESCALER / MS_PER_SEC) +#define TIMER_DELAY_1MS (255 - CPU_FREQ / TIMER_PRESCALER / MS_PER_SEC) /** * Wait \a time ms using timer 0.