Commit Graph

6338 Commits

Author SHA1 Message Date
hathach 7e48da5b44
update version to 0.15.0
add changelog
2023-02-10 12:47:48 +07:00
Graham Sanderson c0d79457f6
Merge pull request #1887 from hathach/rp2040-build-fixes
RP2040 build fixes
2023-02-06 16:06:36 -06:00
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 792b552c5c
Merge pull request #1884 from hathach/reapply-uint16-len-tud_hid_report_complete_cb
change length in tud_hid_report_complete_cb() from uint8 to uint16
2023-02-06 09:08:46 +07:00
hathach 3422e05684
change length in tud_hid_report_complete_cb() from uint8 to uint16 2023-02-04 11:43:23 +07:00
Ha Thach 4c03a9f855
Merge pull request #1880 from hathach/reduce-selfed-host-iar
Bundle mulitple familes for self-hosted iar to reduce build time
2023-02-01 20:10:01 +07:00
hathach 1727702217
add note for iar workflow 2023-02-01 19:30:32 +07:00
hathach 647fd030ff merge multiple matrix with IAR build 2023-02-01 18:45:50 +07:00
hathach 3846da69d3 run workflow if its yml is updated 2023-02-01 16:37:24 +07:00
hathach 6ec0537408 move hw-stm32l412nucleo-test into build-arm to reduce self-host compile time
reduce IAR build to only f0, h7, l4
2023-02-01 15:14:35 +07:00
Ha Thach d6354a2aa7
Merge pull request #1877 from hathach/fix-host-cdc-without-iad
Fix host cdc without iad
2023-02-01 11:18:04 +07: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
hathach ddb061f639 fix typos 2023-01-31 19:03:31 +07:00
hathach 9b6d6a983a fix typo issue #1859 2023-01-31 18:42:02 +07:00
hathach 5f4701bb3e added fuzzing status 2023-01-31 18:40:49 +07:00
hathach 95403ed9ac fix host issue when mounting an CDC device without IAD 2023-01-31 18:40:07 +07:00
hathach 6759721e9a move errata to end of c file 2023-01-31 17:38:27 +07:00
hathach 19b6cbc616 add e15 prefix or walkaround related functions, also minor refactor 2023-01-31 17:15:42 +07:00
hathach 0cce42fcc6 minor clean up 2023-01-31 11:38:15 +07:00
Ha Thach b03a688b24
Merge pull request #1768 from ftdigdm/port-ft90x
Port ft90x
2023-01-30 22:13:14 +07:00
Ha Thach 7166bb3643
Merge pull request #1876 from hathach/support-iar
Support iar build
2023-01-30 22:05:21 +07:00
hathach 25603c7269 iar L4 2023-01-30 20:11:59 +07:00
Gordon McNab 770de31dd9 Merge branch 'port-ft90x' of https://github.com/ftdigdm/tinyusb into port-ft90x 2023-01-30 11:51:51 +00:00
Gordon McNab 06079dcae1
Merge branch 'hathach:master' into port-ft90x 2023-01-30 11:49:05 +00:00
Ha Thach 8681dbb7a2
Merge pull request #1870 from DRNadler/WindowsBuildFix
Windows build fix for some mingw gnu make situations
2023-01-30 17:23:50 +07:00
hathach 39eb1ce70e minor clean up 2023-01-30 17:21:48 +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
hathach cc18784479 hardcoded configPRIO_BITS for IAR build to pass CI 2023-01-30 16:42:56 +07:00
hathach 6dd40603f9 fix typo 2023-01-30 11:46:52 +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
Ha Thach 778b62df81
Merge pull request #1875 from silvergasp/seed_corpus
feat(fuzz): Adds seed corpus for cdc and msc classes
2023-01-30 09:53:28 +07:00
Ha Thach 718e7342b1
Merge pull request #1872 from kasjer/kasjer/nucleoh723
Add support for nucleo-h723zg
2023-01-30 09:50:53 +07:00
Nathaniel Brough 02f1f05697 feat(fuzz): Adds seed corpus for cdc and msc classes 2023-01-29 09:38:05 -08: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 0d2078d295 rp2040: shuffle hw_endpoint members
Ordering by element size prevents alignment holes, and as a consequence the
host mode version of the struct is the same size as device, as pad bytes at
the end are used instead.
2023-01-24 12:05:32 +00: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
Jonathan Bell c3e47c31cc rp2040: export hw_endpoint_start_next_buffer() and hw_endpoint_lock_update()
The next change to the driver requires the export of these functions. Leave the
lock unimplemented for now.

Also move hw_set and hw_clear aliases into the top-level header file.
2023-01-23 10:55:20 +00:00
Dave Nadler 9b6ef4fcbc When tools/top.mk finds it is running on Windows, it expects SHELL set to cmd.exe.
Some Windows development environments invoke a mingw version of gnu make
with SHELL set to /bin/sh or /bin/bash (either explicitly or by default),
in which case tinyUSB make fails when a $(shell...) command feeds DOS syntax to sh.
We can't just use sh, as many Windows environments won't have unix utilities
like realpath (used by this makefile for sh shell commands).

This fix forces SHELL=cmd.exe on Windows and documents the issue.
Also adds additional documentation to help the next person...

With this fix, tinyUSB can be easily built and debugged in environments like
NXP's MCUxpresso (import as a makefile project).
2023-01-22 12:11:50 -05: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 f4c3f0800d add test_common_func.c 2023-01-21 17:47:40 +07:00
hathach 436cd5b9b8 add icf for f1 mini2 2023-01-21 14:26:46 +07:00