able to fully enumerated with keyboard

This commit is contained in:
hathach
2013-10-29 14:19:56 +07:00
parent 357813f171
commit db986b3107
7 changed files with 164 additions and 99 deletions

View File

@@ -82,23 +82,20 @@ void led_blinking_task(void * p_para)
}
#if TUSB_CFG_DEVICE_HID_KEYBOARD
hid_keyboard_report_t keyboard_report TUSB_CFG_ATTR_USBRAM;
void keyboard_device_app_task(void * p_para)
{
#if 0
if (tusbd_is_configured())
{
static uint32_t count =0;
if (count < 4)
{
count++;
tusbd_hid_keyboard_send_report(
&(hid_keyboard_report_t) {
.keycode = { 0x04 } }
);
}
}
#endif
// if (tusbd_is_configured(0))
// {
// static uint32_t count =0;
// if (count < 10)
// {
// count++;
//
// keyboard_report.keycode[0] = 0x04;
// tusbd_hid_keyboard_send(0, &keyboard_report );
// }
// }
}
#endif