summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
AgeCommit message (Collapse)Author
2023-07-24rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stackhathach
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-20improve logging, allow easier to turn off usbd, driver logginghathach
can be useful when focusing on let's say usbh
2023-05-16correct EHCI reporting failed xfer (instead of stalled) when device is unpluggedhathach
2023-02-27Merge pull request #1852 from silvergasp/mem_sHa Thach
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27minor clean uphathach
2023-02-22use tu_static instead of static _fuzz_threadhathach
2023-02-22rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_threadhathach
2023-01-20fix: Change all static variables to thread when fuzzingNathaniel Brough
2023-01-13fix: Replace device calls to memcpy with tu_memcpy_sNathaniel Brough
Introduces a new function tu_memcpy_s, which is effectively a backport of memcpy_s. The change also refactors calls to memcpy over to the more secure tu_memcpy_s.
2022-06-24fix redundant-decls warnings by usbd/usbhhathach
2022-06-24add more warning option, also fix -Wconversion with rp2040hathach
-Wuninitialized, -Wunused, -Wredundant-decls
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2021-07-01better support for hid device set/get protocolhathach
add caplock detection for hid_composite
2021-03-26Add DFU Class per Version 1.1 SpecJeremiah McCarthy
2021-02-11remove the requirement of std SET/CLEAR_FEATURE must not return zlp statushathach
2020-12-20Fix error if "Required Prototype" is selected.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2020-11-19migrate cdc_device to new control_xfer_cbhathach
2020-11-19merge class driver control_request & control_complete to control_xfer_cb()hathach
migrated msc_device
2020-05-07device: fix build warning when CFG_TUSB_DEBUG >= 2Sean Cross
The function is defined inside of a function body which generates a warning. Circuit Python treats these warnings as errors, and so refuses to build with debugging enabled: ../../lib/tinyusb/src/device/usbd_control.c: In function 'usbd_control_xfer_cb': ../../lib/tinyusb/src/device/usbd_control.c:195:19: error: nested extern declaration of 'usbd_driver_print_control_complete_name' [-Werror=nested-externs] 195 | extern void usbd_driver_print_control_complete_name(bool (*control_complete) (uint8_t, tusb_control_request_t const *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [../../py/mkrules.mk:55: build-simmel/lib/tinyusb/src/device/usbd_control.o] Error 1 Move the declaration to the top of the function to silence this warning. Signed-off-by: Sean Cross <[email protected]>
2020-04-28fix typohathach
2020-04-26clean up log messagehathach
2020-04-26add usbd edpt openhathach
- RTT mode is blocking to prevent log lost - Improve logging message
2020-03-27USBD: Use tud_control_xfer only for dataNathan Conrad
2020-03-22Merge branch 'master' into cr1901-msp430f5529hathach
2020-03-14Use CRLF on UART.Nathan Conrad
2020-03-08fix zlp for nrf52840hathach
2020-02-07more log for debugginghathach
2019-11-28use dcd_edpt0_status_complete() to set address without blocking for ↵hathach
samd21/samd51/stm32_fsdev
2019-11-28add dcd_edpt0_status_complete() which is useful for several mcu porthathach
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-04fix tud_control_status() didn't update requesthathach
2019-11-03added optional dcd_control_status_complete()hathach
2019-11-03make control buf statichathach
2019-11-02Merge branch 'pigrew-ZLP_Request2' into cr1901-msp430f5529hathach
2019-11-01Merge branch 'ZLP_Request2' into pigrew-ZLP_Request2hathach
2019-10-31zlp should work with control in, tested with Unity frameworkhathach
2019-10-31move function around, more renamehathach
2019-10-31renamehathach
2019-10-31clean uphathach
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-02Merge remote-tracking branch 'origin' into msp430f5529William D. Jones
2019-10-02usbd_control.c: Decide whether a control transfer has a data stageWilliam D. Jones
based on setup packet wLength.
2019-09-29Github's web interface changed line endings without asking me. Oops.Nathan Conrad
2019-09-29Merge branch 'master' into ZLP_Request2Nathan Conrad
2019-09-27Fix typo of CFG_TUD_ENDOINT0_SIZE.Nathan Conrad
2019-09-27Fix typo of CFG_TUD_ENDOINT0_SIZE.Nathan Conrad
2019-09-27Merge branch 'master' into ZLP_Request2Nathan Conrad
2019-09-21USB Control: Pointer arithmetic on void* is forbidenNathan Conrad