summaryrefslogtreecommitdiff
path: root/src/portable
AgeCommit message (Collapse)Author
2021-10-25update dcd_esp32sx with correct include listsuda-morris
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
2021-09-15Merge pull request #1062 from HiFiPhile/fifo_dcd_transdimensionHa Thach
Improvements for dcd_transdimension
2021-09-14Merge pull request #1087 from HiFiPhile/nuc_wkpHa Thach
NUC126: fix remote_wakeup
2021-09-13esp32sx implement dcd_remote_wakeup(), fully compliance to chapter9 test suitehathach
2021-09-13implement dcd_edpt_close_all(), pass chapter9 test suite (without remote wakeup)hathach
2021-09-13clean uphathach
2021-09-13clear PID along with clear stallhathach
2021-09-13Merge branch 'nuc_wkp' of https://github.com/HiFiPhile/tinyusb into ↵hathach
HiFiPhile-nuc_wkp
2021-09-13refactor nxp TDI dcd_edpt_xfer_fifohathach
2021-09-12Merge branch 'fifo_dcd_transdimension' of https://github.com/HiFiPhile/tinyusbhathach
2021-09-11nxp tdi: implement dcd edpt close allhathach
2021-09-11nxp tdi: fix error td prevent further transferhathach
2021-09-10reset PID to DATA0 on clear_stall.MasterPhi
2021-09-10Fix remote_wakeupMasterPhi
2021-09-10Shorter expr.MasterPhi
2021-09-10Fix dcd_edpt_clear_stall to reset data togglekkitayam
2021-09-09dcd_edpt_xfer_fifo: use qtd_init if restriction not met.Mengsk
2021-09-09nxp tdi: enhance qhd using DCD_ATTR_ENDPOINT_MAXhathach