From 9bb648800b38e6c5b2db27ab1cff1917e34d6e33 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Fri, 10 Sep 2004 12:11:28 +0000 Subject: Ondio has no LED (no RLOD possible ;-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5057 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/led.c | 3 +++ firmware/export/config-ondiofm.h | 11 ++++------- firmware/export/config-ondiosp.h | 11 ++++------- firmware/export/led.h | 5 +++++ 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c index f3b0693c6d..c67df9a83f 100644 --- a/firmware/drivers/led.c +++ b/firmware/drivers/led.c @@ -22,6 +22,8 @@ #include "led.h" #include "system.h" +#ifndef HAVE_NO_LED + static bool xor; static bool current; @@ -51,3 +53,4 @@ void invert_led(bool on) led(current); } +#endif // #ifndef HAVE_NO_LED diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h index 33ede51aea..4bd291099f 100644 --- a/firmware/export/config-ondiofm.h +++ b/firmware/export/config-ondiofm.h @@ -10,9 +10,6 @@ /* Define this if you have a MAS3587F */ #define HAVE_MAS3587F -/* Define this if you have a FM Recorder key system */ -#define HAVE_FMADC 1 /* don't know yet */ - /* Define this if you have a LiIon battery */ /* #define HAVE_LIION */ @@ -47,10 +44,7 @@ #define HAVE_FMRADIO 1 /* How to detect USB */ -#define USB_FMRECORDERSTYLE 1 /* don't know yet */ - -/* Define this if the platform has (chargeable) batteries */ -#define HAVE_BATTERIES 0 +#define USB_FMRECORDERSTYLE 1 /* like FM, on AN1 */ /* The start address index for ROM builds */ #define ROM_START 0x12010 /* don't know yet */ @@ -61,3 +55,6 @@ /* Define this for different I2C pinout */ #define HAVE_ONDIO_I2C +/* Define this for no LED available */ +#define HAVE_NO_LED + diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h index 3e8116df9a..c8aaf56459 100644 --- a/firmware/export/config-ondiosp.h +++ b/firmware/export/config-ondiosp.h @@ -10,9 +10,6 @@ /* Define this if you have a MAS3587F */ #define HAVE_MAS3587F -/* Define this if you have a FM Recorder key system */ -#define HAVE_FMADC 1 /* don't know yet */ - /* Define this if you have a LiIon battery */ /* #define HAVE_LIION */ @@ -47,10 +44,7 @@ #define HAVE_FMRADIO 0 /* How to detect USB */ -#define USB_FMRECORDERSTYLE 1 /* don't know yet */ - -/* Define this if the platform has (chargeable) batteries */ -#define HAVE_BATTERIES 0 +#define USB_FMRECORDERSTYLE 1 /* like FM, on AN1 */ /* The start address index for ROM builds */ #define ROM_START 0x12010 /* don't know yet */ @@ -61,3 +55,6 @@ /* Define this for different I2C pinout */ #define HAVE_ONDIO_I2C +/* Define this for no LED available */ +#define HAVE_NO_LED + diff --git a/firmware/export/led.h b/firmware/export/led.h index cc035b9345..492ead11b2 100644 --- a/firmware/export/led.h +++ b/firmware/export/led.h @@ -22,7 +22,12 @@ #include +#ifdef HAVE_NO_LED /* dummies if no LED available */ +#define led(on) +#define invert_led(on) +#else /* normal hardware */ extern void led( bool on ); extern void invert_led( bool on ); +#endif #endif -- cgit v1.2.3