summaryrefslogtreecommitdiff
path: root/src/portable/microchip
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.
2026-04-17fix some Wconversion warningshathach
2026-03-07remove dma_desc_thathach
2026-03-06Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot <[email protected]>
2026-03-06cleanupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27dcd/samx7x: reformat codeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27dcd/samx7x: remove buggy DMA FIFO transferHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27dcd/samx7x: synchronize DMA and cache optionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-31re-branding fixed address fifo read/write to stride modehathach
2025-11-27more renamehathach
2025-11-26change tu_fifo_buffer_info_t layouthathach
2025-11-20refactor tu_fifo, add tu_fifo_write/read/peek_n_access()hathach
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
2025-09-17Replace old delay functions by tusb_time_delay_ms_apiHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-07-09add board_vbus_set() for samd21/d51 to enable usb host vbushathach
enable host example build for samd21/d51
2025-07-09Merge branch 'refs/heads/master' into fork/ChrisDeadman/hcd-samd-supporthathach
2024-12-27dcd_pic: check USBBUSY bit on PIC32sReimu NotMoe
2024-12-27dcd_pic: let the user manage shared GPIO/VBUS pinReimu NotMoe
2024-12-27dcd_pic: handle EP0 timeout/stall correctlyReimu NotMoe
2024-12-27dcd_pic: implement dcd_deinit()Reimu NotMoe
2024-12-27dcd_pic: handle remote wakeup more correctlyReimu NotMoe
2024-12-27dcd_pic: handle bus resume correctlyReimu NotMoe
2024-12-27dcd_pic: change license header and credit people accordinglyReimu NotMoe
2024-12-27dcd_pic: add readmeReimu NotMoe
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-20add support for native SAMD HCDDeadman
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-10-11change dcd_init() to take rhport structhathach
2024-08-19remove weak from dcd_edpt_close() for port without TUP_DCD_EDPT_ISO_ALLOChathach
2024-05-27microchip samd: Add support for dcd_sof_enable().Andrew Leech
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-03-17fix trailing space and new linehathach
temporarily disable codespell
2022-12-04Fix typosBastien Nocera
2022-10-19Merge pull request #1523 from maddyaby/dcd_edpt_openHa Thach
Allow more endpoint packet sizes for SAMD
2022-10-06Microchip PIC24/dsPIC33 device mode supportReimuNotMoe
2022-09-03Initial PIC32MM/MX & PIC24 supportReimuNotMoe
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-05-31Merge pull request #1381 from hathach/add-sof-isrHa Thach
Add SOF IRQ Handler
2022-05-01dcd_pic32: Fix memory overwrite in incoming dataJerzy Kasenberg
When transfer was finished rx_fifo_read() read all that was to read RXPKTRDY was cleared allowing next packet to be received. Then xfer_complete was called. Interrupt for OUT endpoint was left enable, that would not be a problem if data was handled fast and new transfer was scheduled. For MSC when host sends a lot of data this interrupt that was enabled could cause epn_handle_rx_int() to be called after transfer was completed and next was not scheduled yet. Without TU_ASSERT that was added to detect this, incoming data was written past buffer provided by user code resulting in random memory corruption. This just blocks RX interrupt when transfer is finished, and also only unmasked rx interrupts are handled.
2022-05-01dcd_pic32: Add asserts transfer sanity checkJerzy Kasenberg
TU_ASSERTS added to detect transfer inconsistency.
2022-03-07added dcd_sof_enable() stubs for all other portshathach