summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
AgeCommit message (Collapse)Author
2020-04-13edpt_close: Remove item from queue instead of modifying it.Nathan Conrad
2020-04-13edpt_close: Updated based on feedback.Nathan Conrad
2020-04-13lpc17xx move set configdevice into set addresshathach
for removing dcd_set_config()
2020-04-12Skeleton, and initial stm32fsdev implementation (that leaks memory)Nathan Conrad
2020-04-12usbnet: OS-agnostic (Windows/Linux/macOS) network driverPeter Lawrence
2020-04-11Merge pull request #332 from pigrew/stm32fsdev-dcdconnectHa Thach
stm32fsdev: Implement dcd_connect.
2020-04-10fix uint32_t format with loghathach
2020-04-09stm32fsdev: Implement dcd_connect.Nathan Conrad
2020-04-06house keepinghathach
2020-03-22Merge branch 'master' into cr1901-msp430f5529hathach
2020-03-08fix log printfhathach
2020-03-02add CDC-ECM/RNDIS/CDC-EEM network device class with examplePeter Lawrence
2020-02-26Add langid support to descriptor string callback.Chang Feng
Signed-off-by: Chang Feng <[email protected]>
2020-01-15Normalize line endingsNathan Conrad
2020-01-05Merge pull request #254 from majbthrd/multi-setconfigHa Thach
gracefully handle multiple SET_CONFIGURATION requests
2019-12-30Let device respond to endpoint requests on EP0 (#251)Jeremy Herbert
Since endpoint 0 is used for control requests, it doesn't have a class driver attached to it. As such, the corresponding `_usbd_dev.ep2drv` entry points to driver `0xFF`, which is invalid and this makes the `TU_ASSERT(drvid < USBD_CLASS_DRIVER_COUNT);` line fail, and eventually causes an endpoint stall. So as-is the stack cannot respond to any endpoint requests on endpoint 0. However, standard requests on endpoint 0 do not need a class driver to produce a valid response. This commit changes the order of execution so that the assert is only checked if the endpoint is not 0.
2019-12-28gracefully handle multiple SET_CONFIGURATION requestsPeter Lawrence
2019-12-23adding lookup table for debugginghathach
add msc scsi command list
2019-12-21able to response to scsi inquiry, but failed to response to test unit readyhathach
2019-11-28use dcd_edpt0_status_complete() to set address without blocking for ↵hathach
samd21/samd51/stm32_fsdev
2019-11-28get passed set addresshathach
2019-11-27get passed first get device descriptorhathach
2019-11-27extract code to invoke_class_control()hathach
- also rename usbd_class_drivers to _usbd_driver
2019-11-05Merge branch 'master' into cr1901-msp430f5529hathach
2019-11-05Merge pull request #149 from pigrew/ZLP_Request2hathach
Zlp request2
2019-11-04Change one more TU_ASSERT to TU_VERIFY in usbd.Nathan Conrad
2019-11-04fix #211hathach
2019-11-04usbd: Change TU_ASSERT to TU_VERIFY as the assertion can be hit when bad ↵Nathan Conrad
data is sent from host.
2019-11-03add a bit of log1 for debugginghathach
2019-11-03hack the request length for the first get device descriptor if EP0 size =8 or 16hathach
to prevent usbd control send out ZLP
2019-11-02Merge branch 'pigrew-ZLP_Request2' into cr1901-msp430f5529hathach
2019-10-31zlp should work with control in, tested with Unity frameworkhathach
2019-10-31add more tests, fix an issue with tud_descriptor_configuration_cb() return NULLhathach
2019-10-31Merge pull request #206 from hathach/develophathach
Added a couple of unit testing with Ceedling/Cmock/Unity
2019-10-30rename usbd_init() to tud_init()hathach
2019-10-30move dcd event helper to be dcd.h as inline functionhathach
2019-10-29should fix #184hathach
only response up to EP0 size with get device descriptor if not addressed.
2019-10-28Merge pull request #202 from smunaut/dfu-rthathach
Add support for DFU Runtime class for devices
2019-10-28Add support for DFU Runtime class for devicesSylvain Munaut
This is really just a few descriptors and then answering to the request from the host to reboot into DFU mode. That latter part is delegated to the app since this is platform specific. Signed-off-by: Sylvain Munaut <[email protected]>
2019-10-24adding more loghathach
2019-10-23adding debug log functionhathach
2019-10-012nd attempt to fix #161hathach
2019-10-01fix #161 added volatile for ep_busy_map/ep_stall_maphathach
2019-09-21Merge branch 'clear_feature_ordering' into usbtmcNathan Conrad
2019-09-21Changing the bitwise to a logical OR created a huge hard to find bug. It ↵Nathan Conrad
shortcutted the call to the class function, so, lets use shortcutting anyway?
2019-09-21logical or.Nathan Conrad
2019-09-21Correct wording of comment on handling EP requests.Nathan Conrad
2019-09-21When unstalling, EP must be marked as not busy. Also, mark EP as busy when ↵Nathan Conrad
stalling as xfer requests should fail.
2019-09-21Make type casting explicitNathan Conrad
2019-09-21Calling EP open with bad parameters should be considered a bug.Nathan Conrad