summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-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 @@
#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 <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