summaryrefslogtreecommitdiff
path: root/src/portable/microchip
AgeCommit message (Collapse)Author
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
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-01-17pic32mz: Fix remote_wakeup without OSJerzy Kasenberg
Remote wakeup requires 10ms of delay when RESUME bit is toggled. It was covered for OS build. For non-OS build simple delay based on board_millis() is used to wait required amount of time. Without this remote wakup may not work.
2022-01-07Add driver for PIC32MZ MCUsJerzy Kasenberg
Device-only driver for PIC32MZ MCUs.
2021-12-31Add register file for Microchip PIC32MZJerzy Kasenberg
2021-10-24more wMaxPacketSizehathach
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-08-05Minor fix.MasterPhi
2021-07-30Move register define to separate header.MasterPhi
2021-07-30Add cache clean/invalidate.MasterPhi
2021-07-21Fix non-DMA IN irq.MasterPhi
2021-07-21Re-enable SETUP irq on EP0 stall.MasterPhi
2021-07-21Remove redundant TX irq.MasterPhi
2021-07-21Fix EP0 issue (again)MasterPhi
2021-07-20Workaround of EP0 issue, clean up.MasterPhi
2021-07-19Merge branch 'dcd_same70' of https://github.com/HiFiPhile/tinyusb into ↵MasterPhi
dcd_same70
2021-07-19Remove clock init.MasterPhi
2021-07-19clean up warninghathach
2021-07-19Fixing NAKed OUT xferMasterPhi
2021-07-17Fix build error.MasterPhi
2021-07-17Fix ISO support.MasterPhi
2021-07-17Merge branch 'master' into dcd_same70HiFiPhile
2021-06-16Revert "Use byte copy.", add barrier after buffer write.MasterPhi
Signed-off-by: MasterPhi <[email protected]>
2021-06-15Default use dual bank for FS, use dcd irq switch.MasterPhi
2021-06-15Prevent buffer overflow.MasterPhi
Signed-off-by: MasterPhi <[email protected]>
2021-06-15Use byte copy.MasterPhi
2021-06-15Fix resume, always init FS clock.MasterPhi
Signed-off-by: MasterPhi <[email protected]>
2021-06-15add support SAML21sabas1080
2021-06-12Rename SAM7X to SAMX7XMasterPhi
Signed-off-by: MasterPhi <[email protected]>
2021-06-12Fix indent.MasterPhi
Signed-off-by: MasterPhi <[email protected]>
2021-06-12dcd: sam7x: rename family dcd to include the whole familyRafael Silva
Signed-off-by: Rafael Silva <[email protected]>
2021-06-11dcd: same70: trim trailling spacesRafael Silva
Signed-off-by: Rafael Silva <[email protected]>
2021-06-11dcd: same70: fix unused variable warningRafael Silva
Signed-off-by: Rafael Silva <[email protected]>
2021-06-11dcd: same70: change cmsis deprecated macrosRafael Silva
Signed-off-by: Rafael Silva <[email protected]>
2021-06-11Add fifo & DMA linked list mode support.MasterPhi
2021-06-11Format.HiFiPhile
2021-06-11- Add Full Speed switchHiFiPhile
- Add DMA support - Add Dual bank support Signed-off-by: HiFiPhile <[email protected]>
2021-06-11Seems like fixed ep0 issues, code format.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>