diff options
| author | hathach <[email protected]> | 2013-11-20 12:52:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-20 12:52:07 +0700 |
| commit | 850fcf03f09c635015ba5b40b2ed8c303dce27ef (patch) | |
| tree | f76f1ad1f03a6fd72fa9a04fb4cce2973253227b /tinyusb/class | |
| parent | dbfad50d437f51073dfb29b6ddda4889417b6269 (diff) | |
refractor descriptor
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/hid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid.c b/tinyusb/class/hid.c index 97feed998..f1471f093 100644 --- a/tinyusb/class/hid.c +++ b/tinyusb/class/hid.c @@ -224,11 +224,11 @@ tusb_error_t tusb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *c tusb_error_t tusb_hid_configured(USBD_HANDLE_T hUsb) { #ifdef TUSB_CFG_DEVICE_HID_KEYBOARD - ROM_API->hw->WriteEP(hUsb , HID_EDPT_KEYBOARD_ADDR , (uint8_t* ) &hid_keyboard_report , sizeof(hid_keyboard_report_t) ); // initial packet for IN endpoint , will not work if omitted + ROM_API->hw->WriteEP(hUsb , HID_KEYBOARD_EDPT_ADDR , (uint8_t* ) &hid_keyboard_report , sizeof(hid_keyboard_report_t) ); // initial packet for IN endpoint , will not work if omitted #endif #ifdef TUSB_CFG_DEVICE_HID_MOUSE - ROM_API->hw->WriteEP(hUsb , HID_MOUSE_EP_IN , (uint8_t* ) &hid_mouse_report , sizeof(hid_mouse_report_t) ); // initial packet for IN endpoint, will not work if omitted + ROM_API->hw->WriteEP(hUsb , HID_MOUSE_EDPT_ADDR , (uint8_t* ) &hid_mouse_report , sizeof(hid_mouse_report_t) ); // initial packet for IN endpoint, will not work if omitted #endif return TUSB_ERROR_NONE; |
