From 1774d4d885bd6abab5096b1ea4f57e06caed501f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 21 Jan 2003 19:15:12 +0000 Subject: define the CPU frequency in the config-*.h file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3142 a1c6a512-1295-4272-9138-f99709370657 --- firmware/config-fmrecorder.h | 3 +++ firmware/config-player.h | 3 +++ firmware/config-recorder.h | 3 +++ firmware/system.h | 6 +----- 4 files changed, 10 insertions(+), 5 deletions(-) (limited to 'firmware') diff --git a/firmware/config-fmrecorder.h b/firmware/config-fmrecorder.h index ed3454ff7e..3fdb27dfb9 100644 --- a/firmware/config-fmrecorder.h +++ b/firmware/config-fmrecorder.h @@ -21,3 +21,6 @@ /* Define this if you have a FM Recorder key system */ #define HAVE_FMADC 1 + +/* Define this to the CPU frequency */ +#define CPU_FREQ 11059200 diff --git a/firmware/config-player.h b/firmware/config-player.h index 2068c94db4..f07a41aacc 100644 --- a/firmware/config-player.h +++ b/firmware/config-player.h @@ -9,3 +9,6 @@ /* Define this if you have a DAC3550A */ #define HAVE_DAC3550A + +/* Define this to the CPU frequency */ +#define CPU_FREQ 12000000 /* cycle time ~83.3ns */ diff --git a/firmware/config-recorder.h b/firmware/config-recorder.h index 566758156c..2a38cff7d2 100644 --- a/firmware/config-recorder.h +++ b/firmware/config-recorder.h @@ -18,3 +18,6 @@ /* Define this if you have ATA power-off control */ #define HAVE_ATA_POWER_OFF + +/* Define this to the CPU frequency */ +#define CPU_FREQ 11059200 diff --git a/firmware/system.h b/firmware/system.h index 28c33d6c19..d5f1b4ba97 100644 --- a/firmware/system.h +++ b/firmware/system.h @@ -23,11 +23,7 @@ #include "sh7034.h" #include "config.h" -#ifdef ARCHOS_RECORDER -# define FREQ 11059200 -#else -# define FREQ 12000000 /* cycle time ~83.3ns */ -#endif +#define FREQ CPU_FREQ #define BAUDRATE 9600 #ifndef NULL -- cgit v1.2.3