summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-11-22 00:30:24 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-11-22 00:30:24 +0000
commit336cb6898ef55ea6480a0b5547d30bb5029c79ef (patch)
tree14c3248892d5e3e4fe378e31415011fef6fe2215
parente7b025ba10b25bc50ad5a307bb2ec2480242a975 (diff)
downloadrockbox-336cb6898ef55ea6480a0b5547d30bb5029c79ef.zip
rockbox-336cb6898ef55ea6480a0b5547d30bb5029c79ef.tar.gz
rockbox-336cb6898ef55ea6480a0b5547d30bb5029c79ef.tar.bz2
rockbox-336cb6898ef55ea6480a0b5547d30bb5029c79ef.tar.xz
Add several dummy functions to allow Sansa to build correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11568 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/SOURCES5
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/backlight-e200.c25
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/backlight-target.h26
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/power-e200.c26
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/usb-e200.c36
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/usb-target.h26
6 files changed, 141 insertions, 3 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 73d68fe..167bea2 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -308,10 +308,13 @@ target/sh/archos/lcd-as-archos-bitmap.S
#ifdef SANSA_E200
#ifndef SIMULATOR
-target/arm/wmcodec-pp.c
target/arm/sandisk/sansa-e200/ata-e200.c
target/arm/sandisk/sansa-e200/lcd-e200.c
target/arm/sandisk/sansa-e200/adc-e200.c
+target/arm/sandisk/sansa-e200/backlight-e200.c
+target/arm/sandisk/sansa-e200/usb-e200.c
+target/arm/sandisk/sansa-e200/button-e200.c
+target/arm/sandisk/sansa-e200/power-e200.c
#endif /* SIMULATOR */
#endif /* SANSA_E200 */
diff --git a/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c b/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c
new file mode 100644
index 0000000..4929423
--- /dev/null
+++ b/firmware/target/arm/sandisk/sansa-e200/backlight-e200.c
@@ -0,0 +1,25 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2006 by Barry Wardell
+ *
+ * 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.
+ *
+ ****************************************************************************/
+void __backlight_on(void)
+{
+}
+
+void __backlight_off(void)
+{
+}
diff --git a/firmware/target/arm/sandisk/sansa-e200/backlight-target.h b/firmware/target/arm/sandisk/sansa-e200/backlight-target.h
index 67a01ed..d35dccd 100644
--- a/firmware/target/arm/sandisk/sansa-e200/backlight-target.h
+++ b/firmware/target/arm/sandisk/sansa-e200/backlight-target.h
@@ -1 +1,25 @@
-/* nothing here yet */
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2006 by Barry Wardell
+ *
+ * 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.
+ *
+ ****************************************************************************/
+#ifndef BACKLIGHT_TARGET_H
+#define BACKLIGHT_TARGET_H
+
+void __backlight_on(void);
+void __backlight_off(void);
+
+#endif
diff --git a/firmware/target/arm/sandisk/sansa-e200/power-e200.c b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
new file mode 100644
index 0000000..f1ce7e2
--- /dev/null
+++ b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
@@ -0,0 +1,26 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2006 by Daniel Ankers
+ *
+ * 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.
+ *
+ ****************************************************************************/
+
+void power_init(void)
+{
+}
+
+void power_off(void)
+{
+}
diff --git a/firmware/target/arm/sandisk/sansa-e200/usb-e200.c b/firmware/target/arm/sandisk/sansa-e200/usb-e200.c
new file mode 100644
index 0000000..a538614
--- /dev/null
+++ b/firmware/target/arm/sandisk/sansa-e200/usb-e200.c
@@ -0,0 +1,36 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2006 by Barry Wardelll
+ *
+ * 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.
+ *
+ ****************************************************************************/
+
+#include <stdbool.h>
+
+bool usb_init_device(void)
+{
+ return true;
+}
+
+bool usb_detect(void)
+{
+ return false;
+}
+
+void usb_enable(bool on)
+{
+ (void)on;
+}
+
diff --git a/firmware/target/arm/sandisk/sansa-e200/usb-target.h b/firmware/target/arm/sandisk/sansa-e200/usb-target.h
index 67a01ed..3f309ff 100644
--- a/firmware/target/arm/sandisk/sansa-e200/usb-target.h
+++ b/firmware/target/arm/sandisk/sansa-e200/usb-target.h
@@ -1 +1,25 @@
-/* nothing here yet */
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2006 by Barry Wardelll
+ *
+ * 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.
+ *
+ ****************************************************************************/
+#ifndef USB_TARGET_H
+#define USB_TARGET_H
+
+bool usb_init_device(void);
+
+#endif
+