Commit Graph

1181 Commits

Author SHA1 Message Date
graham sanderson 8d3f0ffb95 * don't force dependency on pico-pio-usb submodule
* suppress compiler warning/errors especially in pico-pio-usb
* disable use of pico-pio-usb on gcc 11.3+ for now as it doesn't compile
2023-02-06 10:07:39 -06:00
Ha Thach 49628d8c18
Merge pull request #1779 from P33M/rp2040_device_babble_fix
rp2040: avoid device-mode state machine hang
2023-01-31 21:38:27 +07:00
Ha Thach b03a688b24
Merge pull request #1768 from ftdigdm/port-ft90x
Port ft90x
2023-01-30 22:13:14 +07:00
hathach 25603c7269 iar L4 2023-01-30 20:11:59 +07:00
hathach 63a6fd3689 iar g4 2023-01-30 17:07:06 +07:00
Gordon McNab c07fb9a71e Merge branch 'port-ft90x' of https://github.com/ftdigdm/tinyusb into port-ft90x 2023-01-30 10:06:55 +00:00
hathach b464f91a6e iar h7 2023-01-30 17:04:39 +07:00
Gordon McNab 63e6aea5ac Removed unrequired header file from debugging. 2023-01-30 10:04:34 +00:00
hathach 6257123157 Merge branch 'master' into support-iar 2023-01-30 16:44:22 +07:00
Ha Thach 88f3279c3c
Merge branch 'master' into port-ft90x 2023-01-30 11:40:53 +07:00
Ha Thach 00c007ed68
Merge pull request #1866 from DRNadler/mimxrt1024_evk
Add support for NXP's mimxrt1024_evk evaluation board.
2023-01-30 11:18:10 +07:00
hathach 11384159e1 suppress rt1024 warnings and fix typo 2023-01-30 10:16:57 +07:00
Jerzy Kasenberg 42230df71a Add support for nucleo-h723zg
Mostly copy of stm32h743nucleo.
Linker script generated by STM32CubeIDE.

Since this device has only one HS USB
board.h contains few defines that map on
board HS USB to FS because there is no
ULPI chip mounted on Nucleo board.

For FreeRTOS build:
Set interrupt priority for HS always and for FS if exists.
2023-01-26 12:53:03 +01:00
Jerzy Kasenberg ba017d0669 boards/stm32h7 update gpio clocks
GPIOE was turned on twice, changed to missing GPIOF.
GPIOI is not present on all boards notably STM32H723
so clock in turned on only if present.
2023-01-26 12:02:07 +01:00
Jonathan Bell 73b0047efc rp2040: avoid device-mode state machine hang
Don't mark IN buffers as available during the last 200us of a full-speed
frame. This avoids a situation seen with the USB2.0 hub on a Raspberry
Pi 4 where a late IN token before the next full-speed SOF can cause port
babble and a corrupt ACK packet. The nature of the data corruption has a
chance to cause device lockup.

Use the next SOF to mark delayed buffers as available. This reduces
available Bulk IN bandwidth by approximately 20%, and requires that the
SOF interrupt is enabled while these transfers are ongoing.

Inherit the top-level enable from the corresponding Pico-SDK flag.
Applications that will not use the device in a situation where it could
be plugged into a Pi 4 or Pi 400 (for example, when directly connected
to a commodity hub or other host) can turn off the flag in the SDK.

v2: use a field in hw_endpoint to mark pending.

v3: Partial rewrite following review comments

- Stub functions out if the workaround is not required
- Only force-enable SOF while any vulnerable endpoints are active
- Respect dcd_sof_enable() functionality
- Get rid of all but necessary ifdef hackery
- Fix a bug where the "endpoint lock" was used with an uninitialised pointer.
2023-01-24 11:53:28 +00:00
hathach df2ebe5d1a add iar --fpu option 2023-01-24 12:57:07 +07:00
hathach 0a4e611e37 update stm32f7 to build with iar 2023-01-22 12:11:01 +07:00
hathach db36075721 update f4 to build with iar 2023-01-22 11:56:50 +07:00
hathach 436cd5b9b8 add icf for f1 mini2 2023-01-21 14:26:46 +07:00
hathach 1bbeb6ad79 update stm32f1 to support iar build 2023-01-21 11:32:37 +07:00
Dave Nadler a6e0b598fa Add support for NXP's mimxrt1024_evk evaluation board.
Tested AOK with device\cdc_msc_freertos example.
2023-01-20 13:15:42 -05:00
Dave Nadler 456a8b208b Add support for NXP's mimxrt1024_evk evaluation board.
Tested AOK with device\cdc_msc_freertos example.
2023-01-20 12:59:45 -05:00
hathach 3fd075b48b fix warning 2023-01-20 15:29:23 +07:00
hathach ecfd57e6f1 get most examples build with iar 2023-01-18 10:31:00 +07:00
hathach 8df2fd1916 update freertos example to build with iar 2023-01-17 23:38:10 +07:00
hathach 1891802f08 update all f0 board to build with iar 2023-01-17 16:38:02 +07:00
hathach 3fee8b402e update makefile to support iar build starting with stm32f070 2023-01-17 16:20:04 +07:00
hathach 160d64b00a minor clean up. ch32v307 has issue with uart LOG=2 (skipping characters) 2023-01-12 15:34:29 +07:00
hathach f05f81e8b3 add button support 2023-01-12 15:19:26 +07:00
hathach 65f7a8006c rename board to lower case ch32v307v-r1-1v0 2023-01-12 13:31:36 +07:00
hathach e6a3cfb350 rename link file 2023-01-12 13:12:37 +07:00
hathach 658897cf4e fix redundant-decls warnings with USART_Printf_Init() 2023-01-12 12:30:18 +07:00
hathach e61d4aefe6 rename driver with dcd_ to be consitent with other ports 2023-01-12 12:08:56 +07:00
hathach 3cc6cece07 add note for openocd with wch, also add wch-riscv.cfg 2023-01-12 10:25:48 +07:00
hathach a7e1de1e83
temporarily suppress redundant-decls due to USART_Printf_Init()
fix codespell
2023-01-08 00:02:25 +07:00
Ha Thach 949950e592
Merge branch 'master' into ch32v307 2023-01-07 23:46:46 +07:00
Gordon McNab 9f440e5c69 Update SDK for FT9xx to include 3rdparty sources 2022-12-15 10:27:49 +00:00
hathach 43b255f413 more typos 2022-12-04 19:44:01 +07:00
Bastien Nocera 6a2cf67289 Fix typos 2022-12-04 19:43:23 +07:00
Gordon McNab 8cce9385e2 More configurable board options 2022-11-30 16:18:07 +00:00
Gordon McNab d3c4f66d35 Fix script issues with paths including spaces from env variable.
$(FT90X_TOOLCHAIN) or even $(TOP) may have spaces. Quote to fix.
2022-11-30 12:49:15 +00:00
Gordon McNab aceab1dcf3
Merge branch 'hathach:master' into port-ft90x 2022-11-30 12:16:52 +00:00
Gordon McNab fe63e30a44 Add FT9xx for cdc_dual_ports
Fix handling of interrupt endpoints. i.e. no ZLPs.
Fix the assignation of endpoint types.
Add button support for MM900evx boards.
On board support do not block for UART input.
2022-11-30 11:46:13 +00:00
Ha Thach ff26714958
Merge pull request #1756 from benishor/master
Added board description for electro-smith daisy seed
2022-11-30 17:16:19 +07:00
Gordon McNab 7d8d3eca73 Fix transfers issues with FT9xx
Correct USB FIFO use for setup data phases (OUT transfers). We cannot stop traffic on the control endpoint so we set a flag and pull data from host when tinyUSB requests it from the USB FIFO. Extend this for all endpoints although currently not required.
Rename all instances of ft90x which can apply to ft93x as ft9xx.
Add support for the cdc_dual_ports example for ft9xx.
Add LED pin definition for board LED in a simple to access place on the Bridgetek MM900EVx boards.
2022-11-29 18:49:23 +00:00
Gordon McNab 1fce76ad47 Fix issue with the CDC SetLineCoding request
The SetLineCoding would fail as host would send the SETUP OUT phase before tinyUSB had setup a transaction for it. ft9xx port would ignore the transfer since there was no valid transaction setup for it. One SETUP data phase packet is cached now.
2022-11-28 17:41:00 +00:00
hathach 5785467016 update pico-pio-usb submodule and its warnings suppress 2022-11-28 23:21:17 +07:00
Gordon McNab 9ccfb384e8 Update to v2.6.0 library 2022-11-24 12:17:55 +00:00
Adrian Scripca 8ef32617ba
Added board description for electro-smith daisy seed 2022-11-24 13:06:25 +02:00
hathach a394273ed2
add board_getchar() for non-blocking getchar() 2022-11-21 16:28:54 +07:00