summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-07-02 02:21:06 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-07-02 02:21:06 +0000
commit88f75d096eb153101f47c3fc75d4ad9cbdbd3de4 (patch)
tree1093708fb5936b0e0b01c8e8628503588d0b8fe8 /firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
parent82ecc75e68ee3edc22514c8a33aa7774e02fd4d4 (diff)
imx233/fuze+: don't compile {touchpad code,sd} in bootloader mode, fix style in mmc
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30112 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
index b6de9f73d8..f6efe6d6a8 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
@@ -27,6 +27,7 @@
#include "lcd.h"
#include "string.h"
+#ifndef BOOTLOADER
static void i2c_scl_dir(bool out)
{
imx233_enable_gpio_output(0, 30, out);
@@ -251,6 +252,14 @@ void button_init_device(void)
RMI_2D_GESTURE_FLICK_TIME_700MS << RMI_2D_GESTURE_FLICK_TIME_BP);
}
+#else
+
+void button_init_device(void)
+{
+}
+
+#endif
+
int button_read_device(void)
{
int res = 0;