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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user