summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-21 19:15:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-21 19:15:12 +0000
commit1774d4d885bd6abab5096b1ea4f57e06caed501f (patch)
treedf281974ee79785514178c81acd15985ccffcc39 /firmware
parentd853887a57405d380d6040196ff89cddcbf6eff3 (diff)
define the CPU frequency in the config-*.h file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3142 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/config-fmrecorder.h3
-rw-r--r--firmware/config-player.h3
-rw-r--r--firmware/config-recorder.h3
-rw-r--r--firmware/system.h6
4 files changed, 10 insertions, 5 deletions
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