summaryrefslogtreecommitdiff
path: root/src/portable
AgeCommit message (Collapse)Author
2021-10-26more clean uphathach
2021-10-26clean uphathach
2021-10-26use dwc2->epinhathach
2021-10-26update the access epouthathach
2021-10-26use dwc2->fifo[]hathach
2021-10-26complete dwc2 regs structhathach
2021-10-26add epin, epout to dwc2 regshathach
2021-10-26more renamehathach
2021-10-26update dwc2_typehathach
2021-10-25spacinghathach
2021-10-25change usage of TU_CHECK_MCU() to prevent macro conflicthathach
2021-10-25house keepinghathach
2021-10-25moving esp32s2 to dwc2, abstract dwc2_set_turnaround()hathach
2021-10-25update dwc int enable/disablehathach
2021-10-25more clean uphathach
2021-10-25minor renamehathach
2021-10-25switch gd32 and stm32f4 to use new dwc2 driverhathach
2021-10-24adding generalized dwc2 driverhathach
2021-10-24Merge pull request #1160 from cr1901/msp-fixHa Thach
msp430x5xx: Set base of transmit_packet buffer earlier to avoid incre…
2021-10-24more wMaxPacketSizehathach
2021-10-24remove ep descriptor wMaxPacketSize bitfield due to endian issuehathach
2021-10-23msp430x5xx: Set base of transmit_packet buffer earlier to avoid incrementing ↵William D. Jones
past unsent data.
2021-10-23Merge branch 'master' into fix-warningsHa Thach
2021-10-19Merge pull request #1139 from hathach/release-0.12.00.12.0Ha Thach
update changelog and increase version for 0.12.0
2021-10-18enable -Wnull-dereferencehathach
2021-10-17add volatile to EPx_REGS for -Wcast-qualhathach
since gcc does difference between volatile struct and member when casting pointer
2021-10-17more -Wcast-qualhathach
2021-10-17more with -Wcast-qualhathach
2021-10-15fix -Wcast-qualhathach
2021-10-15dcd_da146xx: Drop unexpected dataJerzy Kasenberg
USB3CV tool verifies MSC device by sending too short or too long packets. In case of too long packets (msc_device requested 31 bytes but incoming data had 32 bytes) extra byte(s) were left in FIFO resulting in some data mismatch later on. Now if more data is received in packet that expected extra bytes are just dropped.
2021-10-15dcd_da146xx: Fix EPIN stall notification handlingJerzy Kasenberg
Normal TX handler for IN non-0 endpoints is called during outgoing transfer or just after it was finished. It may need to fill TX fifo with same data if TX_DONE is present but ACK_STAT is not. It may need to fill more data when called during transfer. But it may also be called when STALL was sent. In this case TX_DONE is set ACK_STAT is not, just like for packets that were sent but no ACK was received. Code was trying to send something again. There was nothing to send so empty ZLP was scheduled for stalled endpoint. This ZLP was later send to host where valid response was required. This change checks if notification was for STALL endpoint and does not try to fill TX FIFO in that case.
2021-10-14More warning cleanupgraham sanderson
- physically suppress warnings in TinyUSB headers using pragmas so they don't break -Werror compilation of external files that include them - fix compiler warnings in rp2040 port - add cmake method to rp2040 port to allow an external project to suppress warnings in TinyUSB itself
2021-10-14Remove compiler warninggraham sanderson
2021-10-13Merge pull request #1101 from kasjer/kasjer/da146xx-bus-reset-sleepHa Thach
da146xx bus reset and sleep reworked
2021-09-29Merge branch 'master' of github.com:hathach/tinyusb into zhangslice-masterhathach
examples/device/hid_composite_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
2021-09-24Merge pull request #1103 from kasjer/kasjer/da146xx-close-cleanupHa Thach
dcd_da146xx: Remove registers pointer from xfer_ctl_t
2021-09-24dcd_da146xx: Implement dcd_edpt_close_all()Jerzy Kasenberg
Unconditionally disables all endpoints except EP0.
2021-09-24dcd_da146xx: Clear transfer data on dcd_edpt_closeJerzy Kasenberg
Closing endpoint clears data in affected xfer_ctl_t
2021-09-24dcd_da146xx: Remove registers pointer from xfer_ctl_tJerzy Kasenberg
Note: this commit does not change any logic. xfer_ctl_t structure keeps all dynamic data connected with transfer. It used to have pointer to register set that was constant and was there for convenience only. Removing register pointer from structure makes cleanup easier as whole structure can be erased with memset like function. In many cases functions were using local variable regs and xfer->regs which were same, that could be confusing so this part is unified. Few macros were added for easy conversion between epnum, xfer, and regs.
2021-09-23dcd_da146xx: Update bus handlingJerzy Kasenberg
So far bus reset was handled (with some holes in it). Sleep and remote wakeup were not really tested and did not work. With this change: - bus reset is reworked - remote wakeup works - bus signal sleep is handled
2021-09-23dcd_da146xx: Handle only enabled interruptsJerzy Kasenberg
Not much of an improvement but handle only interrupts that were enabled and are expected.
2021-09-18Merge pull request #1094 from kasjer/kasjer/da146xx-vbus-handlingHa Thach
dcd_da146xx: Add VBUS handling
2021-09-18Merge branch 'master' into zhangslice-masterhathach
2021-09-17dcd_da146xx: Add VBUS handlingJerzy Kasenberg
DA146xx are Bluetooth devices that may be battery powered and when not connected to USB host there is no need for USB peripheral to be running. This change allows to enable USB peripheral when VBUS is present otherwise USB is down reducing power consumption. tud_vsub_changed() function must be called whenever VBUS change was detected. For bus-powered devices this function should be called at startup since VBUS must be present while device is working.
2021-09-17minor clean uphathach
2021-09-17use correct resume detection for kl25zhathach
2021-09-17minor update to dcd khcihathach
2021-09-15Fix stall interrupt handlingkkitayam
2021-09-15merge master and minor clean uphathach
2021-09-15Merge branch 'master' of github.com:hathach/tinyusb into ↵hathach
kkitayam-impl_close_all_for_khci