summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-29 00:20:27 +0700
committerhathach <[email protected]>2013-03-29 00:20:27 +0700
commite658e67ebefb94ee001dc491ea01c607300490b7 (patch)
treebf657aaead73a8b5f03335044315b8b08653e152 /demos
parentd95c6cf2e016257aaa74e372fca350ce96f6a90b (diff)
fix the damn bug within 10 line of code in keyboard_app.c
Diffstat (limited to 'demos')
-rw-r--r--demos/bsp/boards/board_ea4357.c3
-rw-r--r--demos/host/keyboard_app.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/demos/bsp/boards/board_ea4357.c b/demos/bsp/boards/board_ea4357.c
index 01f5b3c60..fcc59869d 100644
--- a/demos/bsp/boards/board_ea4357.c
+++ b/demos/bsp/boards/board_ea4357.c
@@ -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
diff --git a/demos/host/keyboard_app.c b/demos/host/keyboard_app.c
index 9bab4c07d..5dee23c31 100644
--- a/demos/host/keyboard_app.c
+++ b/demos/host/keyboard_app.c
@@ -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: