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