X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=converter%2Fx68k_usb%2Fled.c;h=ccc38699c76bcffdfe31c42cc31c981a679aefc2;hb=c4efadf68a5b1853f253dd9f28afb54c26bff796;hp=40156cf4accf1f604628652dbb22a0561f48c0bd;hpb=62d1ebb91c7b381ce3d88aad9ee0b03bea9fce26;p=max%2Ftmk_keyboard.git
diff --git a/converter/x68k_usb/led.c b/converter/x68k_usb/led.c
index 40156cf4..ccc38699 100644
--- a/converter/x68k_usb/led.c
+++ b/converter/x68k_usb/led.c
@@ -16,11 +16,28 @@ along with this program. If not, see .
*/
#include "stdint.h"
-#include "x68k.h"
+#include "serial.h"
#include "led.h"
+#include "debug.h"
void led_set(uint8_t usb_led)
{
- // not supported now
+ /* X68000 LED bits 0: on, 1: off
+ * bit 7 1(fixed)
+ * bit 6 å
¨è§
+ * bit 5 ã²ãããª
+ * bit 4 INS
+ * bit 3 CAPS
+ * bit 2 ã³ã¼ãå
¥å
+ * bit 1 ãã¼ãå
+ * bit 0 ããª
+ */
+ uint8_t led = 0xFF;
+ if (usb_led&(1<