/** * \file * * * \brief Hardware-specific definitions * * * \author Francesco Sacchi */ #ifndef HW_CPUFREQ_H #define HW_CPUFREQ_H #ifndef CPU_FREQ #warning CPU_FREQ is not defined, you should upgrade to the newer clock frequency defining method. /* * This file is DEPRECATED, it will be removed in the next major release. * We have set up a new cpu frequency definition method. * The new macro CPU_FREQ should be defined as a compiler flag in the * makefile instead of the old CLOCK_FREQ macro. With new projects you should only * use the CPU_FREQ macro. * * With gcc you should add something like this: * * -D'CPU_FREQ=(12288000UL)' * * For backward compatibility the old method is still supported. */ #include "hw/hw_cpu.h" #define CPU_FREQ (CLOCK_FREQ) #endif /* CPU_FREQ */ #endif /* HW_CPUFREQ_H */