summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-11 11:22:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-11 11:22:48 +0000
commitf3e11d8f746660fe14bfc9afcddce51f43ade92c (patch)
tree649afd6836ad850288cfc8c175e8f72a4c434348
parent00b26e63fcd6c1141447ae8418fcb7848261303f (diff)
downloadrockbox-f3e11d8f746660fe14bfc9afcddce51f43ade92c.zip
rockbox-f3e11d8f746660fe14bfc9afcddce51f43ade92c.tar.gz
rockbox-f3e11d8f746660fe14bfc9afcddce51f43ade92c.tar.bz2
rockbox-f3e11d8f746660fe14bfc9afcddce51f43ade92c.tar.xz
new system to set which box and which features the box has
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@73 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/CONFIG16
-rw-r--r--firmware/config-player.h3
-rw-r--r--firmware/config-playerold.h3
-rw-r--r--firmware/config-recorder.h5
-rw-r--r--firmware/config.h28
5 files changed, 55 insertions, 0 deletions
diff --git a/firmware/CONFIG b/firmware/CONFIG
new file mode 100644
index 0000000..bb10c8a
--- /dev/null
+++ b/firmware/CONFIG
@@ -0,0 +1,16 @@
+/*
+ * Config template file. Contains and describes all possibile config
+ * items. Don't actually use this file, this is plain documentation.
+ */
+
+/* define this if you have recording possibility */
+#define HAVE_RECORDING 1
+
+/* define this if you have a bitmap LCD display */
+#define HAVE_LCD_BITMAP 1
+
+/* define this if you have a charcell LCD display */
+#define HAVE_LCD_CHARCELLS 1
+
+/* define this if you compile a simulator (no actual HW) */
+#define SIMULATOR 1
diff --git a/firmware/config-player.h b/firmware/config-player.h
new file mode 100644
index 0000000..42c86fc
--- /dev/null
+++ b/firmware/config-player.h
@@ -0,0 +1,3 @@
+/* define this if you have a charcell LCD display */
+#define HAVE_LCD_CHARCELLS 1
+
diff --git a/firmware/config-playerold.h b/firmware/config-playerold.h
new file mode 100644
index 0000000..42c86fc
--- /dev/null
+++ b/firmware/config-playerold.h
@@ -0,0 +1,3 @@
+/* define this if you have a charcell LCD display */
+#define HAVE_LCD_CHARCELLS 1
+
diff --git a/firmware/config-recorder.h b/firmware/config-recorder.h
new file mode 100644
index 0000000..0a1279d
--- /dev/null
+++ b/firmware/config-recorder.h
@@ -0,0 +1,5 @@
+/* define this if you have recording possibility */
+#define HAVE_RECORDING 1
+
+/* define this if you have a bitmap LCD display */
+#define HAVE_LCD_BITMAP 1
diff --git a/firmware/config.h b/firmware/config.h
new file mode 100644
index 0000000..e3e55e2
--- /dev/null
+++ b/firmware/config.h
@@ -0,0 +1,28 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2002 by Daniel Stenberg
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#if defined(ARCHOS_PLAYER)
+#include "config-player.h"
+#elsif definfed(ARCHOS_PLAYER_OLD)
+#include "config-playerold.h"
+#elsif definfed(ARCHOS_RECORDER)
+#include "config-recorder.h"
+#else
+/* no known platform */
+#endif