Rename CLOCK_FREQ macro to CPU_FREQ: now clock frequency has to be set in the makefile.
[bertos.git] / bertos / cpu / avr / drv / timer_simple_avr.c
index c9c208c2b679e458629a852824668b9f5630f1cf..95caf428a03915728aa743c219021030f9e81219 100644 (file)
 #warning FIXME:This module is obsolete, yuo must refactor it.
 
 #if 0
-#include "hw/hw_cpu.h"
+#include <hw/hw_cpufreq.h>
 #include "timer_simple_avr.h"
 #include <drv/wdt.h>
 #include <cfg/compiler.h>
 #include <cfg/macros.h> /* BV() */
-#include <hw_cpu.h>  /* CLOCK_FREQ */
 
 #include <avr/io.h>
 
 
 #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.