diff options
| author | tmk <nobody@nowhere> | 2013-06-21 21:48:18 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-06-22 02:33:08 +0900 |
| commit | f45f4193f221d3ede706e02fc6b67916f90adf36 (patch) | |
| tree | ae0eebc099b4867637a1880a2149b62e5d045ecb /converter/x68k_usb/led.c | |
| parent | 42c962412b92a0ab4bd26c95f25867c645064bd6 (diff) | |
| download | qmk_firmware-f45f4193f221d3ede706e02fc6b67916f90adf36.tar.gz qmk_firmware-f45f4193f221d3ede706e02fc6b67916f90adf36.zip | |
Use serial_uart.c instead of x68k.c now
Diffstat (limited to 'converter/x68k_usb/led.c')
| -rw-r--r-- | converter/x68k_usb/led.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/converter/x68k_usb/led.c b/converter/x68k_usb/led.c index a1c1d546e..ccc38699c 100644 --- a/converter/x68k_usb/led.c +++ b/converter/x68k_usb/led.c | |||
| @@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 19 | #include "serial.h" | 19 | #include "serial.h" |
| 20 | #include "led.h" | 20 | #include "led.h" |
| 21 | #include "debug.h" | 21 | #include "debug.h" |
| 22 | #include "x68k.h" | ||
| 23 | 22 | ||
| 24 | 23 | ||
| 25 | void led_set(uint8_t usb_led) | 24 | void led_set(uint8_t usb_led) |
| @@ -35,12 +34,10 @@ void led_set(uint8_t usb_led) | |||
| 35 | * bit 0 かな | 34 | * bit 0 かな |
| 36 | */ | 35 | */ |
| 37 | uint8_t led = 0xFF; | 36 | uint8_t led = 0xFF; |
| 38 | xprintf("usb_led: %02X\n", usb_led); | ||
| 39 | if (usb_led&(1<<USB_LED_NUM_LOCK)) led &= ~(1<<2); | 37 | if (usb_led&(1<<USB_LED_NUM_LOCK)) led &= ~(1<<2); |
| 40 | if (usb_led&(1<<USB_LED_CAPS_LOCK)) led &= ~(1<<3); | 38 | if (usb_led&(1<<USB_LED_CAPS_LOCK)) led &= ~(1<<3); |
| 41 | if (usb_led&(1<<USB_LED_SCROLL_LOCK)) led &= ~(1<<1); | 39 | if (usb_led&(1<<USB_LED_SCROLL_LOCK)) led &= ~(1<<1); |
| 42 | if (usb_led&(1<<USB_LED_COMPOSE)) led &= ~(1<<4); | 40 | if (usb_led&(1<<USB_LED_COMPOSE)) led &= ~(1<<4); |
| 43 | if (usb_led&(1<<USB_LED_KANA)) led &= ~(1<<0); | 41 | if (usb_led&(1<<USB_LED_KANA)) led &= ~(1<<0); |
| 44 | xprintf("led: %02X\n", led); | 42 | serial_send(led); |
| 45 | x68k_send(led); | ||
| 46 | } | 43 | } |
