refractor tusb_descriptors

usbd device_class_driver
added & tested HID mouse for device (work together with hid keyboard)
rename DEVICE_ROM_REG_BASE, DEVICE_ROM_DRIVER_ADDR
This commit is contained in:
hathach
2013-06-03 14:31:17 +07:00
parent 7d78fc1baf
commit b527e6ec4a
17 changed files with 130 additions and 90 deletions

View File

@@ -42,12 +42,17 @@ int main(void)
#if TUSB_CFG_DEVICE_HID_MOUSE
if (usb_isConfigured())
{
tusb_hid_mouse_send(0, 10, 10);
static uint32_t count =0;
if (count < 8)
{
count++;
tusb_hid_mouse_send(0, 20, 20);
}
}
#endif
}
#if defined TUSB_CFG_DEVICE_CDC && 0
#if TUSB_CFG_DEVICE_CDC && 0
if (usb_isConfigured())
{
uint8_t cdc_char;