refractor hidh keyboard

changing class hidh behavior
This commit is contained in:
hathach
2013-03-24 21:40:49 +07:00
parent a1b17be681
commit c7c993d6cc
9 changed files with 85 additions and 98 deletions

View File

@@ -54,10 +54,9 @@
//--------------------------------------------------------------------+
void keyboard_app_task(void)
{
for (uint8_t dev_addr = 1; dev_addr <= TUSB_CFG_HOST_DEVICE_MAX; dev_addr++)
{
if ( tusbh_device_is_configured(dev_addr) )
if ( tusbh_hid_keyboard_is_supported(dev_addr) )
{
}