diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-09-10 12:11:28 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-09-10 12:11:28 +0000 |
| commit | 9bb648800b38e6c5b2db27ab1cff1917e34d6e33 (patch) | |
| tree | 810fdd0eb1e74fa94e9968e1bb2fac2005e2849a | |
| parent | cde9844748b657300a5c6cc46a2a559e7e283504 (diff) | |
| download | rockbox-9bb648800b38e6c5b2db27ab1cff1917e34d6e33.zip rockbox-9bb648800b38e6c5b2db27ab1cff1917e34d6e33.tar.gz rockbox-9bb648800b38e6c5b2db27ab1cff1917e34d6e33.tar.bz2 rockbox-9bb648800b38e6c5b2db27ab1cff1917e34d6e33.tar.xz | |
Ondio has no LED (no RLOD possible ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5057 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/led.c | 3 | ||||
| -rw-r--r-- | firmware/export/config-ondiofm.h | 11 | ||||
| -rw-r--r-- | firmware/export/config-ondiosp.h | 11 | ||||
| -rw-r--r-- | 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 f3b0693..c67df9a 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 33ede51..4bd2910 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 3e8116d..c8aaf56 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 cc035b9..492ead1 100644 --- a/firmware/export/led.h +++ b/firmware/export/led.h @@ -22,7 +22,12 @@ #include <stdbool.h> +#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 |