summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/led.c6
-rw-r--r--firmware/export/config-gmini120.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c
index 6abd83eb15..90a1b2cb39 100644
--- a/firmware/drivers/led.c
+++ b/firmware/drivers/led.c
@@ -31,6 +31,11 @@ void led(bool on)
{
current = on;
if ( on ^ xor )
+#ifdef GMINI_ARCH
+ P2 |= 1;
+ else
+ P2 &= ~1;
+#else
{
or_b(0x40, &PBDRL);
}
@@ -38,6 +43,7 @@ void led(bool on)
{
and_b(~0x40, &PBDRL);
}
+#endif
}
void invert_led(bool on)
diff --git a/firmware/export/config-gmini120.h b/firmware/export/config-gmini120.h
index e105d77d21..d0b1b275d3 100644
--- a/firmware/export/config-gmini120.h
+++ b/firmware/export/config-gmini120.h
@@ -52,4 +52,6 @@
#define GMINI_ARCH
+#define HAVE_LED
+
#endif