summaryrefslogtreecommitdiff
path: root/firmware/drivers/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/led.c')
-rw-r--r--firmware/drivers/led.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c
index 293904f3f8..ad21dc9baf 100644
--- a/firmware/drivers/led.c
+++ b/firmware/drivers/led.c
@@ -20,6 +20,7 @@
20#include <stdbool.h> 20#include <stdbool.h>
21#include "sh7034.h" 21#include "sh7034.h"
22#include "led.h" 22#include "led.h"
23#include "system.h"
23 24
24void led(bool on) 25void led(bool on)
25{ 26{
@@ -30,8 +31,12 @@ void led(bool on)
30 asm("and.b" "\t" "%0,@(r0,gbr)" : : "I"(~0x40), "z"(PBDR_ADDR+1)); 31 asm("and.b" "\t" "%0,@(r0,gbr)" : : "I"(~0x40), "z"(PBDR_ADDR+1));
31#else 32#else
32 if ( on ) 33 if ( on )
33 PBDR |= 0x40; 34 {
35 __set_bit_constant(6, &PBDRL);
36 }
34 else 37 else
35 PBDR &= ~0x40; 38 {
39 __clear_bit_constant(6, &PBDRL);
40 }
36#endif 41#endif
37} 42}