summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-29Merge branch 'master' into enhancehathach
2021-09-29clean uphathach
2021-09-29Merge pull request #1117 from hathach/zhangslice-masterHa Thach
add mm32 bsp (repalce #897)
2021-09-29add mm32 to ci build, also re-enable esp32s3hathach
2021-09-29clean uphathach
2021-09-29Merge branch 'master' of github.com:hathach/tinyusb into zhangslice-masterhathach
examples/device/hid_composite_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
2021-09-29update mm32sdk submodulehathach
2021-09-29add submodule hathach/mm32sdkhathach
2021-09-29remove official mm32sdk submodulehathach
2021-09-27Assure msc device block size is not zeroszymonh
2021-09-27Merge pull request #1110 from hansfbaier/masterHa Thach
add support for the QMTech ATMSAME70N19A board
2021-09-27add support for the QMTech ATMSAME70N19A boardHans Baier
2021-09-26Merge pull request #1108 from hathach/minor-changesHa Thach
make freertos header include in examples more explicit
2021-09-26make freertos header include in examples more explicithathach
2021-09-25add NCM driver in a compatible manner : hathach/tinyusb#550Peter Lawrence
2021-09-25Merge pull request #1102 from ↵Ha Thach
kasjer/kasjer/usbd-small-ep0-enumeration-workaround usbd: Workaround for non standard device descriptor request
2021-09-25Merge pull request #1104 from hathach/fix-esp32-ciHa Thach
add CFG_TUSB_OS_INC_PATH for os include path
2021-09-25add CFG_TUSB_OS_INC_PATH for os include pathhathach
useful for freertos/ prefix with esp IDF
2021-09-24MMU worksScott Shawcroft
2021-09-24Merge pull request #1103 from kasjer/kasjer/da146xx-close-cleanupHa Thach
dcd_da146xx: Remove registers pointer from xfer_ctl_t
2021-09-24Merge pull request #1096 from kasjer/kasjer/da146xx-close-allHa Thach
dcd_da146xx: Implement dcd_edpt_close_all()
2021-09-24usbd: Workaround for non standard device descriptor requestJerzy Kasenberg
Windows and Linux host during enumeration requests device descriptor with request size set to 64 bytes when device was in default state (no address). Those systems do not want 64 bytes though since usb descriptors is only 18 bytes long so they silently expect that only one packet will be received possibly 18 bytes for EPS > 16 or 8 or 16 bytes for smaller EP0. For devices with CFG_TUD_ENDPOINT0_SIZE size 8 or 16 there was workaround that reduced request size to CFG_TUD_ENDPOINT0_SIZE and that was enough to satisfy Windows and Linux hosts. However USBCV testing application also requests device descriptor but with size set to 18 bytes. Workaround for Window/Linux prevented USBVC to tests devices with 8 bytes EP0 size since it send only 8 bytes while application did wanted 18 bytes. Solution that satisfies both cases it to check if in default state device descriptor request wants more bytes than descriptor size (18). If so host is expecting to receive less bytes then requested and workaround would be applied since Linux/Windows only try to read one packet. If 18 bytes was requested as is the case for USBCV, core returns descriptor in 2 or 3 packets as application expects.
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-23Merge pull request #1100 from kasjer/kasjer/da1469b_dk_usb-fix-button-configHa Thach
da14695_dk_usb: Fix button configuration
2021-09-23da14695_dk_usb: Fix button configurationJerzy Kasenberg
Unlike da1469x_dk_pro, K1 pin (6) is connected to VCC when active. This adds required pull down and reverses active logic state.
2021-09-23Merge pull request #1099 from kasjer/kasjer/da1469x_dk_pro-fix-pin-pullupHa Thach
da1469x_dk_pro: Fix button setup
2021-09-23da1469x_dk_pro: Fix button setupJerzy Kasenberg
Button on board has 1k resistor to ground when pressed. When not pressed pin 6 is floating. This forces MCU pull-up for this pin for correct behavior.
2021-09-23Merge pull request #1093 from szymonh/masterHa Thach
Enforced buffer boundaries for hid devices
2021-09-22Trying to setup the mmuScott Shawcroft
2021-09-18Merge pull request #1094 from kasjer/kasjer/da146xx-vbus-handlingHa Thach
dcd_da146xx: Add VBUS handling
2021-09-18update dcd attr for mm32hathach
2021-09-18Merge branch 'master' into zhangslice-masterhathach
2021-09-17rpi start. doesn't workScott Shawcroft
2021-09-17Merge pull request #1086 from kkitayam/impl_close_all_for_khciHa Thach
Implement dcd_edpt_close_all() and fix dcd_edpt_clear_stall() for frdm_kl25z
2021-09-17da1469x_dk_xxx: Add VBUS handlingJerzy Kasenberg
Two BSPs with DA146xx MCUs are now adopted to VBUS handling changed introduced to dcd_da146xx driver. da14695_dk_usb as bus-powered devices informs driver that VBUS is present at startup. da1469x-dk-pro has VBUS change interrupt handler that informs driver about VBUS changes.
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-15Add J1-19 pin setting as a buttonkkitayam
2021-09-15Change default LED state to offkkitayam
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-14Reset EP flags on close.MasterPhi