summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-09-10 12:11:28 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-09-10 12:11:28 +0000
commit9bb648800b38e6c5b2db27ab1cff1917e34d6e33 (patch)
tree810fdd0eb1e74fa94e9968e1bb2fac2005e2849a
parentcde9844748b657300a5c6cc46a2a559e7e283504 (diff)
downloadrockbox-9bb648800b38e6c5b2db27ab1cff1917e34d6e33.tar.gz
rockbox-9bb648800b38e6c5b2db27ab1cff1917e34d6e33.zip
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.c3
-rw-r--r--firmware/export/config-ondiofm.h11
-rw-r--r--firmware/export/config-ondiosp.h11
-rw-r--r--firmware/export/led.h5
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 @@
22#include "led.h" 22#include "led.h"
23#include "system.h" 23#include "system.h"
24 24
25#ifndef HAVE_NO_LED
26
25static bool xor; 27static bool xor;
26static bool current; 28static bool current;
27 29
@@ -51,3 +53,4 @@ void invert_led(bool on)
51 led(current); 53 led(current);
52} 54}
53 55
56#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 @@
10/* Define this if you have a MAS3587F */ 10/* Define this if you have a MAS3587F */
11#define HAVE_MAS3587F 11#define HAVE_MAS3587F
12 12
13/* Define this if you have a FM Recorder key system */
14#define HAVE_FMADC 1 /* don't know yet */
15
16/* Define this if you have a LiIon battery */ 13/* Define this if you have a LiIon battery */
17/* #define HAVE_LIION */ 14/* #define HAVE_LIION */
18 15
@@ -47,10 +44,7 @@
47#define HAVE_FMRADIO 1 44#define HAVE_FMRADIO 1
48 45
49/* How to detect USB */ 46/* How to detect USB */
50#define USB_FMRECORDERSTYLE 1 /* don't know yet */ 47#define USB_FMRECORDERSTYLE 1 /* like FM, on AN1 */
51
52/* Define this if the platform has (chargeable) batteries */
53#define HAVE_BATTERIES 0
54 48
55/* The start address index for ROM builds */ 49/* The start address index for ROM builds */
56#define ROM_START 0x12010 /* don't know yet */ 50#define ROM_START 0x12010 /* don't know yet */
@@ -61,3 +55,6 @@
61/* Define this for different I2C pinout */ 55/* Define this for different I2C pinout */
62#define HAVE_ONDIO_I2C 56#define HAVE_ONDIO_I2C
63 57
58/* Define this for no LED available */
59#define HAVE_NO_LED
60
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 @@
10/* Define this if you have a MAS3587F */ 10/* Define this if you have a MAS3587F */
11#define HAVE_MAS3587F 11#define HAVE_MAS3587F
12 12
13/* Define this if you have a FM Recorder key system */
14#define HAVE_FMADC 1 /* don't know yet */
15
16/* Define this if you have a LiIon battery */ 13/* Define this if you have a LiIon battery */
17/* #define HAVE_LIION */ 14/* #define HAVE_LIION */
18 15
@@ -47,10 +44,7 @@
47#define HAVE_FMRADIO 0 44#define HAVE_FMRADIO 0
48 45
49/* How to detect USB */ 46/* How to detect USB */
50#define USB_FMRECORDERSTYLE 1 /* don't know yet */ 47#define USB_FMRECORDERSTYLE 1 /* like FM, on AN1 */
51
52/* Define this if the platform has (chargeable) batteries */
53#define HAVE_BATTERIES 0
54 48
55/* The start address index for ROM builds */ 49/* The start address index for ROM builds */
56#define ROM_START 0x12010 /* don't know yet */ 50#define ROM_START 0x12010 /* don't know yet */
@@ -61,3 +55,6 @@
61/* Define this for different I2C pinout */ 55/* Define this for different I2C pinout */
62#define HAVE_ONDIO_I2C 56#define HAVE_ONDIO_I2C
63 57
58/* Define this for no LED available */
59#define HAVE_NO_LED
60
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 @@
22 22
23#include <stdbool.h> 23#include <stdbool.h>
24 24
25#ifdef HAVE_NO_LED /* dummies if no LED available */
26#define led(on)
27#define invert_led(on)
28#else /* normal hardware */
25extern void led( bool on ); 29extern void led( bool on );
26extern void invert_led( bool on ); 30extern void invert_led( bool on );
31#endif
27 32
28#endif 33#endif