Browse Source

Disable BOOTMAGIC and fix debug prints of adb_usb

led_matrix
tmk 10 years ago
parent
commit
c531a185a4
2 changed files with 6 additions and 6 deletions
  1. 2
    2
      converter/adb_usb/Makefile
  2. 4
    4
      converter/adb_usb/matrix.c

+ 2
- 2
converter/adb_usb/Makefile View File

F_USB = $(F_CPU) F_USB = $(F_CPU)


# Interrupt driven control endpoint task(+60) # Interrupt driven control endpoint task(+60)
#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT




# Boot Section Size in *bytes* # Boot Section Size in *bytes*
# Build Options # Build Options
# comment out to disable the options. # comment out to disable the options.
# #
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE = yes # Mouse keys(+4700) MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450) EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400) CONSOLE_ENABLE = yes # Console for debug(+400)

+ 4
- 4
converter/adb_usb/matrix.c View File

for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00; for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00;


debug_enable = true; debug_enable = true;
debug_matrix = true;
debug_keyboard = true;
debug_mouse = true;
//debug_matrix = true;
//debug_keyboard = true;
//debug_mouse = true;
print("debug enabled.\n"); print("debug enabled.\n");
return; return;
} }
} else if (codes == 0xFFFF) { // power key release } else if (codes == 0xFFFF) { // power key release
register_key(0xFF); register_key(0xFF);
} else if (key0 == 0xFF) { // error } else if (key0 == 0xFF) { // error
xprintf("adb_host_kbd_recv: ERROR(%02X)\n", codes);
xprintf("adb_host_kbd_recv: ERROR(%d)\n", codes);
return key1; return key1;
} else { } else {
register_key(key0); register_key(key0);