summaryrefslogtreecommitdiff
path: root/src/portable/microchip/samd/dcd_samd.c
AgeCommit message (Collapse)Author
2026-07-09dcd(samd): implement iso alloc/activatehathach
Reserve the bank SIZE bucket once, re-enable per altsetting, and scrub the bank-ready state so a stale armed bank cannot send before the class re-arms. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HeF2gZ1M7GWkz6Av4BpKPg
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.
2025-11-19Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-11-17make TUP_DCD_EDPT_ISO_ALLOC i.e dcd_edpt_iso_alloc()/dcd_edpt_iso_activate() ↵hathach
as default driver implementation. dcd_edpt_close() is deprecated and will be removed from all driver in the future.
2025-10-22Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot <[email protected]>
2025-10-22Add is_isr parameter to dcd_edpt_xfer and dcd_edpt_xfer_fifocopilot-swe-agent[bot]
Co-authored-by: HiFiPhile <[email protected]>
2025-10-15merge samd2x and saml2x bsp, add OPT_MCU_SAML2X to replace OPT_MCU_SAML21 & ↵hathach
OPT_MCU_SAML22
2024-11-27Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order (#2889)Ha Thach
* change TUD_EPBUF_TYPE_DEF order * add and fix -Wmissing-prototypes warnings for cmake (skip make)
2024-10-14change dcd_init() return from void to boolhathach
2024-10-14change the tusb_rhport_init_t struct, exclude the rhport to make API more ↵hathach
consistent
2024-10-11fix fuzzing buildhathach
2024-05-27microchip samd: Add support for dcd_sof_enable().Andrew Leech
2022-10-19Merge pull request #1523 from maddyaby/dcd_edpt_openHa Thach
Allow more endpoint packet sizes for SAMD
2022-06-27samd: Fix a lock-up situation at high traffic.robert-hh
This PR fixes a transmit lock-up, which happens, when data is received and sent at the sime time at moderate to high speeds, like code which just echoes incoming data. In my case, an issue was reported here: https://github.com/micropython/micropython/issues/8521
2022-06-17Allow more endpoint packet sizes for SAMDmaddyaby
Tested on SAMD51 - we can allow more packet sizes by checking that the set size value is greater than the requested packet size instead of exactly the same.
2022-06-16Stub out dcd_edpt_close for samdmaddyaby
Not having this prevents the device from finishing the mounting process. Tested on a SAMD51 and didn't seem to need to actually do anything in the close function.
2022-03-07added dcd_sof_enable() stubs for all other portshathach
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2021-10-24remove ep descriptor wMaxPacketSize bitfield due to endian issuehathach
2021-08-31clear stall and reset data toggle when open edpthathach
required to pass one of msc test.
2021-08-26add dcd_edpt_close_all() for clear existing configured statehathach
correctly responded to TD 9.13 Set Configuration Test
2021-06-15add support SAML21sabas1080
2021-04-09Add support for SAM L22 familyJoey Castillo
2021-01-08use dcd_event_bus_reset() with speed to replace bus_signalhathach
2021-01-08comment clean uphathach
2021-01-08update comment and correct the size to 8+2hathach
2021-01-08walkround for samd21 setup_packet overflowhathach
increase setup packet size from 8 to 12, since USB DMA controller is suspected to overflow the buffer with 2 extra bytes
2020-08-22add OPT_MCU_SAMD11hathach
skip ci build for example that need more ROM/RAM could fit into SAMD11
2020-07-23fix samd21 race condition with setup packethathach
reproduced with Adafruit_TinyUSB_ArduinoCore port commit 11d669b4d2a40eb2fc5e51b2a9707a6de9d42363 and SAMD BSP 1.6.1
2020-06-25dcd_samd: Provide implementation for OPT_MCU_SAME5XJeff Epler
2020-06-24added OPT_MCU_SAME5X optionhathach
2020-04-30fix dcd samd race condition with setup packethathach
setup packet can complete together with previous status (in & out). Always make sure to prepare valid buffer for holding setup packet when queuing control status.
2020-04-17complete remove dcd_set_config(), fix unit testhathach
2020-04-17mass rename tud/dcd_irq_handler to tud/dcd_init_handlerhathach
2020-04-11Merge branch 'master' into refactor-irqhandlerHa Thach
2020-04-09implement dcd connect/disconnect for samd and nrfhathach
2020-04-06mass rename dcd_isr() to dcd_irq_handler()hathach
2020-04-06move irqhandler to applicationhathach
tud_isr() must be called by application to forward the irqhandle to the stack
2019-12-27fix #247hathach
2019-12-26clean uphathach
2019-12-26merge dcd_samd51 & dcd_samd21 into dcd_samdhathach