summaryrefslogtreecommitdiff
path: root/src/portable
AgeCommit message (Collapse)Author
2020-07-28Update dcd_esp32s2.cme-no-dev
2020-07-01ESP32-S2: Handle the fact that available EP IN FIFOs are less than the ↵me-no-dev
number of available EP INs ESP32-S2 has only 5 available endpoint-in FIFOs (including EP0) but 7 available EP IN numbers. This change decouples the fifo number from the endpoint number, providing FIFO numbers until they reach the limit, at which point it will return false and assert an error that too many endpoints were allocated.
2020-06-30Clear ep0_pending if rx short packetJan Dümpelmann
2020-06-30Fix receiving of short packet data (ep out)Jan Dümpelmann
2020-06-30Merge pull request #427 from kasjer/kasjer/add-da1469x-supportHa Thach
Support for DA1469x MCU from Dialog Semiconductor
2020-06-29Merge pull request #399 from duempel/redesign_synopsys_receiveHa Thach
Improvements to Synopsys EP OUT
2020-06-29Add author name to dcd_synopsys.cJan Dümpelmann
2020-06-26Remove EP0 remaining bytes manipulationJan Dümpelmann
Renaming edpt_xact to edpt_schedule_packets
2020-06-25dcd_samd: Provide implementation for OPT_MCU_SAME5XJeff Epler
2020-06-24added OPT_MCU_SAME5X optionhathach
2020-06-18Add transaction (edpt_xact) as sub transferJan Dümpelmann
A transfer can have one or multiple transactions. Usually only EP0 splits one xfer into multiple xact.
2020-06-18Disable SOF in dcd_stm32_fsdevMengsk
Signed-off-by: Mengsk <[email protected]>
2020-06-17Fix IAR warnings.Mengsk
Pa039 : use of address of unaligned structure member. Pe188: enumerated type mixed with another type.
2020-06-09Add DCD for Dialog DA1469x MCUJerzy Kasenberg
Dialog Semiconductor's BLE MCU DA1469x comes with full speed USB. It's base on National Semiconductor discrete USB controller USBN9603/4. This adds support for: - control/interrupt/bulk endpoints (up to 64 bytes) - ISO endpoint were not tested and may not work correctly - reset/sleep/wakeup are handled - code for VBUS changes is provided
2020-05-21fix nrf hanged (blocking wait) when called within critical sectionhathach
2020-05-18fix cast-align warning for nuc505hathach
2020-05-17enable -Wcast-alignhathach
suppress vendor sdk driver at board.mk
2020-05-15Allow EP0 to use xfer sizes larger than one packetJan Dümpelmann
2020-05-15Interrupt time improvementsJan Dümpelmann
2020-05-08Synopsys OUT EP improvements:Jan Dümpelmann
- Use register based XFRSIZ to determine transfer complete (xfer->queued_len and xfer->short_packet were deleted) - Pop out as many RxFIFO data entries as available within a IRQ call - less application interruption due to XFRC calls
2020-05-05detect if SD is actually present on the flash using SD magichathach
even with SOFTDEVICE_PRESENT defined, SD may not be present on actual flash.
2020-05-04Merge pull request #387 from duempel/redesign_transmit_synopsysHa Thach
Redesign of Synopsys device transmission
2020-05-04clean upJan Dümpelmann
renaming function and variables changing indent size
2020-05-02abstract all UDP_CSRhathach
2020-05-02clean uphathach
2020-05-02fix EP0 data toggle issuehathach
2020-05-02remove toggle walkaround, fix control stall race conditionhathach
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-29Changed switch into if statementsJan Dümpelmann
2020-04-29Redesign of Synopsys device transmissionJan Dümpelmann
Changes: - checking if tx buffer empty interrupt is masked - process more than one packet in isr - mask tx buffer empty just after all bytes were written - use of transmit_fifo_packet instead of transmit_packet
2020-04-27added comment for hw clearing TXFEhathach
2020-04-27TXFE is read only bithathach
2020-04-26sync synopsis fix for esp32s2hathach
2020-04-26turn off TX FIFO Empty for EPIN if all bytes are writtenhathach
fix dcd synopsys issue with usbnet #289
2020-04-24synopsys: Reduce interrupt time for IN ZLPJerzy Kasenberg
For IN endpoints output FIFO is filled in interrupt, therefor before endpoint is enabled, DIEPTSIZ is set with correct size of packet. Then endpoint is enabled and FIFO empty interrupt is enabled. This works fine except for the ZLP. Enabling FIFO empty interrupt results in interrupt handler being called all the time because there is nothing to put in the FIFO. Eventually it ends when IN token is received and empty packed is transmitted out. This change does not enable FIFO empty interrupt for ZLP reducing CPU load.
2020-04-22Added support for STM32F1 Connectivity Line MCUJan Dümpelmann
STM32F105 and STM32F107 are using the Synopsys IP
2020-04-18also add wakeup eventhathach
2020-04-18session end interrupt doesn't trigger on esp32 saola boardhathach
it is possibly due to the board design without vbus sense. Revisit later.
2020-04-18implement disconnection detection for stm32 synopsyshathach
- disconnection is OTG INT session end bit - add USE_SOF to disable 1ms interrupt on mcu which isn't used now by the stack - add suspend detection
2020-04-17complete remove dcd_set_config(), fix unit testhathach
2020-04-17Merge branch 'master' into remove-dcd-set-confighathach
2020-04-17Merge pull request #347 from majbthrd/nuc505_configHa Thach
nuc505: change dcd_set_config() behavior
2020-04-17Merge pull request #354 from hathach/cxd56-disconnect-connectHa Thach
Cxd56 disconnect connect
2020-04-17added disconnect for spresensehathach
2020-04-17mass rename tud/dcd_irq_handler to tud/dcd_init_handlerhathach
2020-04-17add code for disconnect/connect (not tested)hathach
2020-04-17Merge pull request #351 from hathach/valentyusb-dcd-disconnect-connectHa Thach
Valentyusb dcd disconnect connect
2020-04-17Merge pull request #350 from hathach/synopsys-msp430-dcd-disconnect-connectHa Thach
Synopsys msp430 dcd disconnect connect
2020-04-16Merge pull request #352 from hathach/samg-dcd-disconnect-connectHa Thach
samg implement dcd connect/disconnect
2020-04-16Merge pull request #336 from pigrew/edpt_closeHa Thach
> If you notice my chain of events above, the bulk transfer was started BEFORE the SET_INTERFACE call. The USB device hardware swaps the order of them being delivered. On STM32, it gives priority to the lower-numbered EP index. It shouldn't be a matter, control is 2+ stage, before sending the setup. Host should stop all communication to the endpoint that It wants to close.