hw_cpufreq.h

Go to the documentation of this file.
00001 
00040 #ifndef HW_CPUFREQ_H
00041 #define HW_CPUFREQ_H
00042 
00043 #ifndef CPU_FREQ
00044     #warning CPU_FREQ is not defined, you should upgrade to the newer clock frequency defining method.
00045 
00046     /*
00047      * This file is DEPRECATED, it will be removed in the next major release.
00048      * We have set up a new cpu frequency definition method.
00049      * The new macro CPU_FREQ should be defined as a compiler flag in the
00050      * makefile instead of the old CLOCK_FREQ macro. With new projects you should only
00051      * use the CPU_FREQ macro.
00052      *
00053      * With gcc you should add something like this:
00054      *
00055      * -D'CPU_FREQ=(12288000UL)'
00056      *
00057      * For backward compatibility the old method is still supported.
00058      */
00059     #include "hw/hw_cpu.h"
00060 
00061     #define CPU_FREQ (CLOCK_FREQ)
00062 #endif /* CPU_FREQ */
00063 
00064 #endif /*  HW_CPUFREQ_H */