refractor change tusbd_hid_keyboard_send_report API

This commit is contained in:
hathach
2013-05-31 21:24:40 +07:00
parent 03d85acfc7
commit 9e49056721
7 changed files with 74 additions and 55 deletions

View File

@@ -100,9 +100,12 @@ void keyboard_device_app_task(void * p_para)
static uint32_t count =0;
if (count < 4)
{
uint8_t keys[6] = {0x04}; // A character
tusbd_hid_keyboard_send_report(0x00, keys, 1);
count++;
tusbd_hid_keyboard_send_report(
&(tusb_keyboard_report_t) {
.keycode = { 0x04 } }
);
}
}
}