diff options
| author | hathach <[email protected]> | 2013-11-11 14:02:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-11 14:02:55 +0700 |
| commit | d8f32a79fc9e04136afcd8f4d79abe7a9b0c2eb9 (patch) | |
| tree | b9d7548e4b6bf6d09e4472270a78d6a73602c233 /tinyusb | |
| parent | 9a81cbcd59cb64bce4c24cbffed2b02eaea5d2b2 (diff) | |
technically, mouse + keyboard device demo also work on lpc13uxx
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/class/hid_device.c | 2 | ||||
| -rw-r--r-- | tinyusb/device/dcd_lpc13uxx.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/class/hid_device.c b/tinyusb/class/hid_device.c index c88f8ceae..ec77ccc74 100644 --- a/tinyusb/class/hid_device.c +++ b/tinyusb/class/hid_device.c @@ -165,6 +165,8 @@ tusb_error_t hidd_control_request(uint8_t coreid, tusb_control_request_t const * case HID_REQUEST_CONTROL_SET_REPORT: { + return TUSB_ERROR_DCD_CONTROL_REQUEST_NOT_SUPPORT; + // TODO HIDD set report support hid_request_report_type_t report_type = u16_high_u8(p_request->wValue); uint8_t report_id = u16_low_u8(p_request->wValue); diff --git a/tinyusb/device/dcd_lpc13uxx.c b/tinyusb/device/dcd_lpc13uxx.c index c0ec8567f..25739d31f 100644 --- a/tinyusb/device/dcd_lpc13uxx.c +++ b/tinyusb/device/dcd_lpc13uxx.c @@ -182,7 +182,7 @@ static void bus_reset(void) {
memclr_(&dcd_data, sizeof(dcd_lpc13xx_data_t));
for(uint8_t ep_id = 2; ep_id < DCD_LPC13XX_QHD; ep_id++)
- {
+ { // disable all non-control endpoints on bus reset
dcd_data.qhd[ep_id][0].disable = dcd_data.qhd[ep_id][1].disable = 1;
}
|
