Scott Shawcroft
c870efffc0
Fix write protected MSC. The bits were flipped.
2019-02-20 15:12:36 -08:00
hathach
59c1b4b427
zero init internal class/device data
2019-01-29 19:39:34 +07:00
hathach
2a60427bdc
rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistency
2018-12-14 15:30:54 +07:00
hathach
a3713f801d
clean up compiler attribute
2018-12-14 13:08:21 +07:00
hathach
c1c501e0c2
change usbd xfer_cb return type to bool
2018-12-12 13:12:06 +07:00
hathach
b6cb4757d2
change class driver open return type to bool
2018-12-12 13:00:59 +07:00
hathach
6c0b0917e1
rename descriptor_* helper to tu_desc_*
2018-12-12 12:01:15 +07:00
hathach
6d86db3977
rename edpt_dir/number/addr to tu_edpt_*
2018-12-12 11:51:31 +07:00
hathach
67d6d753d6
replace all hcd pipe close by hcd_device_remove
2018-12-12 00:00:33 +07:00
hathach
dbc560658a
more hcd_pipe to hcd_edpt rename
2018-12-11 13:15:05 +07:00
hathach
0d04e6eb96
rename to hcd_edpt_open()
2018-12-11 13:12:21 +07:00
hathach
7c2056defb
remove pipe handle in host msc
2018-12-11 01:03:15 +07:00
hathach
e863c99a6f
fix msc host
2018-12-10 23:15:53 +07:00
hathach
212deaf2f8
usbh name change
2018-12-10 22:19:01 +07:00
hathach
9c3c782b64
host msc built but got hardfault with inquiry command
2018-12-10 22:11:02 +07:00
hathach
dffe9b335e
clean up host pipe api
2018-12-10 20:26:47 +07:00
hathach
607658d047
rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED
2018-12-07 23:38:52 +07:00
hathach
366ab79776
able to build host hid
2018-12-07 14:57:58 +07:00
hathach
89820a36a1
able to build with host msc
2018-12-07 12:56:42 +07:00
hathach
7d3ff7aff6
rename CFG_TUSB_HOST_CDC/MSC to CFG_TUH_CDC/MSC
2018-12-06 22:24:31 +07:00
hathach
d96347a0f5
rename OPT_MCU_LPC13UXX to OPT_MCU_LPC13XX
2018-11-30 12:48:06 +07:00
hathach
8b03b6d3b4
add Auto descriptor endpoint num config to support lpc17xx
...
CFG_TUD_DESC_*_EPNUM
2018-11-28 16:10:31 +07:00
hathach
80ecf1fd54
add OPT_MODE_HIGH_SPEED
2018-11-26 14:56:07 +07:00
hathach
064eec5dd8
clean up warnings
2018-11-26 12:29:55 +07:00
hathach
394a22ecf7
remove pragma GCC diagnostic
2018-11-23 15:25:25 +07:00
hathach
f196b24dce
rename DCD_XFER_SUCCESS to XFER_RESULT_SUCCESS
2018-11-23 15:22:46 +07:00
hathach
a619ff88a3
rename xfer complete enum
2018-11-23 15:17:43 +07:00
hathach
cb8782e5f2
rename tusb_event_t to xfer_result_t
2018-11-23 15:14:47 +07:00
hathach
60d8cde695
rename CFG_TUSB_MEM_SECTION to CFG_TUSB_MEM_SECTION
2018-11-22 17:21:07 +07:00
hathach
4314be9aeb
msc device block count and block num
...
- replace CFG_TUD_MSC_BLOCK_NUM & CFG_TUD_MSC_BLOCK_SZ by
tud_msc_capacity_cb() (mandatory callback)
2018-11-22 12:11:06 +07:00
hathach
215f8603b1
nrf5x: refactor device control transfer.
...
- make control transfer as part of usbd. Class driver must use
usbd_control_ API() instead of dcd_ api.
- change the signature of class driver's control_request
- allow control request complete to stall in staus stage
- move control request parser & handling to usbd.
2018-11-16 21:56:39 +07:00
Scott Shawcroft
537a29273c
Exempt from strict warnings for struct packing and add MCU options
2018-11-09 00:10:44 -08:00
Scott Shawcroft
30e3c64134
Polish up control split and treat it more like a normal endpoint.
2018-11-08 13:45:30 -08:00
Scott Shawcroft
7a40ec2647
Split out the control endpoint logic
2018-11-07 23:04:34 -08:00
Scott Shawcroft
c582c0fda9
Add SAMD21 and SAMD51 support for CircuitPython.
...
The ProtoThreads style subtasks were removed because it led to
extremely unclear control flow. RTOSes can be used if threading is
needed.
Also added some additional functionality to MSC to support dynamic
LUNs and read-only LUNs.
2018-11-07 12:02:28 -08:00
hathach
bfa10016ae
rename verify_breakpoint to TU_BREAKPOINT
2018-10-24 12:37:43 +07:00
hathach
55427606ef
replace dcd_xfer_complete by dcd_xfer_complete()
2018-10-24 00:44:26 +07:00
hathach
f339ac7a6a
clean up msc device
2018-10-23 12:48:49 +07:00
hathach
c7340f4b0e
clean up helper func
2018-10-23 12:19:32 +07:00
hathach
c5d2f661e7
rename common func to avoid conflict
2018-08-23 20:09:28 +07:00
hathach
e07b1acbed
rename VERIFY to TU_VERIFY to avoid conflict with application
2018-08-13 18:10:23 +07:00
hathach
cf6c534c19
add usb msc callback description
2018-07-27 17:20:15 +07:00
hathach
72b600c393
update device msc callback
2018-07-26 22:41:46 +07:00
hathach
e362f5fd64
rename some scsi command struct, add SCSI_CMD_MODE_SENSE_6 to built-in support command
2018-07-26 16:57:30 +07:00
hathach
f5b2912372
add tud_msc_set_sense(), update msc device to reponse with default sense (illegal request) when there is issue with scsi command
2018-07-26 15:59:13 +07:00
hathach
8694285ad2
add SCSI_CMD_REQUEST_SENSE into device msc built-in command
2018-07-25 23:56:06 +07:00
hathach
226a4f8816
clean up device msc
2018-07-25 22:51:43 +07:00
hathach
93db46292a
update msc example
2018-07-25 22:35:02 +07:00
hathach
8fc1d151fc
correct msc stall behavior
2018-07-25 22:24:58 +07:00
hathach
be7b0caf2d
enhance device msc response in case of STALL response
2018-07-25 22:21:14 +07:00