summaryrefslogtreecommitdiff
path: root/src/class/dfu
AgeCommit message (Collapse)Author
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-03-11refactor(usbd): replace `_usbd_ctrl_epbuf` with `usbd_get_ctrl_buf()` for ↵hathach
cleaner abstraction and consistency across modules
2026-03-11Merge branch 'master' into ep0_directhathach
# Conflicts: # hw/bsp/same7x/boards/same70_qmtech/board.cmake # hw/bsp/same7x/boards/same70_xplained/board.cmake # hw/bsp/same7x/family.cmake
2026-03-05add IAR warning flags to cmake build and fix themhathach
2025-12-14reduce code sizeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-14dfu: use ep0 buffer if it is large enoughHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-19rename CFG_TUD_ENDPOINT0_BUFSIZE to make it more consistenthathach
use uint8_t for dfu state and status to reduce size
2025-11-19clean uphathach
2025-10-29Merge branch 'master' into dwc2_ep0hathach
# Conflicts: # examples/device/dfu/src/usb_descriptors.c # examples/device/dfu_runtime/src/usb_descriptors.c # src/portable/synopsys/dwc2/dcd_dwc2.c
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-11dfu: remove transfer buffer out of USB section, since data will copy to/from ↵HiFiPhile
use EP0 buffer. Signed-off-by: HiFiPhile <[email protected]>
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2024-11-22apply TUD_EPBUF_DEF for device: bth, dfu, hid, mschathach
2024-11-21- move freertos_hooks to board.chathach
- add device/midi_test_freertos example - update bth/dfu/midi device for cache line size
2024-04-08add class driver deinithathach
2023-08-02default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to ↵hathach
selectively disable usbd/usbh or driver log
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-02-27Merge pull request #1852 from silvergasp/mem_sHa Thach
fix: Replace device calls to memcpy with tu_memcpy_s
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-08-09dfu: Allow DFU coexistence with other interfacesJerzy Kasenberg
dfu_moded_open() only works correct when its called on DFU interface descriptor. It means that DFU is the only one interface in configuration or driver is called after all others interface drivers were tried and gave up. If other interface is supported and but driver for DFU is called first (this is the case for BTH and RNDIS). Code after while loop (that was not entered) has an TU_ASSERT that will make set_configuration to fail. Now TU_VERIFY is called first to make sure open code is called for DFU only and not other interface descriptors like in other drivers.
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2021-10-15fix -Wcast-qualhathach
2021-07-27Fix IAR warningMasterPhi
2021-07-22rename CFG_TUD_DFU_TRANSFER_BUFSIZE to CFG_TUD_DFU_XFER_BUFSIZEhathach
2021-07-15rename CFG_TUD_DFU_MODE to simply CFG_TUD_DFUhathach
2021-07-15wrap up DFU updatehathach
2021-07-14update clear status and get statehathach
2021-07-14update dfu aborthathach
2021-07-14simplify upload requesthathach
2021-07-14more rename and updatehathach
2021-07-14rename tud_dfu_reboot_cb() to tud_dfu_detach_cb()hathach
2021-07-14clean uphathach
2021-07-14rename dfu APIhathach
- tud_dfu_dnload_complete() -> tud_dfu_download_complete() - tud_dfu_req_dnload_data_cb() -> tud_dfu_download_cb() - tud_dfu_req_upload_data_cb() -> tud_dfu_upload_cb()
2021-07-12rename tud_dfu_set_timeout_cb() to tud_dfu_get_status_cb()hathach
also add state as argument
2021-07-12clean uphathach
2021-07-12clean uphathach
2021-07-12rename TUD_DFU_MODE_DESCRIPTOR to TUD_DFU_DESCRIPTORhathach
2021-07-12add alt to tud_dfu_abort_cb()hathach
2021-07-12update dfu_moded_openhathach
2021-07-08Fix wrong blocknum and lengthMengsk
2021-07-08Add bwPollTimeout set callback, postpone download callback after GETSTATUSMengsk
2021-07-07Refactor with one DFU functionnal descriptorHiFiPhile
2021-07-07Reactor to one functional descriptor.Mengsk
2021-07-07TU_ASSERT return 0.Mengsk
2021-07-07Add DFU_DETACH supportMengsk
2021-07-07Update commentMengsk
2021-07-07Better alt settings supportMengsk