|
|
|
|
|
|
|
|
#include "util.h" |
|
|
#include "util.h" |
|
|
#include "debug.h" |
|
|
#include "debug.h" |
|
|
#include "ps2.h" |
|
|
#include "ps2.h" |
|
|
|
|
|
#include "host.h" |
|
|
|
|
|
#include "led.h" |
|
|
#include "matrix.h" |
|
|
#include "matrix.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("Overrun\n"); |
|
|
print("Overrun\n"); |
|
|
state = INIT; |
|
|
state = INIT; |
|
|
break; |
|
|
break; |
|
|
|
|
|
case 0xAA: // Self-test passed |
|
|
|
|
|
case 0xFC: // Self-test failed |
|
|
|
|
|
printf("BAT %s\n", (code == 0xAA) ? "OK" : "NG"); |
|
|
|
|
|
led_set(host_keyboard_leds()); |
|
|
|
|
|
state = INIT; |
|
|
|
|
|
break; |
|
|
default: // normal key make |
|
|
default: // normal key make |
|
|
if (code < 0x80) { |
|
|
if (code < 0x80) { |
|
|
matrix_make(code); |
|
|
matrix_make(code); |