summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
31{ 31{
32 current = on; 32 current = on;
33 if ( on ^ xor ) 33 if ( on ^ xor )
34#ifdef GMINI_ARCH
35 P2 |= 1;
36 else
37 P2 &= ~1;
38#else
34 { 39 {
35 or_b(0x40, &PBDRL); 40 or_b(0x40, &PBDRL);
36 } 41 }
@@ -38,6 +43,7 @@ void led(bool on)
38 { 43 {
39 and_b(~0x40, &PBDRL); 44 and_b(~0x40, &PBDRL);
40 } 45 }
46#endif
41} 47}
42 48
43void invert_led(bool on) 49void 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 @@
52 52
53#define GMINI_ARCH 53#define GMINI_ARCH
54 54
55#define HAVE_LED
56
55#endif 57#endif