diff options
Diffstat (limited to 'firmware')
-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 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 | |||
25 | static bool xor; | 27 | static bool xor; |
26 | static bool current; | 28 | static 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 */ | ||
25 | extern void led( bool on ); | 29 | extern void led( bool on ); |
26 | extern void invert_led( bool on ); | 30 | extern void invert_led( bool on ); |
31 | #endif | ||
27 | 32 | ||
28 | #endif | 33 | #endif |