Use serial_uart.c instead of x68k.c now
This commit is contained in:
@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "serial.h"
|
||||
#include "led.h"
|
||||
#include "debug.h"
|
||||
#include "x68k.h"
|
||||
|
||||
|
||||
void led_set(uint8_t usb_led)
|
||||
@ -35,12 +34,10 @@ void led_set(uint8_t usb_led)
|
||||
* bit 0 かな
|
||||
*/
|
||||
uint8_t led = 0xFF;
|
||||
xprintf("usb_led: %02X\n", usb_led);
|
||||
if (usb_led&(1<<USB_LED_NUM_LOCK)) led &= ~(1<<2);
|
||||
if (usb_led&(1<<USB_LED_CAPS_LOCK)) led &= ~(1<<3);
|
||||
if (usb_led&(1<<USB_LED_SCROLL_LOCK)) led &= ~(1<<1);
|
||||
if (usb_led&(1<<USB_LED_COMPOSE)) led &= ~(1<<4);
|
||||
if (usb_led&(1<<USB_LED_KANA)) led &= ~(1<<0);
|
||||
xprintf("led: %02X\n", led);
|
||||
x68k_send(led);
|
||||
serial_send(led);
|
||||
}
|
||||
|
Reference in New Issue
Block a user