fix the damn bug within 10 line of code in keyboard_app.c

This commit is contained in:
hathach
2013-03-29 00:20:27 +07:00
parent d95c6cf2e0
commit e658e67ebe
4 changed files with 22 additions and 16 deletions

View File

@@ -57,6 +57,9 @@ void board_init(void)
// USB Host Power Enable
// USB0
// channel B U20 GPIO26 active low (base board), P2_3 on LPC4357
scu_pinmux(0x2, 3, MD_PUP | MD_EZI, FUNC7); // USB0 VBus function
// TODO USB1
#if 0

View File

@@ -86,6 +86,7 @@ void keyboard_app_task(void)
printf("%c", keycode_to_ascii(keyboard_report.keycode[i]));
}
memclr_(&keyboard_report, sizeof(tusb_keyboard_report_t)); // TODO use callback to synchronize
tusbh_hid_keyboard_get_report(dev_addr, 0, (uint8_t*) &keyboard_report);
break;
case TUSB_INTERFACE_STATUS_BUSY: