diff options
| author | hathach <[email protected]> | 2013-11-14 14:12:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-14 14:12:07 +0700 |
| commit | 6e8440afe555cc8c47b8ef1fdce56bb5d37231a8 (patch) | |
| tree | 6fb3e3bf2e3d0e71fe8ed22e17134c7b74591b1a /tinyusb/class | |
| parent | 7d84139bd4e69e0b4cb42fb638a7a6d52afe93de (diff) | |
complete double buffering for queueing xfer for lpc11u/13u requried by msc device
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/hid_device.c | 3 | ||||
| -rw-r--r-- | tinyusb/class/msc_device.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tinyusb/class/hid_device.c b/tinyusb/class/hid_device.c index 53efdb59d..c5e98894e 100644 --- a/tinyusb/class/hid_device.c +++ b/tinyusb/class/hid_device.c @@ -165,7 +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; + return TUSB_ERROR_DCD_CONTROL_REQUEST_NOT_SUPPORT; // TODO test STALL control out endpoint (with mouse+keyboard) + // 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/class/msc_device.c b/tinyusb/class/msc_device.c index cd9e8eb68..b4c1c520d 100644 --- a/tinyusb/class/msc_device.c +++ b/tinyusb/class/msc_device.c @@ -56,7 +56,7 @@ typedef struct { endpoint_handle_t edpt_in, edpt_out;
// must be in USB ram
- ATTR_USB_MIN_ALIGNMENT uint8_t max_lun;
+ ATTR_USB_MIN_ALIGNMENT uint8_t max_lun; // can STALL for one LUN
ATTR_USB_MIN_ALIGNMENT msc_cmd_block_wrapper_t cbw;
ATTR_USB_MIN_ALIGNMENT msc_cmd_status_wrapper_t csw;
@@ -176,6 +176,7 @@ void mscd_isr(endpoint_handle_t edpt_hdl, tusb_event_t event, uint32_t xferred_b }
//------------- Status Phase -------------//
+ // TODO need to be true for dcd_lpc43xx to clean up qtd !!!
ASSERT( dcd_pipe_xfer( p_msc->edpt_in , &p_msc->csw, sizeof(msc_cmd_status_wrapper_t), true) == TUSB_ERROR_NONE, VOID_RETURN );
//------------- Queue the next CBW -------------//
|
