summaryrefslogtreecommitdiff
path: root/src/device
AgeCommit message (Collapse)Author
2020-02-07more log for debugginghathach
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-24Merge branch 'master' into develophathach
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-12-20clean warningshathach
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-28add dcd_edpt0_status_complete() which is useful for several mcu porthathach
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-21moving irq to bsp for lpc17/40hathach
2019-11-21adding tud_isr/tuh_isr with lpc18/43hathach
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-04fix tud_control_status() didn't update requesthathach
2019-11-03added optional dcd_control_status_complete()hathach
2019-11-03add a bit of log1 for debugginghathach
2019-11-03make control buf statichathach
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-11-01Merge branch 'ZLP_Request2' into pigrew-ZLP_Request2hathach
2019-10-31Merge remote-tracking branch 'origin/master' into ZLP_Request2Nathan Conrad
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-31move function around, more renamehathach
2019-10-31renamehathach
2019-10-31clean uphathach
2019-10-31Merge branch 'master' into pigrew-ZLP_Request2hathach
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-30initally adding test_usbd.chathach
2019-10-30move dcd event helper to be dcd.h as inline functionhathach
2019-10-29Merge branch 'ZLP_Request2' of https://github.com/pigrew/tinyusb into ↵hathach
pigrew-ZLP_Request2
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-25Merge branch 'master' into cr1901-msp430f5529hathach
2019-10-24adding more loghathach
2019-10-23adding debug log functionhathach
2019-10-03Remove accidentally-commited debug var.William D. Jones
2019-10-03Merge remote-tracking branch 'pigrew/ZLP_Request2' into msp430f5529William D. Jones
2019-10-03couldn't get 32L4 running with crystal less modehathach
2019-10-02Merge remote-tracking branch 'origin' into msp430f5529William D. Jones