PanRe
a2390802f8
Merge pull request #2282 from HiFiPhile/uac_interl
...
UAC IN transfer improvements
2023-10-19 19:49:19 +02:00
Mengsk
d3fa3cdf48
Adjsut blackout time.
2023-10-18 17:05:35 +02:00
Ha Thach
dd588222c7
Merge pull request #2265 from bencowperthwaite/master
...
STM32U5 HS Support
2023-10-18 15:25:57 +07:00
HiFiPhile
ade8a19aef
Put sw_buf in USB section only if necessary.
2023-10-17 21:21:52 +02:00
HiFiPhile
e9d894fe66
Fix compile.
2023-10-17 21:03:29 +02:00
Ha Thach
0ede159ad0
Merge pull request #2244 from gabChouin/feat-stm32u575_nucleo
...
Add stm32u575-nucleo support
2023-10-18 00:06:28 +07:00
hathach
a5a77af11e
add board.mk for u575 nucleo
2023-10-17 23:53:09 +07:00
hathach
22aefd6aba
add cmake support for u575 nucleo
2023-10-17 22:48:54 +07:00
Ha Thach
80ee307244
Merge branch 'master' into feat-stm32u575_nucleo
2023-10-17 22:31:33 +07:00
HiFiPhile
d83a210788
Add blackout time.
2023-10-17 15:18:05 +02:00
HiFiPhile
0a1d6cf4d0
Read sample rate directly from control transfer to eliminate callback.
2023-10-17 13:06:55 +02:00
HiFiPhile
656e1e416a
Add flow control for IN transfer.
2023-10-17 09:46:01 +02:00
PanRe
118823c254
Merge pull request #2259 from HiFiPhile/uac_interl
...
Fix UAC encoding, update example.
2023-10-11 19:18:35 +02:00
HiFiPhile
c8430f5f85
Refactor to get rid of CMSIS DSP lib.
2023-10-10 20:00:50 +02:00
HiFiPhile
e2852da668
Update deps.
2023-10-10 18:35:24 +02:00
HiFiPhile
504d29cf7a
Update make & cmake file.
2023-10-10 18:25:42 +02:00
HiFiPhile
20699e30dd
Enhance plot script.
2023-10-10 18:25:14 +02:00
HiFiPhile
2ba760a1c1
Enhance audio_4_channel_mic example, plot 4 different waves for each channel.
2023-10-10 18:24:47 +02:00
HiFiPhile
8b2cb63da8
Fix naming nBytesPerSample.
2023-10-10 18:22:20 +02:00
HiFiPhile
b5c839f739
Merge branch 'master' of https://github.com/hathach/tinyusb into uac_interl
2023-10-10 15:02:25 +02:00
Ha Thach
513ab37ec6
Merge pull request #2276 from hathach/more-esp32-max3421
...
More max3421
2023-10-05 17:53:13 +07:00
hathach
cfb683f481
tested with nrf52840 and esp32s2
2023-10-05 17:01:41 +07:00
hathach
67e34267a6
change tuh_max3421_spi_xfer_api() signature
...
tested working with sam d21 and d51, not tested with nrf52, seem not
working with esp32
2023-10-04 18:00:32 +07:00
hathach
f36e0b7b92
esp32 comment out uart, increase max3421 spi speed to 26mhz
2023-10-03 16:27:35 +07:00
Ha Thach
b394ae1786
Merge pull request #2270 from hathach/add-max3421-esp32
...
Add max3421 support for esp32
2023-09-28 16:56:20 +07:00
hathach
8348631bf5
improve esp32 ci, build esp32 with -DDMAX3421_HOST=1 for max3421 testing
...
revert change in hcd.h
2023-09-28 16:15:31 +07:00
hathach
6b8933cfe8
fix build with new freertos host example
2023-09-28 12:55:59 +07:00
hathach
7dc1a66f91
esp32 cdc host with max3421 work well
2023-09-28 11:12:22 +07:00
hathach
277852afc1
fix esp32 msc example
2023-09-28 10:56:38 +07:00
hathach
10abece264
esp32 hid device work well
2023-09-28 10:06:10 +07:00
hathach
3a10b6a3d5
fix esp32 build
2023-09-27 18:09:19 +07:00
hathach
76c43a5bdc
Merge branch 'master' into add-max3421-esp32
2023-09-27 17:52:18 +07:00
Ha Thach
5b08a65ad2
Merge pull request #2268 from HiFiPhile/iar_tmpl
...
Update IAR template.
2023-09-27 17:41:18 +07:00
Ha Thach
e4058177af
Merge pull request #2269 from hathach/add-in_isr-to-hcd_int_hanlder
...
Add in isr to hcd int hanlder
2023-09-27 17:40:50 +07:00
Ha Thach
68c4009bba
Merge branch 'master' into add-in_isr-to-hcd_int_hanlder
2023-09-27 17:01:40 +07:00
Mengsk
42eb4e0da0
Fix CI.
2023-09-27 11:46:52 +02:00
Mengsk
b35621fc63
Update IAR template.
2023-09-27 11:43:23 +02:00
hathach
58c49cea5b
remove sct_neopixel from lpc54 (due to warnings and not used)
2023-09-27 16:31:46 +07:00
hathach
0a4fb6963d
fix build with lpc54
2023-09-27 16:19:39 +07:00
hathach
3b0ffd0f48
change hcd_int_handler(rhport, in_isr) signature: add in_isr
...
change tuh_int_handler() to take in_isr as optional parameter (default =
true)
2023-09-27 15:51:03 +07:00
hathach
6dc64eaa28
max3421 communication work with esp32 up to enumeration, seems still have a bit of issue
2023-09-27 12:34:45 +07:00
hathach
2f6592de7f
update max3421 to have hcd_int_handler_ext()
2023-09-27 11:30:18 +07:00
bac
1168e4e163
Added support for USB2 HS peripheral (with integrated HS PHY) on STM32U59x chips
2023-09-26 15:27:17 +01:00
hathach
f6ca86c3dd
tested cdc_msc_hid_freertos with samd51
...
add -Wno-error=format for espressif
wrap up cdc_msc_hid_freertos
2023-09-26 19:09:36 +07:00
hathach
a7c136c03f
adding host/cdc_msc_hid_freertos example
2023-09-25 16:53:11 +07:00
HiFiPhile
6be7f354c2
Fix cast-align.
2023-09-19 16:35:05 +02:00
Ha Thach
56c6d2feab
Merge pull request #2258 from hathach/cmake-u5
...
Cmake u5
2023-09-19 21:26:20 +07:00
HiFiPhile
9d0251f7a6
Fix UAC interleaved copy.
2023-09-19 15:42:52 +02:00
hathach
b73262be3a
minor indent
2023-09-19 18:38:47 +07:00
hathach
8cdcd0fa9d
fix build and add u5 to ci
2023-09-19 18:35:15 +07:00
hathach
71a2e8a36d
addding cmake support for u5
2023-09-19 17:59:38 +07:00
hathach
81cd995108
add default CFG_TUH_MAX3421 = 0, default spi speed for samd21/samd51 to 12Mhz
2023-09-18 22:15:31 +07:00
Ha Thach
46f7cf4da2
Merge pull request #2235 from slark-yuxj/master
...
fix:Resource leak: fp
2023-09-12 17:43:14 +07:00
Ha Thach
e9ba93315c
Merge pull request #2245 from arduino/fix_msd_extraneus_bytes_on_reading
...
Fix msd extraneus bytes on reading
2023-09-12 12:53:52 +07:00
Ha Thach
6d922de0cb
Merge pull request #2251 from hathach/add-max3421e-hcd
...
Add max3421e host driver
2023-09-11 22:22:13 +07:00
hathach
f55052b61f
enable max3421 host for feather nrf52840 with makefile
2023-09-11 16:44:06 +07:00
hathach
1eb0cb0c65
update readme to include max3421 support
2023-09-11 15:45:26 +07:00
hathach
ab9585401b
wrap up build cmake & make support for max3421, to enable the Host driver, 'MAX3421_HOST=1' must be added as part of make/cmake command
2023-09-11 11:35:51 +07:00
hathach
e32c1e08bd
both samd21/d51 works perfectly with max3421e
2023-09-09 16:50:16 +07:00
hathach
605ad73ec0
refactor max3421_init() for samd51 to be generic for sercom and eic
2023-09-09 13:04:36 +07:00
hathach
c074488f75
minor rename
2023-09-09 12:20:16 +07:00
maidnl
228acbeac2
wait_pipe_fifo_empty() now returns bool (as expected using TU_ASSERT macro)
2023-09-08 15:48:05 +02:00
hathach
1d68f2a328
metro m4 working with max3421e
2023-09-08 18:39:09 +07:00
hathach
bcc77a60e0
get spi working for metro m4 express
2023-09-08 17:40:00 +07:00
maidnl
7ce4cfa638
renesas: added wait function for IN transaction
...
This fixes a problem found on MSD class where data read from from disks were sometimes partially overwritten by the status MSD message ("USBS...").
The function introduced wait for the hw fifo pipe to be empty, that prevent that new writing in the fife overwrite data which are not yet be transmitted by hw.
2023-09-08 10:49:05 +02:00
hathach
ed102a7795
Merge branch 'master' into add-max3421e-hcd
2023-09-07 21:42:46 +07:00
Ha Thach
702740a3e2
Merge pull request #2246 from hathach/add-cmake-samd
...
Add cmake support for samd21 and samd51
2023-09-07 17:55:50 +07:00
hathach
d3c08ecc3a
more ci fix
2023-09-07 17:20:07 +07:00
hathach
e8558458c4
fix ci
2023-09-07 17:09:25 +07:00
hathach
2dea4ce6a2
add cmake support for samd21.
...
update ci cmake
2023-09-07 16:58:40 +07:00
hathach
bb5d43e9c5
add samd51 to cmake
2023-09-07 15:31:43 +07:00
hathach
21ab40bab2
- wrap up hcd max3421, work well with nrf52840
...
- also add usbh_defer_func()
2023-09-07 12:38:18 +07:00
hathach
1b9108ea0d
minor debug clean up
2023-09-06 17:11:35 +07:00
Gabriel Chouinard
c4566c4d2b
Enable instruction cache for stm32u5 boards
2023-09-05 21:39:28 -04:00
Gabriel Chouinard
4fb15f6bb7
Add stm32u575-nucleo support
2023-09-05 19:30:38 -04:00
hathach
ed0a233d48
vastly improve attach/detach device, still have issue where thing is still hanged occasionally.
2023-08-31 21:28:27 +07:00
hathach
3b7d5aa042
improve connection & disconnection detection. But there is still issue when CONDETIRQ occurs but we are disabled interrupt (for osal queue access).
2023-08-31 16:52:09 +07:00
hathach
41493426b3
use ep buf to keep setup packet, work well with hid device
2023-08-30 16:21:43 +07:00
hathach
1ab488eb06
call xfer_complete_isr() when result is not successful (stalled or failed)
2023-08-30 16:04:18 +07:00
hathach
2a814a99af
- hcd_setup_send() also check for busy flag
...
- xact_inout() to support send setup
2023-08-29 20:27:37 +07:00
hathach
3740a3287a
- correct tuh_max3421e_int_api() for nrf52
...
- hcd_int_disable/enable is software only to reduce interrupt lag
2023-08-29 18:22:21 +07:00
yuxiaojun
c350616038
fix:Resource leak: fp
...
Signed-off-by: yuxiaojun <yuxiaojun1011@outlook.com>
2023-08-28 15:24:14 +08:00
hathach
b31924e13e
- add xfer_complete_isr()
...
- merge addr0 ep to pool
- add control status to xact in/out
- use atomic flag busy to ensure only 1 transfer is active at any time
- execute pending transfer after one is complete (or clear busy flag)
- change rtt mode to block if full
2023-08-28 12:41:44 +07:00
hathach
84df3b04db
minor update
2023-08-27 23:54:24 +07:00
hathach
502b1bdda6
more update to transaction
2023-08-27 23:45:34 +07:00
hathach
cd7464a884
try next endpoint when received NAK
2023-08-25 17:37:09 +07:00
hathach
ac00b91472
add xact_out(), xact_in() to manage transfer
2023-08-25 17:26:57 +07:00
hathach
ecf2f91042
use endpoint pool for more flexible multiple devices support
2023-08-25 16:36:28 +07:00
hathach
09ceaa6cf3
add osal mutex for spi
2023-08-25 13:18:47 +07:00
hathach
f5ebc1700f
add spi lock with interrupt enable/disable
2023-08-25 12:12:44 +07:00
hathach
e6cf125e53
save data toggle, always retry NAK. work with msc device
2023-08-24 16:46:20 +07:00
hathach
344932d27e
add tuh_max3421e_int_api(), retry control if received NAK
2023-08-24 16:27:47 +07:00
hathach
3ed5d6c372
complete enumeration
2023-08-24 16:27:12 +07:00
Ha Thach
7bf5923052
Merge pull request #2142 from sjanc/symlinks
...
Fix documentation symlinks
2023-08-24 00:01:55 +07:00
hathach
2c237b1ae4
able to complete 1st get device descriptor and set address
2023-08-23 17:49:28 +07:00
hathach
e3f3179924
able to get 8 byte descriptor, but read(RCVBC) always return 0
...
- rename max3421e to max3421
- fix incorrect bitmask for HCTL, fix initial device connect
- fix bus reset cause connect IRQ
2023-08-23 15:08:12 +07:00
hathach
274578ff46
able to send setup packet
2023-08-22 23:17:12 +07:00
hathach
b413439416
able to detect new device and start enumerating
2023-08-22 19:57:59 +07:00
hathach
cacc96b25d
adding connection event handling, add nrf gpio interrupt for max2341e interrupt pin
2023-08-18 17:39:10 +07:00
hathach
824e585e2b
ground works for hcd max3421e
2023-08-18 14:07:38 +07:00
hathach
9257a0f562
- update nrf52 bsp for cmake
...
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
2023-08-18 12:48:12 +07:00
Ha Thach
1fdf29075d
Merge pull request #2221 from hathach/ehci-halted-error
...
EHCI more fixes
2023-08-16 16:01:16 +07:00
hathach
f4845e4e6c
minor comment
2023-08-16 14:43:58 +07:00
hathach
0109ffbdcb
fix abort transfer does not release endpoint, also reset state if it is control transfer
2023-08-16 14:31:14 +07:00
hathach
b3c7fe1023
clear qhd halted bit if not caused by STALL protocol, allow for next transfer
2023-08-16 11:12:00 +07:00
Ha Thach
7537985c08
Merge pull request #2222 from rppicomidi/fix-2188
...
fix issue 2188: support usbh_app_driver_get_cb()
2023-08-15 23:33:19 +07:00
hathach
67a374d932
more rename
2023-08-15 22:57:05 +07:00
hathach
1b33a31536
more minor clean up
...
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
rppicomidi
9d94296741
fix issue 2188: support usbh_app_driver_get_cb()
2023-08-14 15:38:48 -07:00
Ha Thach
d713571cd4
Merge pull request #2217 from hathach/add-lpc43s67
...
Add lpc43s67
2023-08-14 22:28:53 +07:00
Ha Thach
ba40d667e1
Merge pull request #2219 from tswan-quasi/master
...
min on cdc r/w
2023-08-14 22:25:44 +07:00
hathach
f2f005cbdf
fix build iar with lpc43
2023-08-14 22:01:30 +07:00
hathach
088180e3d8
add iar support for lpc43, add lpcxpresso43s67 to hil farm
2023-08-14 20:58:00 +07:00
tswan-quasi
b5ba12119d
UINT16_MAX stdint macro usage
2023-08-14 09:01:30 -04:00
tswan-quasi
bd51afb091
min on cdc r/w
2023-08-14 08:49:52 -04:00
hathach
78e5b2c6a4
add board_get_unique_id() for lpc43
2023-08-14 16:52:16 +07:00
hathach
202b945f88
add lpcxpresso43s67
2023-08-14 16:38:51 +07:00
Ha Thach
92457ec99f
Merge pull request #2202 from Rocky04/patch-4
...
Invoke unmounted state on configuration reset
2023-08-09 20:48:26 +07:00
Ha Thach
04f0cd5c80
Merge pull request #2209 from HiFiPhile/hitl
...
Enhance HITL test
2023-08-09 20:20:46 +07:00
hathach
8e690df1da
rename hitl to hil
2023-08-09 19:03:56 +07:00
hathach
1268d1a093
update hil test and json (remove troublesome lpc54608), run hil test on ci with IAR build
2023-08-09 18:46:23 +07:00
hathach
1abfa9ac75
Merge branch 'hitl' into pr_hitl
2023-08-09 12:48:46 +07:00
hathach
b8b01c1075
update to dcd ip3511 to add work-around for lpc54628 usb hs errata USB.1 and USB.2
...
msc is mounted, but device couldn't work reliably and got constant reset
due to other errata probably.
2023-08-09 12:47:24 +07:00
HiFiPhile
992e17fb48
Add simple test for hid_boot_interface.
2023-08-08 22:08:59 +02:00
HiFiPhile
bffe321cd2
Update contributor.rst
2023-08-08 18:25:15 +02:00
HiFiPhile
56bed1e581
Flash board_test when done, skip cdc_msc for LPC54.
2023-08-08 17:34:45 +02:00
HiFiPhile
3444c4abe5
Add dummy board_test.
2023-08-08 17:34:07 +02:00
hathach
6d877c3170
added cmake for lpc54, update lpc55
2023-08-08 18:50:24 +07:00
Rocky04
9602c06f8d
Correcting comments
2023-08-07 21:25:50 +02:00
Rocky04
c959e65edd
Fixing wrong callback placement
2023-08-07 21:16:41 +02:00
Rocky04
12ed867b5e
Fixed typo
2023-08-07 20:59:08 +02:00
HiFiPhile
c24f10e4f6
Mount block device in test_cdc_msc.
2023-08-07 20:48:54 +02:00
Ha Thach
51a0889b75
Merge pull request #2211 from hathach/host-usb-reset
...
Host usb reset
2023-08-07 23:10:47 +07:00
hathach
4938971aad
code format
2023-08-07 20:48:09 +07:00
hathach
18646179d0
fix host msc get maxlun not using aligned section memory
2023-08-07 20:48:08 +07:00
hathach
1f95a417f2
Add tuh_rhport_is_active() and tuh_rhport_reset_bus()
...
- also improve ehci bus reset
- seperate bus reset delay and contact debouncing delay in enumeration
2023-08-07 20:48:07 +07:00
Rocky04
45af3d6a83
Update examples
2023-08-07 12:04:22 +00:00
Ha Thach
1b92108bc3
Merge pull request #2208 from kkitayam/fix_makefile_for_win
...
Fix makefile a warning when run on windows command prompt
2023-08-07 16:13:44 +07:00
Ha Thach
accc3fd737
Merge pull request #2151 from kilograham/rp2040_build_fixes
...
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
2023-08-07 11:14:04 +07:00
HiFiPhile
87150b7770
Add config file as argument.
2023-08-06 22:02:15 +02:00
HiFiPhile
c940a2f362
Fix RTT build.
2023-08-06 21:55:24 +02:00
HiFiPhile
4d1f3f4e9d
Add more MCU.
2023-08-06 16:59:25 +02:00
HiFiPhile
b9e614bd39
Fix LPC54 build.
2023-08-06 15:59:25 +02:00
kkitayam
b173c71ffc
Change to subst to work on windows command prompt
2023-08-06 22:49:45 +09:00
HiFiPhile
9dd896904c
WIP.
2023-08-06 13:41:41 +02:00
HiFiPhile
4f96eebe1b
Fix LPC54 build.
2023-08-06 13:41:10 +02:00
Ha Thach
3db945283a
Merge pull request #2185 from abakosh/clean_RA_HCD
...
Fix typos in HCD rusb file
2023-08-04 21:59:19 +07:00
Ha Thach
c43e7b198d
Merge pull request #2206 from hathach/hw-test-jlink-sn
...
add usb serial for hw l412 test
2023-08-04 21:56:46 +07:00
hathach
3c746e8bb0
add usb serial for hw l412 test
2023-08-04 21:33:44 +07:00
Aladdin Bakosh
56e52037a8
clean(ra_hcd): fix typos in the hcd library
2023-08-04 12:00:25 +02:00
Ha Thach
363cea7c34
Merge pull request #2121 from ahooper/blackf407VE
...
Board support for STM32F407VETx
2023-08-04 13:12:38 +07:00
hathach
25bace5e81
add cmake for all board in stm32f4. fix build, also move ci for f4 from makefile to cmake
2023-08-04 12:49:26 +07:00
hathach
81aca17d6e
Merge branch 'master' into blackf407VE
2023-08-04 12:07:39 +07:00
Ha Thach
61f00c0c4d
Merge pull request #2135 from JustAnother1/master
...
made line ends consistent.
2023-08-04 12:05:07 +07:00
Ha Thach
1b04db2a77
Merge branch 'master' into master
2023-08-04 11:48:04 +07:00
Ha Thach
de4ad2c775
Merge pull request #2204 from hathach/enhance-bsp
...
Enhance bsp
2023-08-04 11:41:44 +07:00
Ha Thach
bbdc879995
Merge pull request #2133 from greatscottgadgets/cynthion_support
...
Update support for Cynthion boards
2023-08-04 11:03:25 +07:00
Ha Thach
9a4c76d18d
Merge pull request #2116 from dsugisawa-mixi/master
...
fix example of bare_api, check empty string
2023-08-04 11:00:09 +07:00
hathach
9697c4df4e
update all examples to use unique ID as serial if avaialble
2023-08-04 10:28:24 +07:00
hathach
67ff3f7845
more clean up
2023-08-04 00:37:01 +07:00
hathach
ef5bd9ee6c
Merge branch 'master' into enhance-bsp
2023-08-04 00:31:12 +07:00
hathach
9360a3bd51
add uid for some stm32
2023-08-04 00:23:10 +07:00
hathach
041f510f90
add board_get_unique_id() for serial number
...
implemented board_get_unique_id() for rp2040 and L4
2023-08-03 20:42:34 +07:00
Ha Thach
6d03bb9ffc
Merge pull request #2052 from arduino/renesas_ra_hs_rebased
...
Renesas_RA: add support for board with HS USB port
2023-08-03 20:41:13 +07:00
hathach
1324c2862d
more board_api rename
2023-08-03 17:32:15 +07:00
hathach
a160da1f2b
add lpc43 family
2023-08-03 17:19:47 +07:00
hathach
a5768f52b4
more board_api.h rename
2023-08-03 15:50:52 +07:00
hathach
cf91660cee
rename hw/bsp/board.h to board_api.h
2023-08-03 15:44:05 +07:00
hathach
4493b838d9
rename ch32v307 and tm4c123 to use underscore
2023-08-03 15:35:01 +07:00
hathach
4cb8b513af
ide settings
2023-08-03 15:17:57 +07:00
Ha Thach
d91869a1fa
Merge pull request #2105 from kholia/cdc_uac2_example
...
Add CDC+UAC2 composite device example for Pico
2023-08-03 15:13:56 +07:00
hathach
d89fc0772b
add makefile, add cdc_uac2 to cmake example list, update descriptor to build with nrf and samg/7x
2023-08-03 14:55:24 +07:00
Ha Thach
e5b171868a
Merge pull request #2091 from DRNadler/master
...
For FreeRTOS kernel-aware debugging, when queue registry is enabled, …
2023-08-03 14:30:28 +07:00
hathach
6844055dd1
Merge branch 'master' into cdc_uac2_example
2023-08-03 12:15:07 +07:00
hathach
37a7f9f382
configQUEUE_REGISTRY_SIZE=4 for lpc18
2023-08-03 12:07:28 +07:00
hathach
473f37df95
add osal queue name if needed
...
also mass change configQUEUE_REGISTRY_SIZE = 4
2023-08-03 12:05:21 +07:00
hathach
de8faf8664
Merge branch 'master' into pr2091
2023-08-03 11:09:33 +07:00
hathach
d09604d636
Revert "Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers"
...
This reverts commit 11fba59319
.
2023-08-03 11:07:23 +07:00
Rocky04
9560d0813f
Set unmounted on configuration reset
2023-08-02 15:25:08 +02:00
hathach
2021c62997
fix pre-commit, also skip lto for rp2040
2023-08-02 17:57:28 +07:00
Ha Thach
5cf94234d2
Merge pull request #2200 from hathach/selective-log
...
default class driver log level to CFG_TUH/TUD_LOG_LEVEL
2023-08-02 16:26:57 +07:00
hathach
868d52f3a8
move codespell folder to tools
2023-08-02 15:52:06 +07:00
hathach
979bf32266
default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log
2023-08-02 15:34:18 +07:00
Ha Thach
2cf869c1a4
Merge pull request #2197 from HiFiPhile/fix_g0
...
Fix STM32G0 build.
2023-08-02 10:09:49 +07:00
HiFiPhile
07822979aa
Fix STM32G0 build.
2023-08-01 18:41:15 +02:00
Martino Facchin
edee46e794
renesas: host: remove attach_attempt logic
2023-08-01 15:21:31 +02:00
Ha Thach
5e1ed9d580
Merge pull request #2187 from 0xCCF4/master
...
Fixed typo in binary declaration RP2040 hw bspw family.c
2023-08-01 17:55:40 +07:00
hathach
47ae883ba0
fix build with -flto
2023-08-01 17:26:56 +07:00
hathach
f04e5108b2
Merge branch 'arduino-renesas_ra_hs_rebased' into renesas_ra_hs_rebased
2023-08-01 17:08:03 +07:00
hathach
04f1a34c39
add rusb2_common.c for dynami irq
2023-08-01 17:03:07 +07:00
Martino Facchin
965627e81c
rusb2: move dynamic irq function to c file
2023-08-01 11:41:33 +02:00
hathach
40833b585b
enable flto for ra makefile
...
- remove ra from ci make build since it is already in cmake ci
2023-08-01 15:44:54 +07:00
hathach
789e478d4d
add portenta c33 bsp, add flash by dfu-util
2023-08-01 13:16:37 +07:00
hathach
1cccbaf7ec
fix board name with dash
2023-08-01 11:18:00 +07:00
hathach
3f788a4e5a
enable USBMC for uno r4, add board_init_after_tusb() API
...
add BOARD_UPPERCASE for board detection
2023-07-31 19:09:40 +07:00
hathach
cb47231518
revert out of scope changes
2023-07-31 17:13:37 +07:00
Ha Thach
ce54984556
Merge pull request #2093 from abakosh/no_osal_delay
...
osal_none: make it possible to override the task delay function
2023-07-31 17:12:28 +07:00
hathach
0d9973ef87
enable_irq since uno bootloader can disable it. systick triggered, however usb still not work with uno
2023-07-31 16:21:19 +07:00
hathach
feb58ebd54
add uno r4 wih FLASH_IMAGE_START=0x4000, running but interrupt (systick) does not seems to work
2023-07-28 19:01:12 +07:00
0xCCF4
8226b046a9
Fixed typo in rp2040 hw bspw family.c
2023-07-28 11:19:08 +02:00
hathach
e56d5443a8
- revert usb address
...
- more clean up
2023-07-28 12:42:40 +07:00
hathach
6021803d58
fix ci
2023-07-28 11:33:26 +07:00
hathach
ec093bebad
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-27 16:50:34 +07:00
Ha Thach
db59494b1b
Merge pull request #2179 from hathach/enhance-ehci
...
Enhance EHCI
2023-07-27 16:15:43 +07:00
hathach
5a29db2787
add check for edpt_xfer() with halted, also reset data toggle when clear stall
2023-07-27 15:52:55 +07:00
Ha Thach
d9cc30291f
Merge pull request #2182 from hathach/correct-hcd_edpt_clear_stall-API
...
correct hcd_edpt_clear_stall() API signature
2023-07-26 21:42:08 +07:00
hathach
10575c1b38
mising ehci
2023-07-26 20:48:18 +07:00
hathach
c37a957174
correct hcd_edpt_clear_stall() API signature
2023-07-26 19:56:48 +07:00
hathach
6b6dcc6c09
refactored multiple ports for hcd rusb2
2023-07-26 19:52:33 +07:00
hathach
1cb3f0e92a
increase stack size for 6 series to 0x1000, 4 series to 0x800
2023-07-26 18:56:13 +07:00
hathach
fbaa148fe0
updating hcd rusb2
...
- make osal_task_delay() as weak function in usbh
- implement osal_task_delay() in hcd rusb2 (may moved to other places)
2023-07-26 18:55:41 +07:00
hathach
4deea87579
improve processing usb complete and error isr.
...
also merge them together
2023-07-25 15:07:21 +07:00
hathach
dc74e634f9
fix unaligned hub status_change
2023-07-25 12:35:40 +07:00
hathach
ef69da054e
use standard EHCI USB INT instead of chipidea async/period interrupt to be compatible with other EHCI implementation
2023-07-25 12:03:54 +07:00
Ha Thach
9554283b03
Merge pull request #2175 from hathach/hcd-abort-xfer
...
Add HCD abort xfer API
2023-07-24 22:08:53 +07:00
Ha Thach
fda92fd34a
Merge branch 'master' into hcd-abort-xfer
2023-07-24 21:38:46 +07:00
Ha Thach
0b38941362
Merge pull request #2173 from hathach/imxrt-dcache-align
...
change dcache clean/invalidate return type to bool
2023-07-24 21:36:15 +07:00
hathach
f295aaf185
add hcd abort xfer for rp2040 pio usb
2023-07-24 20:58:50 +07:00
hathach
fd29fd923a
clean up
2023-07-24 20:53:44 +07:00
Ha Thach
d685ac689b
Merge pull request #2172 from hathach/cmake-4088
...
update bsp for 4088
2023-07-24 20:49:20 +07:00
hathach
25225ba792
minor clean up
2023-07-24 18:04:42 +07:00
hathach
d254256047
change dcache clean/invalidate return type to bool
...
add tu_assert() check for aligned 32byte address for imxrt
2023-07-24 17:54:24 +07:00
hathach
14a7379799
fix ohci warnings, and add freertosconfig for lpc4088
2023-07-24 16:54:02 +07:00
hathach
210fc7d038
add etm trace pinmux for 4088 quickstart
2023-07-24 16:19:45 +07:00
hathach
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
hathach
a268e0b7a3
add lpc40 to cmake
2023-07-24 15:18:41 +07:00
Ha Thach
8fa0b74d80
Merge pull request #2155 from jferreir/xmc4700_relax
...
Board support for XMC4700_RELAX
2023-07-21 19:08:51 +07:00
hathach
c122e9df73
implement hcd_edpt_abort_xfer() for EHCI, also move thing around a bit
2023-07-21 19:06:36 +07:00
hathach
14c98dd863
minor ehci rename, move code around
2023-07-21 16:39:30 +07:00
hathach
0da273ea79
add stub hcd_edpt_abort_xfer() for all ports
2023-07-21 12:52:26 +07:00
hathach
1cc7c5d030
add hcd_edpt_abort_xfer() API
2023-07-21 12:43:48 +07:00
jferreir
34ff7af7c7
Fix trailing spaces issue
2023-07-20 18:12:36 +02:00
jferreir
48101cc294
Merge branch 'hathach:master' into xmc4700_relax
2023-07-20 17:12:57 +02:00
jferreir
6ac7f19640
fix compilation issues for XMC4500_RELAX
2023-07-20 17:01:00 +02:00
hathach
954f0e948d
prefer application callback over built-in driver
2023-07-20 17:01:00 +02:00
hathach
eae8678d67
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:01:00 +02:00
Ha Thach
17576a6949
Merge pull request #2156 from hathach/usbh-xfer-user-callback
...
Usbh xfer user callback
2023-07-20 18:30:09 +07:00
hathach
16ad918d96
prefer application callback over built-in driver
2023-07-20 17:37:06 +07:00
hathach
77495cf119
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:12:00 +07:00
jferreir
2772581c28
Add support for XMC4700_RELAX kit
2023-07-20 10:53:59 +02:00
jferreir
59778664c9
Add UART_DEV support
2023-07-20 10:53:29 +02:00
jferreir
b1e345b6bc
Add UART_DEV support
2023-07-20 10:52:16 +02:00
Ha Thach
6c7c9f2ef5
Merge pull request #2152 from kilograham/is_pico_pio_usb_supported
...
add is_compiler_supported_by_pico_pio_usb() for rp2040
2023-07-18 23:54:33 +07:00
graham sanderson
08a1892801
add is_compiler_supported_by_pico_pio_usb()
...
previosuly users of TinyUSB (e.g. pico-examples) would have to decide this for themselves. This function couples
the check closer with the actual version of Pico-PIO-USB used (since TinyUSB picks)
2023-07-18 11:04:46 -05:00
Ha Thach
e3d4385280
Merge pull request #2150 from kkitayam/flash-jlink-for-windows
...
Fix flash-jlink target to work on Windows command prompt
2023-07-18 22:33:57 +07:00
graham sanderson
3678a25baa
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
...
* include_guard requires GLOBAL as family.cmake is included in multiple non child places
* the following recently added check is suprfluous (family_configure_host_example for rp2040 should do this already),
and breaks if pico_pio_usb is not avaialble, so i have removed
# Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
if(FAMILY STREQUAL "rp2040")
family_add_pico_pio_usb(${PROJECT})
endif()
* added new familt_example_missing_dependency functino to print missing dependency warning, so
pico-examples can override it to be less in your face, and also more contextual to pico-examples
2023-07-18 09:03:01 -05:00
kkitayam
efa8b4a9b8
Change a variable to a target so that it works on windows command prompt
...
echo command of windows command prompt can't handle line breaks in a variable.
2023-07-18 22:55:55 +09:00
Aladdin Bakosh
3fdd2a40b2
osal_none: make it possible to override the task delay function
2023-07-18 14:14:23 +02:00
Ha Thach
973c7d47eb
Merge pull request #2149 from hathach/fix-etm-trace-h7
...
fix etm trace clock with stm32h743eval board
2023-07-18 16:40:26 +07:00
Ha Thach
2bab947e38
Merge pull request #2146 from tannewt/host_cache_align
...
Fix host buffer alignment setting
2023-07-18 16:39:48 +07:00
hathach
2cd0b9ec35
fix etm trace clock with stm32h743eval board
2023-07-18 16:22:05 +07:00
hathach
b56c4fe945
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-18 15:13:58 +07:00
Ha Thach
6798e7e059
Merge pull request #2120 from abakosh/RA_STALL
...
fix(RA_hcd): STALL status can be also 3 not only 2
2023-07-18 15:11:02 +07:00
Ha Thach
c5e23eaa14
Merge pull request #2148 from hathach/imxrt-bsp
...
Imxrt bsp
2023-07-18 14:47:21 +07:00
hathach
5723d38087
correct jlink dev for rt1010
2023-07-18 13:28:57 +07:00
Aladdin Bakosh
3230d5b1ea
debugging can be configured on renesas dcd
2023-07-17 11:54:09 +02:00
Aladdin Bakosh
41b608562a
debugging can be configured on renesas hcd
2023-07-17 11:54:09 +02:00
Aladdin Bakosh
1923b1845d
fix(RA_hcd): STALL status can be also 3 not only 2
2023-07-17 11:54:09 +02:00
Scott Shawcroft
8b6d0a166b
Fix host buffer alignment setting
2023-07-14 15:30:22 -07:00
hathach
eb298e2b81
add clock_config.c for imxrt generated by mcuxpresso config
2023-07-14 12:45:54 +07:00
Szymon Janc
4b59cb9a20
Fix documentation symlinks
...
There were typos in symlinks target names resulting in following
warrning on checkout (at least in Mynewt newt tool):
* Warning: stat mynewt/repos/tinyusb/docs/contributing/code_of_conduct.rst: no such file or directory
* Warning: stat mynewt/repos/tinyusb/docs/info/contributors.rst: no such file or directory
2023-07-10 12:12:26 +02:00
hathach
0f53e746ff
move check highspeed to rusb_ra
2023-07-07 18:41:16 +07:00
hathach
f7e7ba92ca
enable host example for ra
2023-07-07 16:27:12 +07:00
hathach
88478a9d05
add PORT selection for makefile
2023-07-07 16:24:22 +07:00
hathach
e0f1ba8b0e
fully work with multiple ports without CFG_TUSB_RHPORT0/1
2023-07-07 16:07:11 +07:00
hathach
4c156100fa
use unaligned access read for hw fifo
2023-07-07 12:27:18 +07:00
hathach
4bbacb1008
correct setting trace clock
2023-07-07 11:07:57 +07:00
hathach
c53acb1455
fix build with rx
2023-07-06 20:10:58 +07:00
hathach
1eefc2b3ef
more multiple ports update
2023-07-06 19:35:42 +07:00
hathach
95b77a0e73
add rusb2_module_start(), more update for multiple ports for dcd rusb2
2023-07-06 15:54:07 +07:00
hathach
f308435b64
update ra type to include usbhs registers
2023-07-06 09:34:33 +07:00
hathach
4f4c93594d
minor pipe clean up
2023-07-05 17:51:36 +07:00
hathach
f79529c09c
usb hs work with ra 6m5 ek
2023-07-05 17:13:01 +07:00
hathach
1d6ca3bc9b
fix ra4m3 ek build
2023-07-04 20:04:54 +07:00
hathach
071c30f381
update fsp to version 4.5, correct RA BSP. Fix ETM Trace with 6m5 by lowering PLL to 128Mhz.
2023-07-04 19:27:37 +07:00
Andrew Hooper
cfc146e18f
Add FreeRTOSConfig for family stm32f4
2023-07-04 08:08:05 -04:00
Andrew Hooper
34966304dd
Restore RTOS argument for stm32f4
2023-07-03 11:21:47 -04:00
hathach
bb0e688b8e
add jlinkscript for detect rtt
2023-07-03 16:35:22 +07:00
hathach
04b1a67898
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-03 13:09:43 +07:00
Ha Thach
f1e006d09b
Merge pull request #2137 from hathach/cmake-ra
...
enhance RA family
2023-07-03 12:25:29 +07:00
hathach
d5d1b43eb9
board pin data clean up
2023-07-03 12:07:27 +07:00
hathach
4080ab3d03
wrap up ra update
2023-07-03 11:22:19 +07:00
hathach
960d9fa6f1
move files around
2023-07-03 11:03:50 +07:00
hathach
ad7764b5b2
move vector_data.h and ioport_cfg.h to common family
2023-07-03 10:54:37 +07:00
Ha Thach
942eb0f323
Merge pull request #2129 from dauc/patch-1
...
Fix minor spelling issues
2023-07-02 23:40:37 +07:00
hathach
787229a35e
add etm trace for 6m5
2023-07-02 23:39:43 +07:00
Lars Pötter
2029ca9536
also fixed pico_trac() log messages.
2023-07-02 10:53:08 +02:00
Lars Pötter
0693462eba
made line ends consistent.
2023-07-02 09:02:24 +02:00
hathach
ec02ddf986
initial ra6m5 ek, board_test led + sw works
2023-07-01 21:43:52 +07:00
A. Hooper
9554a354d4
Merge branch 'hathach:master' into blackf407VE
2023-07-01 08:03:16 -04:00
Andrew Hooper
7d45a43f57
Correct loader file
2023-07-01 07:59:39 -04:00
hathach
14f1123bbd
remove left-over build_arm
2023-07-01 17:55:36 +07:00
hathach
e7431f54f2
fix undef with fsp
2023-07-01 17:46:21 +07:00
hathach
54dc699ddd
forgot board.mk for ra6m1
2023-07-01 17:43:06 +07:00
hathach
c5d958d104
add ra6m1 board
2023-07-01 17:27:45 +07:00
hathach
50381f7b4c
refactor to match fsp_cfg
2023-07-01 17:09:09 +07:00
hathach
22fb66436d
update linker
2023-07-01 16:40:47 +07:00
hathach
99e75e6a8a
rework ra build
2023-07-01 12:41:12 +07:00
mndza
14d69e46be
Update support for Cynthion boards
...
- Rename LUNA to Cynthion
- Add support for newer revisions (>=0.6)
- Bootloader (saturn-v) default size is now 2K
2023-06-30 11:30:33 +02:00
hathach
48738df489
move LTO checked to family_support.cmake
2023-06-30 16:05:59 +07:00
hathach
3cb4d73899
clean up ra makefile
2023-06-30 14:52:04 +07:00
Ha Thach
f5d0510064
Update build badge
2023-06-29 22:57:58 +07:00
Ha Thach
6e1eec908a
Merge pull request #2130 from hathach/hcd-frame-pio-usb
...
add hcd_frame_number() for pio-usb host
2023-06-29 22:46:24 +07:00
hathach
6284f2d722
add hcd_frame_number() for pio-usb host
2023-06-29 18:58:33 +07:00
Dave Nadler
11fba59319
Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers
2023-06-28 17:25:22 -04:00
Dave Nadler
cca4be6c67
Merge branch 'hathach:master' into master
2023-06-28 17:05:19 -04:00
Devin Auclair
98fb10a724
Fix minor spelling
2023-06-28 14:03:18 -04:00
Ha Thach
fe77b6713b
Merge pull request #2085 from georgeboc/msc-ready-bug-fix
...
Fixes bug in tuh_msc_ready
2023-06-27 17:57:35 +07:00
Ha Thach
5cea4b2420
Merge pull request #2128 from hathach/cmake-freertos
...
rework cmake with rtos support add RTOS to family_configure_device/host/dual_example()
2023-06-27 16:18:17 +07:00
hathach
e43387abac
rework cmake with rtos support add RTOS to family_configure_device/host/dual_example()
2023-06-27 15:45:38 +07:00
Ha Thach
bc0d6c7e92
Merge pull request #2127 from hathach/rp2040-cmake-cleanup
...
Rp2040 cmake cleanup
2023-06-26 23:50:38 +07:00
hathach
a61d0f074f
more rp2040 family clean up
2023-06-26 23:08:59 +07:00
hathach
8aa28e63fb
minor clean up with include_guard()
2023-06-26 17:54:31 +07:00
hathach
3cfb838ba7
fix warnings when enable rtt with rp2040
2023-06-26 17:03:45 +07:00
Ha Thach
7454e45796
Merge pull request #2125 from hathach/cmake-detect-family
...
auto detect FAMILY based on BOARD
2023-06-26 14:08:17 +07:00
hathach
200e58d11e
auto detect FAMILY based on BOARD
2023-06-26 13:38:24 +07:00
Ha Thach
eb53680a06
Merge pull request #2124 from hathach/refactor-make-build
...
Refactor make build
2023-06-25 13:48:00 +07:00
hathach
06d93e95d1
update hw test l4
2023-06-25 10:15:05 +07:00
hathach
2ecd7c148d
fix ci with lpc55 and kl, move hw test l4 to cmake iar
2023-06-25 09:55:05 +07:00
hathach
15376397b1
run ci with -DCMAKE_BUILD_TYPE=MinSizeRel
2023-06-25 00:05:23 +07:00
hathach
30ccfe0832
more cmake less make
2023-06-24 23:36:52 +07:00
hathach
9b2b4ce647
move some family ci make to cmake
2023-06-24 23:32:24 +07:00
hathach
a64d5607a7
fix l4 freertos build
2023-06-24 23:17:28 +07:00
hathach
b9cefb1440
fix build with L4
2023-06-24 23:10:01 +07:00
hathach
c81d8b43a1
fix ci build
2023-06-24 22:58:15 +07:00
Dave Nadler
bd897d9c14
Merge branch 'hathach:master' into master
2023-06-24 11:53:24 -04:00
hathach
430f16bf76
move all IAR to cmake
2023-06-24 22:36:53 +07:00
hathach
2a96ef2519
add cmake for f0, f1
2023-06-24 21:47:55 +07:00
hathach
946d3fdd4f
fix iar with make
2023-06-24 21:17:40 +07:00
hathach
38a582634e
fix missing replace
2023-06-24 20:32:18 +07:00
hathach
eb4380fa14
more make update
2023-06-24 20:17:48 +07:00
hathach
2216704db8
rename GCC_CFLAGS to CFLAGS_GCC, GCC_SRC_S to SRC_S_GCC etc ..
2023-06-24 19:31:33 +07:00
hathach
7d0ce5605a
allow to skip CPU_CORE
2023-06-24 19:08:37 +07:00
hathach
086c1d4090
more CPU_CORE
2023-06-24 18:54:14 +07:00
hathach
eb7fcf1b74
add CPU_CORE for all family
2023-06-24 18:38:41 +07:00
hathach
b59b65d2ed
rename to kinetis_k32l2, rename OPT_MCU_KINETIS_K32 to OPT_MCU_KINETIS_K32L
2023-06-24 18:26:51 +07:00
hathach
dbf7534cd4
update all stm32 to use new enhance make
2023-06-24 18:09:05 +07:00
hathach
edbf06aaab
separate iar and gcc build for clean make, also add cpu specific make
2023-06-24 17:35:37 +07:00
Andrew Hooper
3a5f43528e
Board support for STM32F407VETx
2023-06-23 11:51:58 -04:00
Ha Thach
50e61e0e16
Merge pull request #2101 from eustas/patch-1
...
Fix typos
2023-06-21 15:51:03 +07:00
Ha Thach
6cf735031f
Merge pull request #2117 from hathach/etm_trace
...
Etm trace
2023-06-21 00:24:26 +07:00
hathach
77e01448e2
ide settings
2023-06-20 16:41:51 +07:00
hathach
c789cfe518
use system_nrf5x.c built-in support for ETM with ENABLE_ETM
2023-06-20 16:13:10 +07:00
hathach
19c99d3b42
etm trace for nrf52840
2023-06-20 13:19:08 +07:00
hathach
1b658ae109
add etm trace for mcb1800
...
clean up other ide setting
2023-06-20 13:12:12 +07:00
Angel Molina
3d685fe7f2
Add CDC+UAC2 composite device example for Pico
...
Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
2023-06-19 16:00:03 +05:30
hathach
7dc6829519
enable etm trace support for h743 eval
2023-06-19 16:33:47 +07:00
dsugisawa-mixi
5e78f08a24
fix example of bare_api, check empty string
2023-06-17 20:04:46 +09:00
Ha Thach
13bb132044
Merge pull request #2113 from hathach/correct-iar-build
...
correct cmake iar build
2023-06-16 19:53:01 +07:00
hathach
268ce0287f
correct cmake iar build
2023-06-16 19:39:03 +07:00
Ha Thach
74624381b3
Merge pull request #2112 from hathach/minor-naming-opt-mcu-imxrt
...
Minor naming opt mcu imxrt
2023-06-16 18:57:26 +07:00
hathach
1419091923
update h7 to cmake, and move iar build to cmake
2023-06-16 16:47:32 +07:00
hathach
e754795d3a
fix build warnings
2023-06-16 15:29:34 +07:00
hathach
a7f330fa94
fix build, update freertos config for cmake
2023-06-16 14:17:25 +07:00
hathach
65d6acdbfa
fix build warnings
2023-06-16 12:02:42 +07:00
hathach
8af8869d3b
renam OPT_MCU_MIMXRT to OPT_MCU_MIMXRT1XXX
...
fix build util with makefile
2023-06-16 11:26:38 +07:00
hathach
96f7cd09dc
remove legacy transdimension driver
2023-06-16 10:45:59 +07:00
Ha Thach
433ffe2152
Merge pull request #1985 from kkitayam/uvc_bulk
...
Add the capability for video class to handle a bulk endpoint in the streaming interface.
2023-06-15 16:28:33 +07:00
Ha Thach
81450bc71d
Merge pull request #2110 from hathach/chipidea-fs
...
Chipidea fs
2023-06-15 14:18:00 +07:00
hathach
1a37777f59
fix ci with win/mac
2023-06-15 13:11:21 +07:00
hathach
d70403f1f4
refactor khci to chipidea fs driver for device (host is not yet)
2023-06-15 13:06:27 +07:00
hathach
bce282186e
update kinetis kl to use mcx-sdk, also add cmake support
...
note: cdc_msc_freertos built but does not seems to work with kl
2023-06-14 22:36:44 +07:00
Ha Thach
4e61eb6d9e
Merge pull request #2109 from hathach/typec-rename
...
Typec rename
2023-06-14 16:47:20 +07:00
hathach
31a66eb5bc
mcx neeed helps to locate rtt control block
2023-06-14 15:33:57 +07:00
hathach
8b8b9690ad
update segger rtt to fix cast align
2023-06-14 12:01:21 +07:00
hathach
05969d2a58
rename typec driver
2023-06-14 11:07:58 +07:00
hathach
a88d7c7c74
ide setting
2023-06-13 17:47:53 +07:00
Ha Thach
365c4169a5
Merge pull request #2107 from hathach/fix-usbh-enum-issue
...
fix usbh issue when device genreate multiple attach/detach/attach when plugging in
2023-06-13 17:32:55 +07:00
hathach
9593ab7acc
fix usbh issue when device genreate multiple attach/detach/attach when plugging in
2023-06-13 16:40:29 +07:00
Ha Thach
bbc76e7777
Merge pull request #2104 from hathach/g4-pd
...
Initial support for USB PD stack
2023-06-12 23:14:48 +07:00
hathach
41801c2a6b
add typec example to cmake
2023-06-12 17:12:25 +07:00
hathach
d2d486dced
update docs
2023-06-12 17:06:04 +07:00
hathach
7a1179a4e1
tested with 9V request
2023-06-12 17:01:54 +07:00
hathach
6941a5af81
wrap up initial PD support for G4
2023-06-12 16:42:27 +07:00
hathach
c28503060c
ad pd_types.h
2023-06-12 14:57:50 +07:00
hathach
debde4cc97
response with request safe5v, get passed PS_READY
2023-06-12 12:14:55 +07:00
Ha Thach
39a64334aa
Merge pull request #2100 from kilograham/top_broken
...
movement of TOP in c0ecf8b5
broke RP2040 SDK build
2023-06-10 17:24:23 +07:00
hathach
bb4fb0543b
able to parse SOURCE_CAP message from dfp
2023-06-09 19:38:50 +07:00
hathach
912802456b
move protocol message to stack, disable battery in PWR's CR3
...
there is still issue with CC1/CC2 pull down resistor and vstate is not
correct.
2023-06-09 18:15:28 +07:00
Eugene Kliuchnikov
0833806980
Fix typos
2023-06-08 15:38:30 +02:00
hathach
8181d470e5
enable DMA for both pd rx, tx
2023-06-08 18:55:54 +07:00
hathach
9c2a8490af
dma rx works well
2023-06-08 13:37:37 +07:00
hathach
fc761953b3
define tuc_int_handler() to empty if TUC not enabled
2023-06-08 09:34:15 +07:00
hathach
7fd0a17bc3
default CFG_TUC_ENABLED to 0
2023-06-08 09:11:29 +07:00
graham sanderson
0493983a8f
movement of TOP in c0ecf8b5
broke RP2040 SDK build
2023-06-07 14:46:14 -05:00
Ha Thach
aaec12a3fb
Merge pull request #2077 from abakosh/renesas_packed
...
fix(RA Host Portable): git rid of the IAR warnings for packed
2023-06-07 19:00:41 +07:00
hathach
9b7dee563e
able to response with good crc
2023-06-07 18:57:48 +07:00
Aladdin Bakosh
8bb012e50b
fix(RA): static assert RUSB2 register
2023-06-07 12:01:59 +02:00
hathach
b893f1d541
inital support for usb typec and pd example
2023-06-07 15:10:40 +07:00
hathach
914e82b25d
able to receive first PD message
2023-06-07 09:36:37 +07:00
hathach
e02eee7477
revert board flash latency to 8
2023-06-07 00:14:22 +07:00
hathach
23f7130ae4
update rtt to rev 25842
2023-06-07 00:07:58 +07:00
hathach
b3fda4a354
able to get usbpd irq handler
...
- handle cc1, cc2 voltage changes
- get order set, rx message end interrupt
- add segger rtt support for cmake
2023-06-06 23:55:33 +07:00
hathach
a70978e057
clean up
2023-06-05 19:53:40 +07:00
hathach
f6a45a7aab
clean up
2023-06-05 15:41:45 +07:00
Martino Facchin
2b735ee8f5
renesas_ra: fix wrong ifdef
...
Since CFG_TUSB_RHPORT1_MODE is always defined now for backwards compatibility
2023-06-05 09:48:06 +02:00
Martino Facchin
cdbd3a0b4e
Merge remote-tracking branch 'mainline/master' into HEAD
...
Update fsp to 4.0.0
2023-06-05 09:12:50 +02:00
Martino Facchin
cdae66c837
renesas_rx: fix compilation on latest GCC
...
__CCRX__ only applyes to version 4 of RX family compiler http://tool-support.renesas.com/autoupdate/support/onlinehelp/csp/V4.01.00/CS+.chm/Compiler-CCRX.chm/Output/ccrx04c0201y.html
__RX__ is one of the macros exported by latest gcc (gcc_8.3.0.202305_rx_elf)
2023-06-05 09:04:55 +02:00
Aladdin Bakosh
268ab5863a
fix(RA Host Portable): git rid of the IAR warnings for packed
2023-06-02 14:14:57 +02:00
Ha Thach
c7686f8d5e
Merge pull request #2092 from hathach/stm32g4
...
Stm32g4
2023-06-02 17:07:28 +07:00
hathach
2016ad72f3
fix iar ci
2023-06-02 16:21:49 +07:00
hathach
11fb837b51
fix ci
2023-06-02 16:15:26 +07:00
hathach
c2bc363f06
build g0 g4 iar cmake
2023-06-02 16:11:00 +07:00
hathach
bb795e6a5e
update cmake to build with IAR for g0 and g4
2023-06-02 15:26:16 +07:00
hathach
fcf7791454
add IAR support for G0 with cmake
2023-06-02 13:27:18 +07:00
hathach
e7090c7514
cmake refactor
2023-06-02 11:42:17 +07:00
hathach
ba3d71b615
fix usb clock for dpow1
2023-06-02 10:19:46 +07:00
Dave Nadler
e8b7f21af6
For FreeRTOS kernel-aware debugging, when queue registry is enabled, label tinyUSB queue
2023-06-01 12:57:44 -04:00
Ha Thach
002cb9289d
Merge pull request #2089 from DRNadler/master
...
Fix diagnostic format string (missing %u)
2023-06-01 22:56:18 +07:00
hathach
c3bde520cc
add new b_g474e_dpow1 board
2023-06-01 22:16:30 +07:00
Dave Nadler
70a92291fe
Fix diagnostic format string (missing %u)
2023-06-01 10:58:03 -04:00
Ha Thach
cbbd858be4
Merge pull request #1942 from HubertD/feature/STM32G0
...
STM32G0 support
2023-06-01 21:34:39 +07:00
hathach
dc3afdbf3b
add note for B0 clock variant
2023-06-01 20:52:48 +07:00
hathach
c750030f7a
add freertosconfig for g0, add cmake stlink, add g0 to cmake ci
2023-06-01 17:09:00 +07:00
hathach
6280cba6e8
tested with g0b1 nucleo
2023-06-01 16:52:58 +07:00
hathach
6b44d8fb55
add cmake support for g0, exlicitly call HAL_Init() and also HAL_IncTick() in systick irq, fix button active state.
2023-06-01 15:58:02 +07:00
hathach
af59864ab5
Merge branch 'master' into feature/STM32G0
2023-06-01 13:28:28 +07:00
Ha Thach
77714e02ca
Merge pull request #2088 from hathach/minor-cleanup
...
add lto for cmake
2023-06-01 13:22:09 +07:00
hathach
62b2d05d34
skip set CMAKE_EXECUTABLE_SUFFIX for espressif port
2023-06-01 12:50:32 +07:00
hathach
19a597bcae
add lto for cmake
2023-06-01 12:36:08 +07:00
Ha Thach
ddc029ce54
Merge pull request #2016 from ipopov/master
...
Even when we get an empty "status change" interrupt from the hub, schedule another interrupt poll
2023-05-29 13:47:23 +07:00
hathach
20ef6c4ef7
slightly clean up
2023-05-29 13:29:11 +07:00
hathach
5c428d35a6
check status_change is not zero first
2023-05-29 13:27:20 +07:00
Ivo Popov
8ad024e51b
Even when we get an empty "status change" interrupt from the hub, schedule another interrupt poll.
...
During enumeration, when there are multiple devices attached to the
hub as it's plugged into the Pi Pico, enumeration hangs, because we
get a "status change" callback with value zero. With this patch, we
retry several times on "zero" status change callbacks, until
eventually we succeed.
This is the cheapo hub that exhibits this behavior, but I assume it's
not the only one: https://www.amazon.com/gp/product/B083RQMC7S .
While debugging this, I consulted the implementation in the Linux
kernel. There, hub setup explicitly checks each port individually,
before starting to depend on "status change" interrupts:
https://elixir.bootlin.com/linux/latest/source/drivers/usb/core/hub.c#L1133 .
We probably should do something like that here, but it's a much bigger
change.
2023-05-29 13:18:16 +07:00
gitlab
acfaa4494f
Fixes bug in tuh_msc_ready
2023-05-28 15:40:01 +01:00
Ha Thach
069e1ef84f
Merge pull request #2084 from hathach/more-build2
...
More build2
2023-05-26 20:23:25 +07:00
hathach
59ad5c59df
fix artifacts location
2023-05-26 18:58:21 +07:00
hathach
4bd02fb04d
more test
2023-05-26 18:54:14 +07:00
hathach
c88e7481be
retry hw test
2023-05-26 17:15:54 +07:00
hathach
7fb74a33a1
forgot to move hw test
2023-05-26 16:44:29 +07:00
hathach
7ac85d08c7
move lpc18 and rp2040 to cmake workflow since rp2040 often failed randomly with make
2023-05-26 16:37:47 +07:00
hathach
05cc342dfa
update deps, rename kinetis_k32 to k32l
2023-05-26 15:45:55 +07:00
hathach
1d857605b7
use get_deps.py
2023-05-26 15:25:55 +07:00
hathach
b262164a35
fix build with net_lwip_webserver example
2023-05-26 15:16:18 +07:00
hathach
c0ecf8b50f
move set TOP to family_support.cmake
2023-05-26 14:56:22 +07:00
Ha Thach
23c8670e79
Merge pull request #2081 from hathach/more-build-system
...
More build system
2023-05-25 21:54:31 +07:00
hathach
4c9605910f
update cmake with freertos
2023-05-25 21:27:26 +07:00
hathach
5fea010406
add family_support_configure_common()
2023-05-25 17:27:05 +07:00
hathach
26d05d7fc9
fix issue with ftdi host driver with status bytes
...
add workflow_dispatch to all ci workflow
2023-05-25 16:53:32 +07:00
hathach
625c27ca58
add workflow_dispatch for manual trigger
2023-05-25 16:20:58 +07:00
hathach
7a3d7a7c23
cmsis_5 missing mcx and imxrt
2023-05-25 16:17:41 +07:00
hathach
5a0c2bd638
update get_deps.py to support geting family as argument
2023-05-25 16:11:57 +07:00
Ha Thach
eedafb23f7
Merge pull request #2063 from abakosh/develop
...
fix(RA Host Portable): implement missing function __builtin_ctz(x)
2023-05-24 20:11:50 +07:00
Aladdin Bakosh
57d2eb603b
fix(RA Host Portable): implement missing function __builtin_ctz(x) for IAR
2023-05-24 11:38:40 +02:00
Ha Thach
1ef820ecfe
Enhance chipidea ( #2075 )
...
* update chipidea dcd, remove manual ep_count and use DCCPARAMS to get number of endpoint instead
* add dcd dcache for chipidea
* add cmake for lpc18
* add makefile build for mcx
* use fork of mcu sdk
* fix ci build with nrf
* flash rp2040 with openocd
2023-05-23 21:45:00 +07:00
Ha Thach
c998e9c60b
Merge pull request #2069 from hathach/minor-build-system
...
Minor build system
2023-05-19 18:39:21 +07:00
hathach
9f0bae4c3f
fix freertos build with nrf
2023-05-19 18:04:08 +07:00
hathach
49d8d27770
improve flash target
2023-05-19 16:27:07 +07:00
hathach
270136e84a
adding cpu core .mk for makefile
...
fix cortex m33 for nrf5340 dk
2023-05-19 16:02:26 +07:00
hathach
e8dd200fed
move cmake folder to tools/
2023-05-19 14:46:39 +07:00
Ha Thach
6ecd480006
Merge pull request #2061 from hathach/imx-usbhost
...
iMX.RT EHCI add dcache support and other fixes + refactor
2023-05-19 14:18:07 +07:00
hathach
7211dd18b4
more dcache fix
2023-05-19 13:42:26 +07:00
hathach
5dae5e1292
ehci fix dcache clean when control endpoint failed
2023-05-19 13:32:49 +07:00
hathach
f26a93908e
only clean/invalidate dcache on imxrt if memory is not in DTCM
2023-05-19 10:56:52 +07:00
hathach
f22d8ee3b9
add rt1060 jlink config
2023-05-18 16:46:02 +07:00
hathach
ec4bd39a92
refactor ehci: add attached_buffer for dcache invalidate for IN transfer
2023-05-18 16:41:06 +07:00
hathach
27acaa013b
refactor ehci, since usbh only queue 1 TD per queue head
2023-05-18 15:44:08 +07:00
hathach
49e2aabc81
EHCI more improvement
...
- more dcache clean/invalidate
- extract init_periodic_list()
- improve isr list handling
2023-05-18 13:45:38 +07:00
hathach
a0aea52a11
more cache, fix an similar issue with OHCI when removing an queue head
2023-05-18 12:39:53 +07:00
hathach
e4f4ad5bc3
use weak local for dcache function to skip if()
2023-05-18 10:21:11 +07:00
hathach
a3e017bfd2
EHCI adding dcahe support, passing enumertaion
2023-05-18 10:04:48 +07:00
Martino Facchin
32f9f452af
renesas: provide default for CFG_TUSB_RHPORT1_MODE
...
Should fix CI failure for Renesas RX family
2023-05-17 12:13:28 +02:00
hathach
eb89df4115
adding hcd_dcache_clean/hcd_dcache_invalidate
2023-05-17 16:14:35 +07:00
hathach
a9aa0e3a1a
fix error on EHCI causes xfer error in non-queued qhd which cause memory fault
2023-05-16 11:10:44 +07:00
hathach
1e998ce3bd
usbd: fix control transfer issue for chipidea hs when previous status and new setup complete in the same isr frame
...
change usbd edpt busy/stalled/claimed value to 0/1 instead of
(true/false) since they are 1-bit field.
2023-05-16 11:09:23 +07:00
hathach
2c48050993
add various check for disconncted device, also fix #1511 un-roll recursive hub removal with usbh queue
2023-05-16 11:09:22 +07:00
hathach
1c4f22a54c
EHCI: fix xfer failed with disconnected device as stalled
...
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if
not defined
- change QHD_MAX for EHCI, should be user configurable and more
optimized in the future
2023-05-16 11:09:22 +07:00
hathach
206d63e038
correct EHCI reporting failed xfer (instead of stalled) when device is unplugged
2023-05-16 11:09:21 +07:00
Ha Thach
e2d3c0b2d3
Merge pull request #2065 from hathach/cmake-lpc55
...
add support for nrf5340 application core with pca10059
2023-05-16 11:04:07 +07:00
hathach
116a258858
fix nrf build
2023-05-16 10:14:00 +07:00
hathach
792cf95f2d
revert ci gcc to 11.2, update nrfx to version 2.11
2023-05-15 23:35:29 +07:00
hathach
d7175ad834
update nrf cmake and make to support nrf5340 (pca10095)
2023-05-15 23:34:24 +07:00
Ha Thach
9f5b08dc93
Update build_arm.yml
...
try bump up gcc to 12
2023-05-15 14:39:49 +07:00
hathach
9fd0fee458
adding nrf
2023-05-15 14:25:42 +07:00
Ha Thach
a57ba87859
revert family.mk
2023-05-13 13:24:00 +07:00
hathach
dbcef41f95
add support for other lpc55 boards
2023-05-13 13:24:00 +07:00
hathach
2c745d1b1e
able to build lpc55
2023-05-13 13:23:59 +07:00
HiFiPhile
f1bef8d8dd
Merge pull request #2057 from abakosh/develop
...
fix(iar_template.ipcf): add missing portable links, and delete the us…
2023-05-12 13:15:19 +02:00
HiFiPhile
9c1918fe46
Remove deprecated dcd_synopsys
2023-05-12 13:13:42 +02:00
Ha Thach
aaff27d220
Merge pull request #2058 from hathach/cmake-imxrt
...
Add Cmake for imxrt and Fix EHCI PortSC issue
2023-05-10 16:06:04 +07:00
hathach
eaa159c0a6
more doc build fix
2023-05-10 15:52:33 +07:00
hathach
137d516882
try to fix build doc
2023-05-10 15:32:39 +07:00
hathach
1e91fc97e2
remove imxrt from makebuild
2023-05-10 14:59:23 +07:00
hathach
c4b2fed8bd
forgot sudo
2023-05-10 13:51:45 +07:00
hathach
c3770019cb
install ninja
2023-05-10 13:50:24 +07:00
hathach
8e3bdd2391
add python script to help building cmake, build all imxrt boards with ci
2023-05-10 13:09:15 +07:00
hathach
4c796b89d8
try to build with cmake on ci
2023-05-10 11:20:26 +07:00
hathach
c0e4c02b9d
allow imxrt build with dual exmaples
2023-05-10 11:15:11 +07:00
hathach
bc579c045e
skip link option --print-memory-usage for renesas rx since it does not support this option
2023-05-09 21:39:10 +07:00
hathach
77f0726361
fix ehci issue with portsc when enable port power and port reset
...
fix attached device not regconized if attached before power on
2023-05-09 17:32:14 +07:00
hathach
04c759028a
simplify cmake target, remove -bsp
2023-05-09 10:02:44 +07:00
Aladdin Bakosh
4be7546372
fix(iar_template.ipcf): add missing portable links, and delete the usbh_control.c from the list
2023-05-08 15:57:34 +02:00
hathach
fd50be2e62
change imxrt board_uart_read() to non-blocking
...
simple host seems to work
2023-05-08 19:43:48 +07:00
hathach
4fc4f35a8a
fix linking missing ivt symbol for imxrt with cmake
...
changed device port = 0, host port =1 for imxrt 1060 and 1064
2023-05-08 17:25:47 +07:00
hathach
654f182176
build host examples with imx
2023-05-08 00:24:48 +07:00
hathach
6945c594d5
update all device cmake example for imx
2023-05-07 22:09:08 +07:00
hathach
f15f79df5d
cmake work well with imxrt
2023-05-06 15:14:54 +07:00
hathach
cda5ab8b25
more temp work
2023-05-05 19:15:19 +07:00
hathach
97ee40fd7b
add clion files
2023-05-05 16:51:50 +07:00
hathach
8a9d2b4b75
wip
2023-05-04 23:29:37 +07:00
Martino Facchin
161c95f1b7
renesas: update fsp to 4.0.0
2023-05-04 14:42:32 +02:00
hathach
629717cd13
fix cmake build
2023-05-04 16:38:06 +07:00
Martino Facchin
6ff62c0fe8
renesas: add fallback for targets not defining CFG_TUSB_RHPORT*_MODE
2023-05-03 11:47:41 +02:00
Martino Facchin
a349869906
renesas_ra: fix existing boards support
2023-05-03 10:06:58 +02:00
Martino Facchin
5f7e7b4b0a
renesas_ra: support RA2A1 (FS only)
2023-05-03 10:06:13 +02:00
Martino Facchin
4afed62646
renesas_ra: host: handle retry on attach()
2023-05-03 10:05:29 +02:00
Martino Facchin
be54870c3b
renesas_ra: add support for HS port
2023-05-03 10:02:24 +02:00
Ha Thach
5e023fa2ca
Merge pull request #2051 from hathach/improve-serial-host
...
Improve serial host
2023-04-28 22:59:57 +07:00
hathach
1763eede48
more update to host serial API
2023-04-28 22:14:14 +07:00
hathach
fb5fe3360f
allow call tuh cdc with blocking (callback = NULL)
...
- tuh_cdc_set_control_line_state()
- tuh_cdc_set_baudrate()
- tuh_cdc_set_line_coding()
2023-04-28 21:50:54 +07:00
hathach
0a43a7b418
improve host serial drivers
...
- tuh_control_xfer() update xfer result to user_data if complete
callback = NULL (sync/blocking)
- refactor host serial driver for acm/ftdi/cp210x
2023-04-28 19:13:25 +07:00
Ha Thach
2afef458be
Merge pull request #2030 from slc-tl/patch-1
...
Update porting.rst
2023-04-28 11:36:14 +07:00
hathach
090078542f
update osal note
2023-04-28 11:34:12 +07:00
Ha Thach
a41ab41b8b
Merge pull request #2047 from jbtheou/master
...
cdc: fix line_coding aligment
2023-04-28 11:25:53 +07:00
hathach
190acc1fb0
add aligned(4) for cdc_line_coding_t
2023-04-28 11:12:03 +07:00
Jean-Baptiste Theou
8f47976639
cdc: fix line_coding aligment
...
While calling tud_cdc_n_get_line_coding, the structure is copied into
the destination.
Dump of assembler code for function tud_cdc_n_get_line_coding:
0x000193f4 <+0>: mov.w r2, #2112 @ 0x840
0x000193f8 <+4>: ldr r3, [pc, #20 ] @ (0x19410
<tud_cdc_n_get_line_coding+28>)
0x000193fa <+6>: mla r0, r2, r0, r3
=> 0x000193fe <+10>: ldr.w r3, [r0, #6 ]
0x00019402 <+14>: str r3, [r1, #0 ]
On some platform (tested on LPC55S28), the address needs to be 4-bytes
aligned. Without this, the address is
(gdb) p &_cdcd_itf.line_coding
$3 = (cdc_line_coding_t *) 0x40100006 <_cdcd_itf+6>
which leads to a HardFault. With this fix
(gdb) p &_cdcd_itf.line_coding
$5 = (cdc_line_coding_t *) 0x40100008 <_cdcd_itf+8>
and the function can be called properly
Signed-off-by: Jean-Baptiste Theou <jb@thing.com>
2023-04-27 15:48:15 -10:00
Ha Thach
e3b3229d61
Merge pull request #2046 from hathach/add-usb2uart-host-driver
...
Add usb2uart serial host driver
2023-04-28 00:06:08 +07:00
hathach
732686cc10
add tuh_cdc_set_baudrate()
2023-04-27 23:22:10 +07:00
hathach
ee58278ed2
add code to calculate divisor from baudrate for ftdi
2023-04-27 23:08:25 +07:00
hathach
8214f0f497
clean up
2023-04-27 17:40:08 +07:00
hathach
c10f52b237
forgot to add cp210x header
2023-04-27 17:39:02 +07:00
hathach
438387be8c
more refactor
2023-04-27 17:32:56 +07:00
hathach
86f6fd17ed
cp210x seems to work well
2023-04-27 17:09:21 +07:00
hathach
a32ef1cde1
more host serial refactor
2023-04-27 16:32:42 +07:00
hathach
9698a088db
refactor acm function
2023-04-27 15:29:44 +07:00
hathach
85d9925d24
refactor ftdi driver
2023-04-27 15:20:04 +07:00
hathach
293a6222f8
rename ftdi_host to ftdi_sio
2023-04-27 11:08:42 +07:00
hathach
cf95b44001
enable CDC FTDI
2023-04-26 22:36:17 +07:00
hathach
45169d833d
hacky, but ftdi work with hard code baudrate = 9600
2023-04-26 22:36:17 +07:00
hathach
1a229f3ce2
fix pio vbus typo
2023-04-26 22:36:17 +07:00
Ha Thach
4c7fd1648e
Merge pull request #2043 from hathach/fix-nxp-build
...
fix build with nxp since mcux-sdk from 2.13.0 remove CMSIS folder
2023-04-26 22:33:28 +07:00
hathach
ad39833ea4
fix build with nxp since mcux-sdk from 2.13.0 remove CMSIS folder
2023-04-26 22:10:13 +07:00
Ha Thach
908e23d109
Merge pull request #2040 from hathach/update-imxrt-deps
...
bump up imxrt mcux-sdk to 2.13.1
2023-04-24 16:59:05 +07:00
hathach
841a62170e
bump up imxrt mcux-sdk to 2.13.1 commit f357a1150f6cf6c6b844f53f2d426bfb3e649850
2023-04-24 16:54:26 +07:00
Ha Thach
964e7ebf21
Merge pull request #2013 from tannewt/imx_1042
...
Handle iMX RT 1042 usb naming
2023-04-24 16:53:24 +07:00
Ha Thach
8ede566c41
Merge pull request #2039 from hathach/add-cmake-build
...
Add cmake build
2023-04-24 16:43:40 +07:00
hathach
a4d5d51549
add wip note
2023-04-24 16:24:06 +07:00
hathach
5254202b20
minor update
2023-04-24 11:54:58 +07:00
hathach
9858d45815
build all freertos, not able to build net lwip due to lack of sio_open()
2023-04-21 22:07:58 +07:00
hathach
11e1aff389
update freeRTOS kernel to latest for library cmake
...
add per family freeRTOSConfig.h also make changes to build with
freertos_kernel cmake
- hard coded configPRIO_BITS based on family
- change configSUPPORT_STATIC_ALLOCATION to 0,
configSUPPORT_DYNAMIC_ALLOCATION to 1
- enable configRECORD_STACK_HIGH_ADDRESS for tracing
- enable INCLUDE_xTaskGetCurrentTaskHandle which is required to compile
stream_buffer (although we don't use it).
2023-04-21 20:55:44 +07:00
hathach
6daa135201
update most examples cmake to build with imxrt
2023-04-21 18:23:40 +07:00
hathach
0afe1b3684
example run well with cmake for imxrt
2023-04-21 18:10:28 +07:00
Ha Thach
0871238cac
Merge pull request #2024 from jfedor2/sie_ctrl_fix
...
[rp2040] Make writes to SIE_CTRL aware of concurrent access
2023-04-21 12:17:57 +07:00
Jacek Fedorynski
9bf97e3e52
[rp2040] Make writes to SIE_CTRL aware of concurrent access
...
This commit makes it so that when setting the START_TRANS bit in the
SIE_CTRL register, along with some other bits, we first set all the
other bits, then wait some cycles, and then set the START_TRANS bit.
Doing so protects against a situation where the USB controller is
reading the register at the same time and gets an incorrect value.
This mirrors the procedure already applied to buffer control
registers.
2023-04-20 20:23:31 +02:00
hathach
2ac289685a
clean up
2023-04-20 16:55:48 +07:00
hathach
b42d3e431c
board test running with cmake
2023-04-20 16:43:00 +07:00
hathach
fab48e5bcc
adding cmake build for imxrt1010
2023-04-20 14:09:38 +07:00
Ha Thach
9771c76f25
Merge pull request #2033 from ReimuNotMoe/master
...
Fix compatibility with the latest Microchip XC16 compiler
2023-04-19 12:53:23 +07:00
Reimu NotMoe
c0674142a8
Merge branch 'hathach:master' into master
2023-04-18 23:20:25 +08:00
Reimu NotMoe
9002dc7067
Use __GNUC__ macro to determine if __has_attribute is supported
2023-04-18 17:27:42 +08:00
Ha Thach
c3a60ed355
Merge pull request #1920 from mikee47/fix/midi-definition
...
MIDI_CIN_NOTE_ON definition transposed with MIDI_CIN_NOTE_OFF
2023-04-18 10:43:52 +07:00
Mengsk
412b557a08
Cleanup unnecessary code for 16bit access.
2023-04-17 15:34:20 +02:00
Reimu NotMoe
fa8f3731c1
Implement TU_BSWAP{16,32} correctly for Microchip XC16
2023-04-17 21:02:12 +08:00
Reimu NotMoe
d97b6d57de
Fix compatibility with the latest Microchip XC16 compiler
2023-04-17 20:20:22 +08:00
slc-tl
8c780a9564
Update porting.rst
...
Adds more in depth documentation of how tud_task does not need to be polled in implementations that use an RTOS / scheduler.
2023-04-14 17:07:33 -06:00
HiFiPhile
818bda18c2
Fix FIFO transfer and buffer alignment.
2023-04-14 23:37:07 +02:00
HiFiPhile
2f2c8ce9ec
Fix GCC build.
2023-04-14 21:00:55 +02:00
HiFiPhile
723e21ad6a
Merge pull request #2025 from dauc/master
...
Fix spelling configuraiton->configuration
2023-04-14 18:48:03 +02:00
HiFiPhile
71d2ccd78f
Fix CI
2023-04-14 17:29:32 +02:00
HiFiPhile
413b0a7da5
Use PLL clock.
2023-04-14 17:12:47 +02:00
HiFiPhile
0ea23904c4
Add stm32g0b1nucleo BSP.
2023-04-14 16:07:04 +02:00
HiFiPhile
152a22f3ee
Update lib & template.
2023-04-14 16:05:56 +02:00
Devin Auclair
16ed10a6e4
Fix spelling configuraiton->configuration
2023-04-14 12:48:59 +00:00
HiFiPhile
cbf4b1aec8
Merge branch 'master' of https://github.com/hathach/tinyusb into pr1942
2023-04-14 13:16:52 +02:00
HiFiPhile
28817a7150
Merge pull request #2015 from tyustli/tyustli_uac
...
fix audio comment error
2023-04-08 16:25:39 +02:00
HiFiPhile
95dec2ac26
Fix case.
2023-04-08 15:39:33 +02:00
tyustli
d4c7c9871e
fix audio comment error
2023-04-08 18:14:10 +08:00
Scott Shawcroft
2cda9b60c9
Handle iMX RT 1042 usb naming
2023-04-06 15:45:23 -07:00
Ha Thach
3336fbafe4
Merge pull request #2011 from hathach/add-hid-host-ready
...
Add hid host send/recieve ready
2023-04-06 12:16:17 +07:00
hathach
6db24e0dba
implement tuh_hid_receive_ready() and tuh_hid_send_ready()
2023-04-06 11:16:28 +07:00
hathach
106084289d
add define for vendor_flush() to write_flush() for backward compatible
2023-04-06 11:15:57 +07:00
Ha Thach
5f327dd49f
Merge pull request #2006 from hathach/cmake
...
Cmake
2023-04-06 00:39:39 +07:00
Ha Thach
f7aa716a61
Merge pull request #2000 from jncronin/stm32l5
...
Add STM32L5 support - no OTG similar to some L4s
2023-04-04 16:30:47 +07:00
Ha Thach
4c5104f6d6
Merge pull request #1989 from epatstarkey/vendor_device_race_condition_fix
...
Vendor device race condition fix
2023-04-04 12:27:22 +07:00
Ha Thach
8d07f5e733
Merge pull request #1999 from raiden00pl/master
...
openh743i: initialize USB3300 reset pin
2023-04-04 11:27:19 +07:00
Ha Thach
44fab77c3d
Update bug_report.yml
2023-04-04 11:02:20 +07:00
John Cronin
718bcdb8bc
Add STM32L5 support - no OTG similar to some L4s
2023-04-03 13:56:16 +01:00
hathach
4f96a1f3b2
more fix
2023-04-03 18:05:22 +07:00
hathach
5ef260d5fc
fix build for esp32
2023-04-03 17:44:05 +07:00
raiden00pl
f2faf72f7f
openh743i: initialize USB3300 reset pin
2023-04-03 12:27:33 +02:00
hathach
1911c613c7
add some .idea configuration
2023-04-03 11:34:00 +07:00
hathach
160e2a8aeb
skip .idea
2023-04-03 11:07:48 +07:00
epatstarkey
1372d4e4d5
Remove trailing whitespace
2023-03-31 12:58:51 -05:00
epatstarkey
d7d4e7b527
Update samples
2023-03-30 11:34:39 -05:00
hathach
cf7aad790c
more esp32 cmake clean up
2023-03-30 11:37:36 +07:00
hathach
641613c428
update all cmake for esp32 build
2023-03-30 10:41:11 +07:00
hathach
96718b7ca0
merge s2 and s3, update cmake for espressif, add tinyusb_src as component
2023-03-30 00:31:26 +07:00
hathach
99315bcca3
adding more cmake support
2023-03-29 14:36:43 +07:00
epatstarkey
1fb2a2f1bd
Update vendor_device.c
2023-03-28 14:01:33 -05:00
epatstarkey
876f49f6ad
Update vendor_device.c
2023-03-28 14:00:23 -05:00
epatstarkey
faaed198b4
Update vendor_device.h
2023-03-28 13:59:59 -05:00
kkitayam
5ce60c5d20
Add MJPEG descriptor for bulk transfer
2023-03-26 21:22:52 +09:00
kkitayam
993b8d6686
Add state variable
2023-03-26 21:18:00 +09:00
kkitayam
389babf20b
Add descriptor for a bulk endpoint as a streaming endpoint
2023-03-25 21:25:13 +09:00
kkitayam
e508831561
Update handle streaming interface
2023-03-25 21:25:13 +09:00
kkitayam
78732d6733
Fix streaming interface handling
2023-03-25 21:25:12 +09:00
kkitayam
97f9321e1d
Add handling for bulk EPs
2023-03-25 21:25:12 +09:00
Ha Thach
5add4c97fa
Merge pull request #1979 from hathach/fix-cdc-host-unsupported-line-request
...
fix cdc host enumeration issue when device does not support line request
2023-03-24 17:58:34 +07:00
hathach
df5f60b6d6
fix shadow warning
2023-03-24 17:36:29 +07:00
hathach
b054229780
fix cdc host enumeration issue when device does not support line request
2023-03-24 17:26:30 +07:00
Ha Thach
59cbfbbdbe
Merge pull request #1971 from MattMills/class_net_net_device_mac_address_shouldnt_be_consts
...
Update net_device.h to make MAC addresses not const.
2023-03-24 16:48:33 +07:00
Ha Thach
f640163ee9
Merge pull request #1969 from hathach/fix-tmc488-bit-order-1658
...
Fix tmc488 bit order 1658
2023-03-24 14:41:57 +07:00
Ha Thach
ad7bacbfd8
Merge pull request #1978 from hathach/fix-align-host
...
separate CFG_TUSB_MEM_SECTION/ALIGN to host and device specific macros
2023-03-24 14:41:01 +07:00
hathach
76dae8d8c1
update host example to use new tuh mem macros
2023-03-24 14:08:57 +07:00
hathach
71fb6469d4
separate CFG_TUSB_MEM_SECTION and CFG_TUSB_MEM_ALIGN to
...
- CFG_TUD_MEM_SECTION and CFG_TUD_MEM_ALIGN
- CFG_TUH_MEM_SECTION and CFG_TUH_MEM_ALIGN
- fix missing mem section and align for host
2023-03-24 14:05:21 +07:00
Ha Thach
7440782afb
Merge pull request #1975 from hathach/update-doc
...
update doc and generate deps list
2023-03-23 16:39:19 +07:00
hathach
f80d11301e
update doc and generate deps list
2023-03-23 16:33:35 +07:00
Ha Thach
cd0fdc3264
Merge pull request #1974 from hathach/pico-pio-name
...
rename and change default pio usb pin to adafruit feather usb host
2023-03-23 14:22:39 +07:00
hathach
4cee79af27
rename and change default pio usb pin to adafruit feather usb host
2023-03-23 13:08:09 +07:00
Matt Mills
033627ee41
Remove const from tud_network_mac_address in example and test files
2023-03-22 07:30:46 -06:00
Matt Mills
4274cab395
Update net_device.h
2023-03-22 07:18:27 -06:00
hathach
096da11e88
more update
2023-03-22 17:01:04 +07:00
hathach
c85f46c4ab
fix bitorder in usbtmc_response_capabilities_488_t
2023-03-22 16:59:57 +07:00
Ha Thach
07976ad26d
Merge pull request #1968 from hathach/refactor-hid-host
...
Refactor hid host
2023-03-22 10:37:06 +07:00
hathach
f27486e19a
add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new tuh_itf_info_t
2023-03-22 10:00:42 +07:00
hathach
f8a5cde3c7
add tuh_task_event_ready(), better implement blocking control transfer for rtos
2023-03-22 09:23:44 +07:00
hathach
0921edaf59
use tud_inited() instead of tusb_inited()
2023-03-22 09:23:11 +07:00
hathach
a97f39151e
fine tune CFG_TUH_HID value
2023-03-22 08:33:30 +07:00
hathach
d22fc550c7
change meaning of CFG_TUH_HID to total number of HID interfaces supported.
...
- previously CFG_TUH_HID is max number of interfaces per device which is
rather limited and consume more resources than needed.
- change hid host instance in API to index
2023-03-21 21:04:06 +07:00
hathach
8a0b17598c
add osal_task_delay() for control blocking
2023-03-21 18:15:45 +07:00
hathach
d34508a316
add note for blocking tuh_configuration_set(), tuh_interface_set()
2023-03-21 18:13:25 +07:00
hathach
878f2b54fe
relax hid host enumeration, allow set protocol to be stalled
2023-03-21 18:12:55 +07:00
Ha Thach
ec9c666107
Merge pull request #1965 from HiFiPhile/align
...
UAC2: fix feedback EP buffer alignment.
2023-03-21 15:46:00 +07:00
Ha Thach
096b6ec462
Merge pull request #1964 from hathach/add-tuh-set-interface
...
add tuh_set_interface
2023-03-21 13:58:44 +07:00
Mengsk
42decd94e5
UAC2: fix feedback EP buffer alignment.
2023-03-21 07:58:39 +01:00
hathach
ccf17e3cde
add -Wreturn-type
2023-03-21 13:21:59 +07:00
hathach
e44e461ce3
add tuh_set_interface
2023-03-21 12:55:52 +07:00
Ha Thach
cbcf5d8c08
Merge pull request #1963 from hathach/rp2040-more-iar
...
more compatible with IAR
2023-03-20 11:58:51 +07:00
hathach
4520218786
more compatible with IAR
2023-03-20 11:33:39 +07:00
Ha Thach
d4d6f60885
Merge pull request #1962 from hathach/update-bsp
...
Update bsp
2023-03-19 19:10:54 +07:00
hathach
f58da31145
clean up
2023-03-19 18:12:03 +07:00
hathach
f75a019732
bsp lpc17
2023-03-19 18:10:26 +07:00
hathach
934baae9b8
bsp lpc51
2023-03-19 17:58:20 +07:00
hathach
1154b7a9e7
add mising lpc13 file
2023-03-19 17:40:44 +07:00
hathach
64c6b715ce
bsp lpc13
2023-03-19 17:27:45 +07:00
hathach
80be1aa13d
bsp lpc11
2023-03-19 17:19:33 +07:00
hathach
1867ba0bc1
fix l4 hw testing ci
2023-03-19 16:43:59 +07:00
hathach
aa11e21358
add mising file
2023-03-19 13:15:05 +07:00
hathach
b46632ba07
bsp for f2 f3
2023-03-19 13:11:41 +07:00
hathach
322f58ea85
add CFLAGS_SKIP to improve sam compile time
2023-03-19 12:47:05 +07:00
hathach
ab0da3c30b
group stm32l0
2023-03-19 12:01:33 +07:00
hathach
3944f1c4da
group same5x
2023-03-19 11:28:06 +07:00
Ha Thach
779149ecce
Merge pull request #1858 from bpaddock/FRDM_K32L24AS
...
Add support for the NXP FRDM-K32L2A4S eval board.
2023-03-18 22:18:39 +07:00
hathach
ec0f25d095
fix ci with kl25z
2023-03-18 20:30:49 +07:00
hathach
bbe550efa0
add kinetis family to ci
2023-03-18 20:19:37 +07:00
hathach
1fc203b085
more update to kinetis bsp
2023-03-18 19:50:24 +07:00
hathach
2d187777c0
merge kinetis into its own family in bsp
2023-03-18 18:30:51 +07:00
Bob Paddock
b13b95a670
Document that support for the FRDM-K32L2A4S has been added.
2023-03-18 16:50:51 +07:00
Bob Paddock
f9b8a0667a
Add support for NXP FRDM_K32L2A4S eval board.
2023-03-18 16:50:50 +07:00
Ha Thach
f1a859d907
Merge pull request #1639 from bavison/portability
...
Fixes for building with IAR toolchain
2023-03-18 12:13:08 +07:00
hathach
9f54cc1eb7
more clean up
2023-03-18 11:43:47 +07:00
hathach
d919f107c7
minor clean up
2023-03-18 11:22:44 +07:00
hathach
bdfcd50b1b
Merge branch 'master' into portability
2023-03-17 23:53:38 +07:00
Ha Thach
65ee11ff63
Merge pull request #1882 from koendv/pitaya_lite
...
add board: DshanMCU Pitaya Lite
2023-03-17 20:48:39 +07:00
hathach
b2568eb02b
bump up mm32sdk to fix HSE_VALUE not 8Mhz warnings
2023-03-17 20:22:08 +07:00
hathach
1ed04ad05d
update mm32sdk with idndef for SYSCLK_FREQ_XXMHz and SYSCLK_HSI_XXMHz
...
add HSE_VALUE define for each board with 8mhz, 12mhz accordingly
2023-03-17 19:46:22 +07:00
hathach
b3ecf82196
whitespace
2023-03-17 19:31:45 +07:00
Koen De Vleeschauwer
899e7cc4f9
add board: DshanMCU Pitaya Lite
2023-03-17 19:31:06 +07:00
Ha Thach
bc57358eb0
Update README.rst
2023-03-17 19:29:25 +07:00
Ha Thach
4d273254b6
Merge pull request #1961 from hathach/remove-all-submodules
...
Remove all submodules
2023-03-17 19:27:47 +07:00
hathach
6683053f48
finalize
2023-03-17 18:44:30 +07:00
hathach
57d23c7a68
update example description
2023-03-17 18:34:56 +07:00
hathach
25d802532c
fix spelling
2023-03-17 18:34:43 +07:00
hathach
f14b4ba30a
use codespell as pre-commit
2023-03-17 17:27:17 +07:00
hathach
0c174c17ad
fix ci with building fuzz
2023-03-17 17:04:11 +07:00
hathach
a4b17483b9
fix ci build with fomu
2023-03-17 17:01:56 +07:00
hathach
2e5f649fd3
fix run unit test with pre-commit
2023-03-17 16:57:30 +07:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
2faad42cb1
update ci
...
- remove submodules init
- pre-commit: forbid new submodule, run in ci
2023-03-17 15:54:25 +07:00
hathach
323a56e309
bump up freeRTOS deps to version 10.5.1
2023-03-17 15:39:59 +07:00
hathach
6763521ec7
remove all submodules
2023-03-17 15:31:41 +07:00
Ha Thach
16daad8164
Merge pull request #1960 from hathach/fix-host-enumerate-mul-device
...
Fix host enumerate multiple devices from multiple host controllers
2023-03-17 15:27:56 +07:00
Ha Thach
96d064e923
Merge pull request #1860 from howard0su/pico_freertos
...
Allow config OS for RP2040
2023-03-17 14:57:13 +07:00
hathach
511f5be8b3
bump up pico-pio-usb dependency
2023-03-17 14:46:34 +07:00
hathach
e1fda007f6
minor refactor to invalid index
2023-03-17 14:46:02 +07:00
hathach
317177c83d
update host example, add pio-pico-usb for rp2040
2023-03-17 14:06:25 +07:00
hathach
f349ae7702
fix enumerate one device at a time
2023-03-17 13:58:01 +07:00
Ha Thach
6b84a29f8c
Merge pull request #1391 from perigoso/renesas-ra
...
Renesas ra family support
2023-03-17 11:28:54 +07:00
hathach
c12795734c
reduce number of supported RA to only those that is tested
2023-03-17 10:59:08 +07:00
hathach
e7d212f337
more fix
2023-03-16 23:21:15 +07:00
hathach
ffdffc7e06
rename FREERTOS_PORT to FREERTOS_PORTABLE_SRC
...
also fix trailing spaces
2023-03-16 23:11:11 +07:00
hathach
e0b1de923c
add ra4m1_ek board
2023-03-16 22:43:58 +07:00
Ha Thach
d875e694f8
Merge pull request #1958 from tyustli/tyustli_st
...
fix HAL_Delay no effect bug on st platform
2023-03-16 12:28:24 +07:00
hathach
2a10d5c20b
rename ra board name
2023-03-16 11:39:53 +07:00
hathach
92aed7e3e0
rename symbols
2023-03-16 11:28:10 +07:00
hathach
bc2127b330
rename file link to rusb2
2023-03-16 11:03:53 +07:00
hathach
1117cf5729
update pre-commit yaml
2023-03-16 10:05:46 +07:00
hathach
cd1726c009
Merge branch 'master' into renesas-ra
2023-03-16 09:51:27 +07:00
tyustli
fabe86362b
fix HAL_Delay no effect bug on st platform
2023-03-16 08:28:19 +08:00
Ha Thach
b443851980
Merge pull request #1957 from hathach/fix-old-picosdk
...
Fix old picosdk
2023-03-15 23:24:44 +07:00
hathach
ffa56a1beb
add pre-commit yaml
2023-03-15 19:30:35 +07:00
hathach
d9a9dc5ac0
fix PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY not defined in old pico-sdk
2023-03-15 17:38:14 +07:00
Ha Thach
ea8ecea59a
Merge pull request #1953 from tannewt/fix_cached_imx_reset
...
Flush the dcd data on reset
2023-03-14 09:08:32 +07:00
Scott Shawcroft
d31aac453e
Flush the dcd data on reset
2023-03-13 15:22:00 -07:00
Ha Thach
7cf67b2845
Merge pull request #1889 from Tails86/master
...
Implemented tuh_hid_send_report
2023-03-13 17:03:27 +07:00
James Smith
9247131b1f
Avoid spamming out endpoint on connect
2023-03-13 16:31:25 +07:00
James Smith
43770802f9
Removed tabs from host hid_controller example
2023-03-13 16:31:25 +07:00
James Smith
296ce528fc
Updated host hid_controller example to demo tuh_hid_send_report
2023-03-13 16:31:25 +07:00
James Smith
f6774d5611
Implemented tuh_hid_send_report
2023-03-13 16:31:25 +07:00
Hubert Denkmair
f8a21fff17
dcd_write_packet_memory: use volatile modifier for destination pointer
2023-03-12 15:51:07 +01:00
hathach
0a7c08d16e
minor format
2023-03-12 16:01:24 +07:00
Ha Thach
be21413361
Merge pull request #1948 from dhalbert/remove-volatile-cast-include
...
rp2040: include hardware/sync.h explicitly
2023-03-11 09:35:04 +07:00
hathach
e045995407
minor update get_deps
2023-03-11 08:54:51 +07:00
hathach
4065ca3fca
Merge branch 'master' into renesas-ra
2023-03-11 08:40:36 +07:00
Ha Thach
a8d7e08cee
Merge pull request #1950 from hathach/update-get-deps
...
update get-deps.py
2023-03-11 08:37:58 +07:00
hathach
cae05c6593
update get-deps.py
2023-03-11 08:33:08 +07:00
hathach
7428a16d2d
remove ra submodules
2023-03-11 08:23:21 +07:00
hathach
fe77976765
Merge branch 'master' into renesas-ra
2023-03-11 08:15:23 +07:00
Ha Thach
6af18dc906
Merge pull request #1947 from hathach/remove-submodules
...
Remove submodules and use python script to manage repo dependencies
2023-03-11 08:09:25 +07:00
Ha Thach
b5b2fad5fb
Merge pull request #1946 from kasjer/kasjer/nrf5x-fix-iso-memory-corruption
...
dcd_nrf5x: ISO OUT handling
2023-03-11 08:06:17 +07:00
Dan Halbert
4857abdc6b
rp2040: include hardware/sync.h explicitly
2023-03-10 14:01:51 -05:00
hathach
206a9a21e6
fix ci
2023-03-10 23:54:30 +07:00
hathach
704f3ddeb5
add dependencies repo to git ignore
2023-03-10 23:43:07 +07:00
hathach
7e6a6e75bc
remove the rest of mcu submodules
2023-03-10 23:41:27 +07:00
hathach
fb9180b6eb
remove most of the submodules
2023-03-10 23:36:53 +07:00
hathach
7c9bd81eca
update deps script
2023-03-10 22:56:42 +07:00
hathach
d41320a42e
adding python script to manage dependencies instead of submodule
2023-03-10 20:49:11 +07:00
hathach
76f43a7a16
starting to remove submodule cmsis5 and nrfx
2023-03-10 19:23:23 +07:00
Jerzy Kasenberg
f0ddf8d10f
dcd_nrf5x: ISO OUT handling
...
For incoming ISO OUT packets it was possible to start
DMA from endpoint to RAM before transfer was started
resulting in unrelated memory corruption.
This is scenario that causes memory corruption:
- ISO OUT packet is received
- Packet is transferred by DMA to transfer buffer
- xfer->started is cleared and xfer->buffer is updated as
it is in every case
- Application takes to long to handle it (it happens when debugger
is connected breakpoint is hit slowing down software).
- Next ISO OUT packet arrives
At this point there was no check if transfer was started and packet
was copied by DMA to location beyond previous data, possibly overwriting
unrelated memory.
This solves the issue by checking that transfer was
started and there is buffer ready for incoming packet.
2023-03-10 08:22:43 +01:00
Ha Thach
990fb6ae5c
Merge pull request #1931 from branalba/master
...
For STM32H7 BSP boards, initialize RCC_...TypeDef structs as empty
2023-03-09 17:21:58 +07:00
hathach
0f8e530de1
fix incorrect merge of hcd link
2023-03-08 23:01:37 +07:00
hathach
2cf092464b
fix freertos build with iar, format/indent link_type
2023-03-08 22:34:54 +07:00
hathach
05e0205ad0
Merge branch 'master' into renesas-ra
2023-03-08 21:05:06 +07:00
Hubert Denkmair
af577d2b6d
add G0 to supported platforms in README.rst :)
2023-03-08 14:25:30 +01:00
Hubert Denkmair
b3ad560e62
fix path to stm32g0xx.h
2023-03-08 14:22:11 +01:00
Hubert Denkmair
8ae4f8f069
add basic STM32G0 support
2023-03-08 12:14:40 +01:00
Hubert Denkmair
410ad4d0f9
add basic STM32G0 support
2023-03-08 12:05:58 +01:00
Ha Thach
be66f5f57f
Merge pull request #1941 from hathach/minor-ci
...
Minor ci
2023-03-08 13:08:25 +07:00
hathach
0957902c40
more ci merge
2023-03-08 12:28:30 +07:00
hathach
9e0ae5f29d
improve ci
2023-03-08 12:15:39 +07:00
Ha Thach
3387c86108
Merge pull request #1933 from kilograham/rp2040_llvm_tweaks
...
make rp2040 code compile cleanly with LLVM embedded toochain for ARM.
2023-03-06 15:24:51 +07:00
Ha Thach
66da95a0ee
Merge pull request #1938 from hathach/update-build
...
Fix build on windows and macos
2023-03-06 15:10:21 +07:00
hathach
ec8c292bbe
clean up
2023-03-06 14:37:40 +07:00
hathach
02478c57e5
more ci fix
2023-03-06 14:31:18 +07:00
hathach
e62d1a03ac
integrate top.mk into make.mk
2023-03-06 13:25:56 +07:00
hathach
b6404d143e
clean up top
2023-03-06 13:03:55 +07:00
hathach
9930863b41
fix iar ci
2023-03-06 12:45:47 +07:00
hathach
5c537c25f0
change gcc to 10.3 due to freeRTOS warning
2023-03-06 11:16:21 +07:00
hathach
956d1c9c4e
update size to fix macos ci
2023-03-06 10:33:04 +07:00
HiFiPhile
a83cef5e4c
Merge pull request #1937 from silvergasp/fix_wrong_size
...
fix: Fix wrong destsz used with tu_memcpy_s
2023-03-06 04:25:52 +01:00
Nathaniel Brough
95cfa37bf5
fix: Fix wrong destsz used with tu_memcpy_s
...
Bug: #1935
2023-03-05 18:47:48 -08:00
hathach
0a1a61bb6c
try gcc 12.2 with macos
2023-03-05 15:42:05 +07:00
hathach
9824981ee8
ignore mkdir in windows ci
2023-03-05 15:35:02 +07:00
hathach
8a493485e8
more ci test
2023-03-05 13:39:38 +07:00
hathach
b4ef98cbdc
fix ci build on windows
2023-03-05 10:57:16 +07:00
hathach
a99ee1b1a2
bump up gcc, test macos uname
2023-03-04 20:08:10 +07:00
hathach
363fcc5b68
only build 1 board on windows/macos
2023-03-03 16:24:33 +07:00
hathach
7089535848
clean up f0 warnings
2023-03-03 16:13:12 +07:00
hathach
9a8a9359e4
use make abspath intead of shell realpath
2023-03-03 15:55:34 +07:00
hathach
e92583ffd7
try adding build for windows and macos
2023-03-03 15:37:17 +07:00
graham sanderson
b7fa90e706
rp2040: Fixup lib and example compile for LLVM Embedded Toolchain for ARM
2023-03-02 14:32:22 -06:00
Ha Thach
34798ff85e
Merge pull request #1932 from hathach/add-usbip-fsdev
...
add TUP_USBIP_FSDEV and TUP_USBIP_FSDEV_STM32
2023-03-01 21:32:31 +07:00
hathach
5d3084a714
add TUP_USBIP_FSDEV and TUP_USBIP_FSDEV_STM32, clean up ifdef with stm32
2023-03-01 11:22:04 +07:00
Brandon Alba
8c8f26f14e
In some STM32H7 BSP variants, initialized RCC_PeriphCLKInitStruct instances as empty
2023-02-28 10:31:07 -08:00
Brandon Alba
787afbbcd0
Initialized all RCC init structs for all STM32H7 BSP variants as empty
2023-02-28 10:25:06 -08:00
Ha Thach
3c38c7dc25
Merge pull request #1828 from HiFiPhile/stm32_fsdev
...
stm32_fsdev & ISO EP buffer allocation improvements
2023-02-28 23:45:02 +07:00
hathach
ffdc100cb9
rename ep_num to ep_idx, minor clean up
2023-02-28 17:11:59 +07:00
Ha Thach
65ac519715
Merge pull request #1852 from silvergasp/mem_s
...
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27 10:22:53 +07:00
hathach
e34aeb5cf6
minor clean up
2023-02-27 09:11:35 +07:00
Ha Thach
73afca14eb
Merge pull request #1491 from Ryzee119/ohci_fixes
...
OHCI usbh, tweaks and improvements
2023-02-22 22:52:41 +07:00
hathach
eca96c635d
comment out osal_task_delay if using os none
2023-02-22 22:28:22 +07:00
hathach
4caa6063b0
white space
2023-02-22 22:17:45 +07:00
hathach
1466afafeb
move and add optional tusb_app_virt_to_phys/tusb_app_phys_to_virt
...
also add place holder for tusb_app_dcache_flush() and
tusb_app_dcache_invalidate()
2023-02-22 22:14:50 +07:00
Ha Thach
b66c2d5f0a
Merge pull request #1796 from Sinitax/master
...
Fix ifdefs for disabled uart stdio in rp2040 family
2023-02-22 17:40:54 +07:00
Ha Thach
8fadaf01d3
Merge pull request #1919 from hathach/use-tu-static-for-fuzz
...
use tu_static instead of static _fuzz_thread
2023-02-22 17:35:07 +07:00
mikee47
302b9562dc
MIDI_CIN_NOTE_ON definition transposed with MIDI_CIN_NOTE_OFF
2023-02-22 09:58:30 +00:00
hathach
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
hathach
4c846af53e
rename OHCI_RHPORTS to TUP_OHCI_RHPORTS
2023-02-22 16:18:45 +07:00
hathach
c01aee6c1a
revert some changes
2023-02-22 15:14:56 +07:00
hathach
78a014ef18
move check LIB_PICO_STDIO_UART to board.h
2023-02-22 15:13:27 +07:00
Ha Thach
557bf82336
Merge pull request #1867 from silvergasp/thread_local_globals
...
fix: Change all static variables to thread when fuzzing
2023-02-22 12:54:32 +07:00
hathach
bcf5e5f729
missing some files
2023-02-22 12:10:22 +07:00
hathach
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
wooyay
4e2afdf5e1
ohci: Disable MIE interrupt during IRQ processing, zero HccADoneHead on completion
2023-02-18 10:48:39 +10:30
Ryzee119
75f6583c1c
ohci: Use enum instead of magic number
2023-02-18 10:48:39 +10:30
Ryan Wendland
f2a6af05b1
ohci: Add ability to separate physical and virtual memory
2023-02-18 10:48:38 +10:30
Ryan Wendland
f87262185e
ohci: Set skip on ed prior to removal
2023-02-18 10:24:21 +10:30
Ryan Wendland
cc9c3feeae
ohci: Fix bug in ed removal
2023-02-18 10:24:21 +10:30
Ryzee119
e89e8ba392
ohci: Direct port commands to the correct rhport.
2023-02-18 10:24:21 +10:30
Ryzee119
5d3c0fb922
ohci: Force reset of devices already connected on power up
2023-02-18 10:24:21 +10:30
Ryzee119
c1d0fd1bd7
ohci: Wait POTG time after port power
2023-02-18 10:24:21 +10:30
Ryzee119
2063ee5f15
ohci: Toggle frameinterval bit on update
2023-02-18 10:24:21 +10:30
Ryzee119
d5e6d02817
ohci: Leave SMM or bios mode during init
2023-02-18 10:24:21 +10:30
Ryzee119
c820c87692
ohci: Support configurable number of roothub ports
2023-02-18 10:24:21 +10:30
Ryzee119
d367e8f8a8
ohci: Expand roothub descriptors into unions
2023-02-18 10:24:21 +10:30
PanRe
3342635237
Merge pull request #1825 from HiFiPhile/mic_test
...
Minor audio_test example fix.
2023-02-16 11:59:44 +01:00
HiFiPhile
9e16e904ed
Merge pull request #1853 from NullMember/master
...
examples/uac2: Fix mute and volume array lengths
2023-02-16 11:22:52 +01:00
Ha Thach
6b4838cb2f
Merge pull request #1910 from rppicomidi/fix-1909
...
Fix issue 1909
2023-02-16 17:06:22 +07:00
rppicomidi
fde7577117
Fix issue 1909
2023-02-15 20:02:12 -08:00
Ha Thach
e3be8a0a15
Merge pull request #1906 from hathach/update-pio-pico-usb
...
update pico-pio-usb to include data pid fix (0.5.1)
2023-02-14 16:51:56 +07:00
hathach
95acf3960d
update pico-pio-usb to include data pid fix (0.5.1)
2023-02-14 16:11:33 +07:00
Ha Thach
d87f4da6b1
Merge pull request #1893 from jefftrull/bugfix/bitfields
...
Adjust reserved bitfields to make SDCC happy
2023-02-13 16:30:01 +07:00
Ha Thach
09e70ebd13
Merge pull request #1885 from kripton/fixDHCPServerDoS
...
dhserver: Fix a potential DoS vulnerability accidentially introduced by #1712
2023-02-13 15:11:44 +07:00
Ha Thach
ac60a03ea9
Merge pull request #1901 from hathach/add-metro-rt1011
...
Add metro rt1011
2023-02-13 14:58:42 +07:00
hathach
fbf99b8e53
forget to add metro 1011 linker
2023-02-13 13:33:03 +07:00
hathach
fb5fd22c73
add uf2 linker for metro m7 1011
2023-02-13 12:29:31 +07:00
hathach
49c621d510
fix typo
2023-02-13 12:04:33 +07:00
hathach
3e86f0532a
fix release trigger body
2023-02-13 12:03:09 +07:00
hathach
105f108661
add metro m7 1011 board def (not running yet)
2023-02-13 12:03:09 +07:00
Ha Thach
002ca345b8
Merge pull request #1898 from ccrome/fix-imx1011
...
Turn data cache on
2023-02-13 12:01:39 +07:00
Jeff Trull
7e2c5fcc8a
Correct bitfields for cdc_desc_func_telephone_call_state_reporting_capabilities_t
2023-02-12 20:52:17 -08:00
caleb crome
ec26c6163c
Turn data cache on
...
This fixes https://github.com/hathach/tinyusb/issues/1894 . I'm not really
sure if this is the correct way to fix it, and I have not tested on all the
rest of the family members, however, this lets the i.MX1010 work again.
The problem: the latest SDK update does not enable the data cache by default
This causes an assert in board_init() when attemping to control clock
gating. I haven't investigated further as to *why* it's a problem, but it
is a problem.
2023-02-12 11:24:21 -08:00
Jeff Trull
f48ae4aad7
Adjust reserved bitfields to make SDCC happy
...
- keep each field at or under 16b
- For optimal packing, segment fields to 8b boundaries
2023-02-10 15:54:04 -08:00
Ha Thach
86c416d4c0
Merge pull request #1890 from hathach/release-0.15.0
...
update version to 0.15.0
2023-02-10 17:39:04 +07:00
hathach
f0ab6d824e
increase hw test timeout to 10s since pyocd seems to take longer to flash
2023-02-10 15:41:48 +07:00
hathach
39a37d82ce
change rp2040 hw test to use pyocd for better stability/performance than openocd
2023-02-10 14:56:32 +07:00
hathach
cf162e2c54
fix typo
2023-02-10 13:03:43 +07:00
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
Jannis Achstetter
830849211d
dhserver: Fix a potential DoS vulnerability accidentially introduced by #1712
2023-02-04 22:37:39 +01: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
hathach
1bbeb6ad79
update stm32f1 to support iar build
2023-01-21 11:32:37 +07:00
Nathaniel Brough
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08: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
cb34cb2a93
slightly update rule.mk for IAR
2023-01-20 15:56:32 +07:00
hathach
daec3c24d8
fix warnings with arithmetic on void* pointer
2023-01-20 15:30:45 +07:00
hathach
074289caa3
add helper tu_desc_find/find2/find3
2023-01-20 15:30:24 +07:00
hathach
3fd075b48b
fix warning
2023-01-20 15:29:23 +07:00
Ha Thach
ea098aeda1
Merge pull request #1847 from HiFiPhile/dwc2_iar
...
dwc2: fix iar warnings
2023-01-18 17:41:33 +07:00
hathach
84be70baf5
fix iar build with board_test
2023-01-18 13:17:53 +07:00
hathach
075095554a
dont use non-std strncasecmp
2023-01-18 11:47:24 +07:00
hathach
fb7122f07d
update iar ci
2023-01-18 10:33:26 +07:00
hathach
ecfd57e6f1
get most examples build with iar
2023-01-18 10:31:00 +07:00
Howard Su
eb7aacb51f
Allow config OS for RP2040
2023-01-18 02:30:05 +00:00
hathach
8df2fd1916
update freertos example to build with iar
2023-01-17 23:38:10 +07:00
hathach
c86e628a4c
update build script to support iar with CC=iccarm option
2023-01-17 23:37:00 +07:00
hathach
1891802f08
update all f0 board to build with iar
2023-01-17 16:38:02 +07:00
hathach
c414cc650e
try running iar build with self-host
2023-01-17 16:30:33 +07:00
hathach
3fee8b402e
update makefile to support iar build starting with stm32f070
2023-01-17 16:20:04 +07:00
Nathaniel Brough
2e47210c1a
fix: Replace device calls to memcpy with tu_memcpy_s
...
Introduces a new function tu_memcpy_s, which is effectively
a backport of memcpy_s. The change also refactors calls
to memcpy over to the more secure tu_memcpy_s.
2023-01-13 15:20:32 -08:00
Malik Enes Safak
546dd6038c
examples/uac2: Fix mute and volume array lengths
2023-01-13 18:28:10 +03:00
Ha Thach
fa9d19027b
Merge pull request #1405 from gregdavill/ch32v307
...
Add WCH CH32V307 port
2023-01-12 17:51:56 +07:00
hathach
b1021d53f3
add TUP_RHPORT_HIGHSPEED for ch32v307
2023-01-12 15:38:18 +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
3cf21c66b6
add dcd_remote_wakeup() stub
2023-01-12 15:26:48 +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
MasterPhi
9d19ed940e
dwc2: fix IAR warnings.
2023-01-11 18:50:38 +01:00
Ha Thach
4ee4c6f594
Merge pull request #1844 from silvergasp/master
...
feat(ci): Adds oss-fuzz integration on PRs
2023-01-11 09:20:27 +07:00
Nathaniel Brough
abb95fc4b3
feat(ci): Adds oss-fuzz integration on PRs
2023-01-09 13:07:03 -08:00
Ha Thach
8775d55adc
Merge pull request #1843 from HiFiPhile/ip3511
...
ip3511 : Fix IAR build.
2023-01-09 10:02:59 +07:00
MasterPhi
57de6016f9
ip3511 : Fix IAR build.
2023-01-08 11:23:18 +01: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
Ha Thach
83cc71feaf
Merge pull request #1820 from Staacks/master
...
Fix UVC probe and commit on MacOS
2023-01-07 23:30:30 +07:00
Ha Thach
79e5d7aa69
Merge pull request #1789 from hathach/fix-fifo-memory-overflow
...
Fix fifo memory overflow
2023-01-07 20:42:19 +07:00
hathach
c84de8f06b
minor clean up
2023-01-07 19:40:06 +07:00
hathach
9e551c9f5c
remove _ff_overflowed() due to lack of use
2023-01-07 19:00:04 +07:00
hathach
c29b7643a5
simplify _ff_correct_read_index()
2023-01-07 18:53:00 +07:00
hathach
248025bb6c
reverse idx2ptr() arguments to be consistent
2023-01-07 17:29:43 +07:00
hathach
24bd1c9562
update advance_pointer/backward_pointer to use depth instead of fifo, also rename to advance/backward_index
2023-01-07 17:27:26 +07:00
hathach
507d5b10b0
simplify _tu_fifo_count() and _tu_fifo_remaining(), also rename to _ff_count() and _ff_remaining()
2023-01-07 17:14:17 +07:00
hathach
a804a1ac09
simplify and remove _tu_fifo_empty, _tu_fifo_full. Also correct full condition check
2023-01-07 16:48:07 +07:00
hathach
2d7849282a
use TU_FIFO_INIT to replace TU_FIFO_DEF
2023-01-07 16:33:11 +07:00
hathach
e885ced0fe
using clang with ceedling unit-test with -fsanitize=address
2023-01-07 16:24:05 +07:00
hathach
82457519fa
minor clean up
2023-01-07 16:12:35 +07:00
hathach
2a1b81e3c5
minimize tu_fifo size to 16
...
- remove non_used_index_space
- packed overwritable with item_size
2023-01-06 11:51:17 +07:00
hathach
9c73c1a532
minor clean up
2023-01-06 10:56:19 +07:00
hathach
b42d298b81
Merge branch 'master' into fix-fifo-memory-overflow
2023-01-06 10:52:25 +07:00
Ha Thach
6e23c596cc
Merge pull request #1837 from pete-pjb/master
...
Fix typo in audio.h. Specifiy _ctrl_xfer struct in CFG_TUSB_MEM_SECTION in usbh.c
2023-01-06 10:24:55 +07:00
Ha Thach
cde16b802b
Merge pull request #1836 from HiFiPhile/Pe381
...
Fix IAR warning: Warning[Pe381]: extra ";" ignored
2023-01-06 09:10:11 +07:00
Mengsk
8db462bf6e
Add fix to dcd_edpt_iso_activate()
2023-01-05 16:54:42 +01:00
Simon Kueppers
d6b612257e
Fixed bug where with some devices, the TU_ASSERT inserted with this commit gets triggered for ISOCHRONOUS endpoints. It is necessary for those endpoints to set the NUM_BLOCK and BLSIZE for the receiving buffer in both, USB_COUNTn_TX and USB_COUNTn_RX. Despite the datasheet showing those fields only for the USB_COUNTn_RX register
2023-01-05 16:23:53 +01:00
Mengsk
8c591e2c45
More warning fixes
2023-01-04 12:40:01 +01:00
Ha Thach
18043131d0
Merge pull request #1823 from silvergasp/fix_cluster_fuzz_flags
...
fix(fuzz): Make sanitizer flags optional
2023-01-04 13:44:33 +07:00
pete-pjb
f5cffeedec
Fix typo in audio.h. Specifiy _ctrl_xfer struct in CFG_TUSB_MEM_SECTION
...
Add NULL check to loop in list_remove_qhd_by_addr() function in ehci.c
2023-01-03 10:33:36 +00:00
Mengsk
82f105e32b
Fix IAR warning: Warning[Pe381]: extra ";" ignored
2023-01-02 21:18:10 +01:00
Mengsk
69475cd1bf
Remove tu_stm32_sof_cb
2023-01-02 12:06:26 +01:00
Mengsk
7228239eb9
Clean up.
2023-01-02 09:43:48 +01:00
Mengsk
51bb27a131
Optimize descriptor looping.
2022-12-31 13:37:22 +01:00
Mengsk
35fa6b660a
Fix CI.
2022-12-30 16:10:54 +01:00
Mengsk
fc32280f42
Fix buffer allocation overflow.
2022-12-30 15:10:00 +01:00
Mengsk
7ff2f43bfd
Add multi-rate audio test example for new ISO buffer allocation.
2022-12-30 15:09:50 +01:00
Mengsk
21bdafcfef
Add ISO buffer allocation.
2022-12-30 01:08:04 +01:00
Mengsk
07ad64adfe
Do not set USB_EP_RX_NAK for ISO EP.
2022-12-29 23:30:24 +01:00
Mengsk
db65759b1e
Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activate
2022-12-29 23:29:50 +01:00
Mengsk
0bd41d5354
Fix CI.
2022-12-29 21:37:44 +01:00
Mengsk
e4f07206f8
UAC : Enable fifo based transfer on stm32_fsdev
2022-12-29 19:34:12 +01:00
Mengsk
fe8c170c98
Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management.
2022-12-29 19:19:27 +01:00
Mengsk
8a1184e7b3
Minor audio_test example fix.
...
Fix CFG_TUD_AUDIO_EP_SZ_IN size.
2022-12-29 14:34:37 +01:00
Mengsk
cece59df22
Generally enable ISO xfer.
2022-12-29 12:33:44 +01:00
Mengsk
ef2f17a514
Add hardware endpoint allocator.
2022-12-29 12:33:43 +01:00
Mengsk
b156a8b78c
dcd_stm32_fsdev : Implement FIFO transfer correctly.
2022-12-29 12:33:43 +01:00
Mengsk
17990025bb
dcd_stm32_fsdev : Fix index out of bound in dcd_write_packet_memory()
...
If src is odd then src[wNBytes] is accessed.
2022-12-29 12:33:43 +01:00
Simon Kueppers
1d37f5ef9b
Added improvements with regards to SOF timing jitter
2022-12-29 12:33:16 +01:00
Simon Kueppers
76413a95d4
Added TU_ATTR_ALWAYS_INLINE to all static inline functions
2022-12-29 12:29:47 +01:00
Simon Kueppers
9ec21248d7
Fixed various small problems and inaccuracies regarding ISOCHRONOUS endpoint
2022-12-29 12:29:47 +01:00
Mengsk
b4b619abd6
SHA-1: 5cb3ed518301e2237ee4e468e97e51ece0ba3838
...
* Correct handling of SOF interrupt
2022-12-29 12:29:28 +01:00
Mengsk
8327090171
Merge branch 'master' of https://github.com/hathach/tinyusb into stm32_fsdev
2022-12-29 12:14:52 +01:00
Simon Kueppers
d584b07e2c
Fixed problem where the transmit byte count was written into the wrong register on ISOCHRONOUS endpoints
2022-12-29 12:13:56 +01:00
Simon Kueppers
510720b396
Renamed pcd_set_ep_rx_cnt because it actually sets the maximum buffer size
2022-12-29 12:13:56 +01:00
Simon Kueppers
9a84390878
Changed comments, added define to fail if ISOCHRONOUS endpoint is not available but requested
2022-12-29 12:13:56 +01:00
Simon Kueppers
ec826732fc
Fixed non-aligned allocated memory sizes
2022-12-29 12:13:56 +01:00
Simon Kueppers
abf53f9270
Changed indirection from actual endpoint address to hardware endpoint through lookup table. Allocation of endpoint is now only performed in dcd_edpt_open
2022-12-29 12:13:56 +01:00
Simon Kueppers
8c0388f477
Fixed wrongly enabling RX and TX status simultaneously on ISOCHRONOUS endpoints
2022-12-29 12:13:56 +01:00
Simon Kueppers
d9b2c9934a
Implemented an optional callback function that is used instead of tu_edpt_number in the stm32 device driver as a crude tool to control mapping of the endpoint address to actual endpoint register
2022-12-29 12:13:56 +01:00
Simon Kueppers
6d65eaf7a1
Implemented very rudimentary support for isochronous transfer buffer handling
2022-12-29 12:13:55 +01:00
Nathaniel Brough
1dcffc655d
fix(fuzz): Make sanitizer flags optional
...
Currently OSS fuzz expects to have complete control over the
sanitizer flags. As we currently have these set it's causing
problems with the OSS fuzz build. Instead we should use the
provided variables from the OSS fuzz build environment. For
local testing we'll create a set a well defined defaults.
2022-12-28 21:07:29 +00:00
Staacks
95ba158a10
Fix UVC probe and commit on MacOS
2022-12-27 23:02:33 +01:00
Ha Thach
549bee94ad
Merge pull request #1819 from hathach/fix-ncm-warning
...
fix ncm warning
2022-12-27 19:02:57 +07:00
hathach
d0ca6ca8f7
fix ncm warning
2022-12-27 18:21:56 +07:00
Ha Thach
301b6af6c6
Merge pull request #1801 from tyustli/tyustli_sem_reset
...
[add] semaphore reset support for rt-thread
2022-12-26 13:09:47 +07:00
Ha Thach
4b5880671c
Merge pull request #1814 from hathach/more-host-cdc
...
add tuh_cdc_peek()
2022-12-25 00:50:18 +07:00
hathach
48d4a67ec5
add tuh_cdc_peek()
2022-12-24 01:11:13 +07:00
Ha Thach
48f4d8b7f7
Merge pull request #1810 from hathach/fix-cdc-buf
...
fix incorrect rx buf in cdc
2022-12-22 22:34:20 +07:00
hathach
15a02d04df
fix incorrect rx buf in cdc
2022-12-22 21:35:55 +07:00
Ha Thach
2777df411f
Merge pull request #1809 from hathach/host-cdc
...
Support Host CDC
2022-12-22 21:29:00 +07:00
hathach
396716cc2c
clean up
2022-12-22 20:26:32 +07:00
hathach
f33883c308
add tuh_cdc_get_local_line_coding()
2022-12-22 19:41:39 +07:00
hathach
14d45b580e
correct host cdc enum
2022-12-22 19:17:09 +07:00
hathach
05c119ce97
cdc host, add set line coding API
2022-12-22 18:28:06 +07:00
hathach
11233e4d3e
minor clean up
2022-12-22 11:43:57 +07:00
hathach
c99af908f1
fix typo
2022-12-22 11:41:27 +07:00
hathach
2d536123c8
finish moving edpt stream to tusb.c
2022-12-22 11:31:37 +07:00
hathach
e3c9d94500
fix stream read count computation
2022-12-22 11:16:39 +07:00
hathach
8323e4b79a
moving edpt_stream API into common tusb.c
2022-12-22 08:52:01 +07:00
hathach
9e8ea44925
add tuh_cdc_write_clear, rename read_flush() to read_clear()
2022-12-21 17:49:50 +07:00
hathach
cd9008e5a9
add tuh_cdc_tx_complete_cb() callback
2022-12-21 13:05:45 +07:00
hathach
84a483f5ea
add more host cdc API
...
tuh_cdc_write_available(), tuh_cdc_read_flush(), tuh_cdc_rx_cb()
callback
2022-12-21 12:47:00 +07:00
hathach
edc559cb4d
fix ci
2022-12-21 12:29:51 +07:00
hathach
badb30a6c3
correct cdc host app
2022-12-21 12:25:13 +07:00
hathach
22b62f8712
add tu_edpt_stream_write_zlp_if_needed()
2022-12-21 12:07:12 +07:00
hathach
76021c7359
rename tud_edpt_stream_write_xfer
2022-12-21 11:49:28 +07:00
hathach
b3e63c335a
updat cdc host app
2022-12-21 11:47:07 +07:00
hathach
cb2af4c0bc
minor debug log
2022-12-21 11:46:58 +07:00
hathach
d1ea3844f7
rename TU_LOG_VAR to TU_LOG_PTR, print out setup of failed control transfer when LOG=1
2022-12-21 11:04:57 +07:00
hathach
37529c41da
fix ci
2022-12-21 10:46:47 +07:00
hathach
854e5222ae
finalizing cdc host, has a working read/write
...
TODO: first character seems not to get echoed. set control line state
seems to failed with LOG < 2
2022-12-21 00:26:46 +07:00
Ha Thach
97984b4203
Merge pull request #1803 from jbruneaux31/patch-1
...
Update osal_freertos.h to fix FreeRTOS wrong task switch
2022-12-20 18:34:04 +07:00
hathach
7004914d8c
fix hid host incorrect edpt release if failed to transmit
...
add CDC_CONTROL_LINE_STATE_DTR/RTS, TUSB_INDEX_INVALID enum
2022-12-20 12:06:59 +07:00
jbruneaux31
a46ad8fcdf
Update osal_freertos.h
...
Fix FreeRTOS task switch even if not required (unitialized variable usage)
2022-12-19 13:58:54 +01:00
tyustli
e992ff46d2
Update osal_rtthread.h
2022-12-19 17:25:35 +08:00
tyustli
7d76c172db
[add] semaphore reset support for rt-thread
...
add semaphore reset support for rt-thread
2022-12-19 17:18:47 +08:00
hathach
fc9321ce26
correct cdc usbh_driver_set_config_complete()
2022-12-16 23:54:21 +07:00
hathach
4811b3463f
stub
2022-12-16 17:08:37 +07:00
hathach
bd1f7f86ce
add common EPSIZE for bulk/iso in full and highspeed
...
adding cdc host fifo tx/rx
2022-12-16 17:08:37 +07:00
hathach
f62f973956
minor rename
2022-12-16 17:08:37 +07:00
hathach
f0c51eae44
cdc check for bNumEndpoints before checking for endpoint descriptor
2022-12-16 17:08:37 +07:00
hathach
4f03695084
adding tuh_cdc_mount_cb/tuh_cdc_umount_cb
...
start adding cdc_app.c to example
2022-12-16 17:08:37 +07:00
Ha Thach
159aa599be
Merge pull request #1799 from hathach/update-osal-mutex
...
Update osal mutex
2022-12-16 17:05:25 +07:00
hathach
660343d200
update fifo per PanRe review
2022-12-16 16:55:25 +07:00
hathach
1e99480ad2
fix ci with usbh and unit test
2022-12-16 15:19:40 +07:00
hathach
96d2be905b
fix build with usbtmc
2022-12-15 18:47:54 +07:00
hathach
88e6da7273
use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX
...
add macro to swallow mutex API in order to simplify code with mutex
2022-12-15 18:03:01 +07:00
Gordon McNab
9f440e5c69
Update SDK for FT9xx to include 3rdparty sources
2022-12-15 10:27:49 +00:00
Ha Thach
ab18b8794f
Merge pull request #1797 from hathach/fix-midi-len
...
fix midi MS Header wTotalLength computation
2022-12-14 16:24:42 +07:00
hathach
a05adfce86
fix midi MS Header wTotalLength computation
2022-12-14 14:38:40 +07:00
Louis Burda
9e7e8908a3
Fix ifdefs for disabled uart stdio in rp2040 family
2022-12-13 11:00:03 +01:00
hathach
04a5c03ea8
fix int conversion warnings
2022-12-12 11:54:33 +07:00
hathach
ce064de6fd
clean up
2022-12-10 00:18:11 +07:00
hathach
82852774a7
add fifo implementation note
...
- handle/fix double overflowed with write()
- other minor clean upp
2022-12-09 18:20:09 +07:00
hathach
75989673e5
add test_write_double_overflowed for fifo
2022-12-09 15:39:57 +07:00
Ha Thach
f4f85bad54
Merge pull request #1783 from scoudreau/usbtmc-high-speed
...
usbtmc: correct packet size bug
2022-12-09 09:52:23 +07:00
Ha Thach
ec2902bd3f
Merge pull request #1784 from scoudreau/interrupt-descriptor-polling-interval
...
Correct interrupt polling interval in descriptor
2022-12-09 09:45:40 +07:00
scoudreau
007ed1f0fe
Added missing typecast to pass build checks
2022-12-08 14:50:34 +01:00
Sebastien COUDREAU
071da47944
Correct interrupt polling interval in descriptor
...
Use macro argument instead of 0x16 constant value.
At least Linux kernel was complaining about this value:
"config 1 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 22, changing to 8"
(warning obtained using usbtmc device config)
2022-12-08 11:44:15 +01:00
Sebastien COUDREAU
15ab35d9b8
usbtmc: correct packet size bug
...
Code was only reading the first 64 bytes of a 512 bytes packet.
2022-12-08 11:35:32 +01:00
hathach
3e32fa36b8
enhance tu fifo
...
- rename wr/rd absolute to index, and rel to pointer.
- fix crash with _tu_fifo_remaining()
- change get_relative_pointer() to idx2ptr() and merge with _ff_mod()
2022-12-08 16:39:24 +07:00
hathach
bae7fe5be7
add test fifo overwritable + overflow, that cause buffer overflow
2022-12-08 13:10:24 +07:00
Ha Thach
d4620d99d3
Merge pull request #1716 from silvergasp/master
...
fuzz: Add support for fuzzing
2022-12-08 12:18:32 +07:00
hathach
c19bffb1d9
clean up
2022-12-08 11:48:53 +07:00
hathach
d0758d0733
correct ci paths filter
2022-12-08 11:47:01 +07:00
hathach
4deec2f4be
fix ci
2022-12-08 11:40:43 +07:00
hathach
33ea178cd9
update build fuzzer step
2022-12-08 11:37:13 +07:00
hathach
ffd008dc75
update build fuzzer
2022-12-08 11:36:19 +07:00
hathach
bf8f4f9521
move build Fuzzer into pre-commit
2022-12-08 11:31:39 +07:00
hathach
86a3315bcf
update fuzzer ci
2022-12-08 10:42:29 +07:00
hathach
56f846cf74
move fuzz into test/fuzz
2022-12-08 10:39:54 +07:00
hathach
19400c8556
fix typo, add -Wno-error=unreachable-code for fuzz due to latest cdc changes
2022-12-08 10:30:22 +07:00
Nathaniel Brough
6492f4a18d
feat(fuzz): Adds net class fuzzer
2022-12-08 10:13:35 +07:00
Nathaniel Brough
9cc93e6d41
.github: Add fuzzer builder
2022-12-08 10:13:35 +07:00
Nathaniel Brough
92b5f2d2e8
fuzz: Add msc fuzz harness
2022-12-08 10:13:35 +07:00
Nathaniel Brough
aedae6201b
fuzz: Add support for fuzzing
...
Adds support for fuzzing with basic cdc fuzzer.
2022-12-08 10:13:35 +07:00
Ha Thach
ab8cfb3d5b
Merge pull request #1781 from hathach/update-unit-test
...
Update unit test
2022-12-08 10:11:21 +07:00
hathach
a29b3dd690
update .codespell
2022-12-08 10:05:52 +07:00
hathach
34081f6c5c
update ci
2022-12-08 10:00:25 +07:00
hathach
be4f4e4f79
move ceedling tests to test/unit-test
2022-12-08 09:59:02 +07:00
hathach
4b50ca2a61
add missing ceedling files
2022-12-08 09:54:15 +07:00
hathach
91d5fa5639
add paths to all workflows
2022-12-08 09:44:26 +07:00
hathach
a3827b87fe
test ci paths
2022-12-08 09:30:42 +07:00
hathach
a652212f27
update ceedling to 0.31.1
2022-12-08 09:14:38 +07:00
Ha Thach
d9817ebe17
Merge pull request #1487 from tore-espressif/fix/cdc_autoflush
...
cdc: Fix autoflush for FIFO < MPS
2022-12-06 14:19:58 +07:00
Tomas Rezucha
603effbb77
cdc: Fix autoflush for FIFO < MPS
2022-12-06 07:49:26 +01:00
Ha Thach
f03c28ec31
Merge pull request #1776 from hathach/hid-fido
...
Hid fido
2022-12-05 14:32:49 +07:00
hathach
d58120647a
rename to match fido sample uf2_hid..h
2022-12-05 13:18:05 +07:00
Ha Thach
71a5906865
Merge pull request #1767 from pete-pjb/master
...
Allow the use of non-static allocation for FreeRTOS mutexes & queues
2022-12-05 12:45:48 +07:00
hathach
de5a67bf3b
clean osal_freertos, update freertos examples to work with configSUPPORT_DYNAMIC_ALLOCATION only
...
note: for example to build with configSUPPORT_STATIC_ALLOCATION = 0, one
of heap_n.c must be included in makefile/cmake
2022-12-05 12:09:41 +07:00
Ha Thach
279e2d6aeb
Merge pull request #1774 from hathach/add-codespell
...
Add codespell to ci run
2022-12-04 22:25:54 +07:00
hathach
feed1a83a9
add ignore-words to make it easier to
2022-12-04 21:28:30 +07:00
hathach
b37870c964
test exclude-file.txt, add action concurrency
2022-12-04 21:08:47 +07:00
hathach
b9314bddc5
check exclude file
2022-12-04 20:52:02 +07:00
hathach
e3df3ac5ce
add codespell config and ci run
2022-12-04 20:29:24 +07:00
Ha Thach
d6d2499ad6
Merge pull request #1695 from hadess/wip/hadess/fix-typos
...
Fix typos
2022-12-04 20:26:59 +07: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
pete-pjb
52261ac02d
Back out another of my changes I am still investigating.
2022-12-02 10:13:35 +00:00
pete-pjb
3816869fce
Some reverts and changes after discussion.
2022-12-02 10:00:19 +00:00
pete-pjb
c31b95c916
Added CFG_TUSB_MEM_SECTION define to struct _ctrl_xfer in usbh.c
2022-12-01 17:53:35 +00:00
PeterB
ae588d796e
Alter tuh_task_ext() function so no need to return when using FreeRTOS
2022-12-01 16:06:15 +00:00
Ha Thach
f24f47d038
Merge pull request #1765 from hathach/rp2040-host-bulk-comment
...
Rp2040 host bulk comment
2022-12-01 10:10:40 +07:00
Gordon McNab
8cce9385e2
More configurable board options
2022-11-30 16:18:07 +00:00
pete-pjb
25abb10de1
Fix white space issue.
2022-11-30 13:26:59 +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
Pete Bone
0ddd5591af
Merge branch 'hathach:master' into master
2022-11-30 13:43:45 +01:00
Gordon McNab
aceab1dcf3
Merge branch 'hathach:master' into port-ft90x
2022-11-30 12:16:52 +00:00
Gordon McNab
1437ad1dfb
Add endpoint definitions for more example projects.
2022-11-30 12:15:27 +00:00
hathach
c9c7dfa868
more clean up
2022-11-30 18:59:58 +07:00
hathach
069215c538
white spaces
2022-11-30 18:58:30 +07: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
pete-pjb
d588167a39
Modify FreeRTOS integration to allow non-static allocation.
2022-11-30 11:33:24 +00:00
Ha Thach
2ae6a4d519
Merge pull request #1755 from rppicomidi/fix_1721
...
Fix RP2040 Issue 1721
2022-11-30 18:00:27 +07: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
Ha Thach
52a9098b31
Merge pull request #1763 from hathach/host-retry-failed-enumeration-request
...
Retry a few times with transfers in enumeration since device can be unstable when starting up
2022-11-29 00:11:41 +07:00
hathach
be6f6f2c99
increase delay between attempts to 100ms
2022-11-28 23:43:52 +07:00
hathach
b2a3f33046
Retry a few times with transfers in enumeration since device can be unstable when starting up
2022-11-28 23:22:10 +07: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
rppicomidi
9825fbe9ac
Fix RP2040 Issue 1721
2022-11-23 13:12:31 -08:00
Ha Thach
081e4eecba
Merge pull request #1750 from hathach/rework-host-msc-complete-callback
...
Rework host msc complete callback
2022-11-23 17:47:52 +07:00
hathach
7298923927
rework tuh_msc_complete_cb_t signature to use new tuh_msc_complete_data_t
...
add user arg to all scsi command API that support complete callback
2022-11-23 16:01:48 +07:00
hathach
21d552bbdf
allow all host examples to use pico-pio-usb for rp2040
2022-11-23 12:30:10 +07:00
Ha Thach
4a2e424103
Merge pull request #1746 from hathach/host-msc-example
...
Add host msc explorer example
2022-11-21 17:22:52 +07:00
hathach
a394273ed2
add board_getchar() for non-blocking getchar()
2022-11-21 16:28:54 +07:00
hathach
460bef9dbb
host msc example work well with rp2040 pio-usb
2022-11-21 15:49:38 +07:00
hathach
ba9f88f18c
suppress fatfs cast-qual
2022-11-21 12:33:31 +07:00
hathach
53677d4844
house keeping
2022-11-21 12:28:33 +07:00
hathach
64ecf43663
whitespace
2022-11-21 11:53:15 +07:00
hathach
cab65acc46
add pwd
2022-11-21 11:52:51 +07:00
hathach
51873cd1be
implement rm command
2022-11-21 11:24:58 +07:00
hathach
47bc269b50
fix build with rp2040 and rx65
2022-11-21 11:12:10 +07:00
hathach
2312bfe3c4
implement cp command
2022-11-20 16:40:15 +07:00
hathach
bf69ffb8f7
add mv command
2022-11-19 15:53:55 +07:00
hathach
daeaea9556
add mkdir
2022-11-19 15:37:23 +07:00
hathach
16e1838862
implement cat command
2022-11-19 15:27:07 +07:00
hathach
083ed364ba
add cd command
2022-11-19 13:56:33 +07:00
hathach
bb570e02d6
msc explorer ls work great
2022-11-19 13:44:07 +07:00
hathach
a6001fc8f2
update uart read for lpc18/43 for testing
2022-11-18 21:50:00 +07:00
Ha Thach
95fb11fcff
Merge pull request #1712 from kripton/fixDhserver
...
dhserver: Support DHCP clients that don't send the MESSAGETYPE as first option
2022-11-18 21:42:39 +07:00
hathach
b00529e287
add msc file explorer example
...
- add lib/fatfs version 15
- add lib/embedded-cli
2022-11-18 21:39:04 +07:00
Ha Thach
2dc7a62361
Merge pull request #1738 from kaysievers/midi-port-names
...
MIDI: support port name strings
2022-11-16 16:36:13 +07:00
Ha Thach
67cda9b7f9
Merge pull request #1740 from hathach/add-HiFiPhile-selfhost
...
Add hifiphile self-hosted
2022-11-16 15:34:05 +07:00
hathach
fc523733c1
more ci warnings
2022-11-16 11:16:40 +07:00
hathach
9b9d841770
fix other ci warnings
2022-11-16 11:11:26 +07:00
hathach
ba0f1a3be5
disable orphan board workflow and minor update to pi4 workflow
2022-11-16 11:01:54 +07:00
hathach
d17eb94e84
only print flash output if failed
2022-11-16 09:36:12 +07:00
hathach
a6d9fda5f9
skip usb msc test
2022-11-16 01:01:03 +07:00
hathach
2f909c284a
more flash script
2022-11-15 23:47:24 +07:00
hathach
2fb0cea7e2
more test
2022-11-15 23:37:07 +07:00
hathach
468ec83c1b
correct flash.sh creation
2022-11-15 23:07:58 +07:00
hathach
d8badc948f
update yml
2022-11-15 18:13:19 +07:00
hathach
931b718289
try running HiFiPhile self-host with stm32l412nucleo
2022-11-15 18:10:41 +07:00
Ha Thach
6c6b7ee2bf
Merge pull request #1727 from HiFiPhile/bsp_412
...
Add support for STM32L412.
2022-11-15 16:15:09 +07:00
Kay Sievers
abfcdf2cfb
MIDI: support port name strings
...
This allows to set custom descriptive names for virtual MIDI
ports/cables. A MIDI port offers different functionality on
the same physical USB device. The names make it easier to
distinguish one from the other.
2022-11-11 22:48:29 +01:00
Mengsk
da1589f116
Fix FREERTOS USB IRQ priority.
2022-11-08 21:58:51 +01:00
Mengsk
f3f3739073
Fix DCD build.
2022-11-07 13:38:35 +01:00
Mengsk
9d3d8fd5b0
Merge branch 'master' of https://github.com/hathach/tinyusb into bsp_412
2022-11-07 12:47:41 +01:00
Mengsk
1eae139aa9
Add support for STM32L412.
2022-11-07 12:32:36 +01:00
Ha Thach
e434a1dc05
Merge pull request #1718 from hfegran/efm32_freertos_port_fix
...
Fixed wrong FreeRTOS port for EFM32GG12
2022-11-07 00:05:51 +07:00
Ha Thach
187e57dc81
Merge pull request #1724 from hathach/add-self-host
...
Add self host
2022-11-07 00:00:44 +07:00
hathach
030b50dce3
final clean up
2022-11-06 23:19:34 +07:00
hathach
a0dc9008a7
remove trigger hardware step
2022-11-06 22:39:09 +07:00
hathach
5d13eb8e7a
move test_hardware into build_arm
2022-11-06 22:33:55 +07:00
hathach
ca4ae61c1c
use gh cli instead of action for workflow dispatch
2022-11-06 22:06:22 +07:00
Ha Thach
a97f6a4945
Merge pull request #1723 from hathach/fix-rp2040-minor
...
Fix rp2040 minor
2022-11-06 16:02:41 +07:00
hathach
fee90f353f
bump up setup python action to v4
2022-11-06 15:17:00 +07:00
hathach
b920155444
minor clean up
2022-11-06 14:56:05 +07:00
hathach
a061bc4173
bump up pico-pio-usb
2022-11-06 14:46:44 +07:00
hathach
44e19aa3c7
rename PIO_USB_PIN_DP to PIO_USB_DP_PIN and change from 2 to 20 & moved to board.h
...
add support for PIO_USB_VBUSEN_PIN and its state.
2022-11-06 14:44:56 +07:00
Ha Thach
9e9f331503
Merge pull request #1434 from Skyler84/rp2040-hcd-bulk
...
Rp2040 hcd bulk
2022-11-05 15:16:36 +07:00
hathach
cb0ca6151b
remove CFG_TUSB_DEBUG from tinyusb_common_base
2022-11-04 17:08:02 +07:00
hathach
d2c9b8bcfb
fix -wconversion-int and add minor comment
2022-11-04 16:14:35 +07:00
Ha Thach
b554c2ed83
Merge branch 'master' into rp2040-hcd-bulk
2022-11-04 15:42:50 +07:00
Henrik Fegran
38cdeb9e60
Fixed wrong FreeRTOS port for EFM32GG12
2022-11-03 20:23:27 +01:00
Jannis Achstetter
3f3f6eee1c
dhserver: Support DHCP clients that don't send the MESSAGETYPE as first option
...
Signed-off-by: Jannis Achstetter <kripton@kripserver.net>
2022-11-01 23:42:58 +01:00
Ha Thach
28f49c088b
Merge pull request #1698 from battlesnake/fix-attrs-on-struct-member
...
do not apply storage attributes to member of struct
2022-10-25 15:23:09 +07:00
Mark K Cowan
815c2cc995
keep alignment spec
2022-10-24 20:36:45 +03:00
Ha Thach
5b1b383d2a
Merge pull request #1676 from tswan-quasi/master
...
dcd_lpc_ip3511: isochronous support and endpoint accidental write fix
2022-10-24 19:08:58 +07:00
hathach
e3b7ed9ae9
use dummy for all ZLP for ip3511, fix lpc55 build with DEBUG=1
2022-10-24 18:43:21 +07:00
tswan-quasi
35e1a27c95
unused (void) cast
2022-10-21 15:06:30 -04:00
Ha Thach
bfcdef499a
Merge pull request #1690 from tore-espressif/fix/espressif/iso_transfers
...
esp: Fix Isochronous transfers
2022-10-22 00:34:38 +07:00
Mark K Cowan
4ec1643bdb
do not apply storage attributes to member of struct
2022-10-20 22:46:21 +03:00
tswan-quasi
0b55047081
typo fix
2022-10-20 11:04:49 -04:00
tswan-quasi
fe4278554b
dummy buffer only on EP0 OUT ZLPs
2022-10-20 11:02:57 -04:00
Ha Thach
55db123a85
Merge pull request #1696 from kasjer/kasjer/fix-stm32u5-submodules
...
stm32u5: Fix submodules paths
2022-10-20 16:12:28 +07:00
Jerzy Kasenberg
19208cd88d
stm32u5: Fix submodules paths
...
Local paths were commited to submodule definitions
This just removes prefix for submodules path and name
2022-10-20 11:04:49 +02:00
Ha Thach
39be00975c
Merge pull request #1680 from LynnL4/port-stm32u5xx
...
Port stm32u5xx
2022-10-19 23:10:30 +07:00
Ha Thach
e79325adec
Merge pull request #1668 from kkitayam/add_support_for_mjpeg
...
Add support for MJPEG on UVC
2022-10-19 23:10:11 +07:00
Ha Thach
2cd4e27e98
Merge pull request #1523 from maddyaby/dcd_edpt_open
...
Allow more endpoint packet sizes for SAMD
2022-10-19 22:56:36 +07:00
Ha Thach
08a4988e99
Merge pull request #1691 from hadess/wip/hadess/fix-deps-typo
...
Fix typo in getting_started guide
2022-10-19 09:10:19 +07:00
Bastien Nocera
8f88ff559e
Fix typo in getting_started guide
...
Fixes: 1234111
("add get-deps target")
2022-10-18 15:14:45 +02:00
Tomas Rezucha
a49ca795af
esp: Fix Isochronous transfers
...
On ESP32-S2/S3 ISO transfers must be configured for even or odd frame.
Closes https://github.com/hathach/tinyusb/issues/1382
2022-10-18 08:05:13 +02:00
hathach
3f45f37672
minor rename
2022-10-17 23:13:24 +07:00
gaoyichuan
3846d5f38c
hid: add configurable report size for fido
2022-10-15 19:22:21 +08:00
gaoyichuan
2a520fb921
hid: add fido hid descriptor templates
2022-10-15 19:07:07 +08:00
Ha Thach
154821acc0
Merge pull request #1646 from battlesnake/feedback-prototype-fix
...
audio_device: prototype added for function referenced before use
2022-10-14 16:28:26 +07:00
tswan-quasi
2c1ff2673b
(void) rhport for unused parameter
2022-10-13 11:48:30 -04:00
LynnL4
4238467b2d
Add support for STM32U5 mcu
2022-10-13 17:39:42 +08:00
tswan-quasi
930c68278c
double cast of pointer to remove error
2022-10-12 11:16:35 -04:00
kkitayam
53dc9d55b5
Fix pointer type to calculate streaming parameter
2022-10-12 20:41:03 +09:00
kkitayam
2c9b5ddff0
Rename descriptor macros for consistency
2022-10-12 20:07:22 +09:00
tswan-quasi
16f1554a03
lpc55s69 isochronous, dummy address for endpoint buffers to prevent accidental writes
2022-10-11 09:59:28 -04:00
LynnL4
8a89365bb2
Add stm32u5xx offical driver.
2022-10-11 13:50:11 +08:00
Ha Thach
a95fb36f72
Merge pull request #1623 from SudoMaker/master
...
Initial PIC32MM/MX & PIC24 support
2022-10-10 20:18:01 +07:00
Ha Thach
b75d44c3ae
Merge pull request #1664 from mingpepe/master
...
Fix typo for log in dcd_rp2040.c
2022-10-10 20:15:32 +07:00
kkitayam
aed8051f50
Add motion jpeg
2022-10-08 21:53:32 +09:00
kkitayam
4be7ffd63f
Fix max payload size to clip at 1023
2022-10-07 21:30:03 +09:00
kkitayam
3499aa2b21
Fix pointer
2022-10-06 21:10:27 +09:00
ReimuNotMoe
8096afc6de
Microchip PIC24/dsPIC33 device mode support
2022-10-06 03:45:51 +08:00
mingpepe
988eeb50c6
Fix typo for log in dcd_rp2040.c
2022-10-05 21:26:22 +08:00
kkitayam
ee832e4e37
Fix descriptor searching
2022-10-03 21:41:58 +09:00
Mark K Cowan
6c3c2df823
audio_device: prototype added for function referenced before use
2022-09-17 21:27:04 +03:00
Ben Avison
73f22e31c7
[rp2040] Wrap GCC pragmas in #ifdef __GNUC__
...
IAR generates warning Pe161 'unrecognized #pragma'.
2022-09-13 18:00:51 +01:00
Ben Avison
01edbb8af6
IAR doesn't support __attribute__((fallthrough))
...
IAR generates warning Pa167 'the "fallthrough" attribute is not supported'.
It doesn't generate warnings when one switch case falls through to another,
so simply make TU_ATTR_FALLTHROUGH expand to an empty string.
Also replace one instance of __attribute__ with the macro.
2022-09-13 18:00:51 +01:00
Ben Avison
62d90c8500
Move variable into its own curly-brace scope
...
IAR generates warning Pe546 'transfer of control bypasses initialization of
variable "invInvTag"'.
2022-09-13 18:00:51 +01:00
Ben Avison
caff3b5c54
Remove unused static data
...
This affects struct rspMsg in usbtmc_app.c (unconditionally) and uint8_t
termChar in usbtmc_device.c (when NDEBUG is defined). IAR generates warning
Pe550 'variable was set but never used'.
2022-09-13 18:00:51 +01:00
Ben Avison
6a2d01bae4
Don't assume different enum types can be combined
...
IAR generates warning Pa089 'enumerated type mixed with another enumerated
type'.
2022-09-13 18:00:51 +01:00
Ben Avison
53f0d5538b
Don't assume ints automatically convert to enums
...
IAR generates warning Pe188 'enumerated type mixed with another type'.
2022-09-13 18:00:50 +01:00
Ben Avison
65ba15c37d
Remove unreachable code
...
IAR generates warning Pe111 'statement is unreachable'. In a couple of
cases, replace return statements with TU_ATTR_FALLTHROUGH; because some
compilers apparently can't figure out that the return statements are
unreachable but do whinge about an imagined fall-through without them!
2022-09-13 18:00:50 +01:00
Ben Avison
16518dcbbb
Refactor pointer arithmetic on void*
...
This is a GCC extension, illegal in ISO C. IAR generates errors Pa152
'these operand types cannot be used here' and Pe852 'expression must be a
pointer to a complete object type'.
Replace with uint8_t*.
2022-09-13 18:00:49 +01:00
kkitayam
1debf62707
Fix compile errors
2022-09-13 21:22:02 +09:00
kkitayam
e80714740c
Change images to MJPEG
2022-09-13 21:22:02 +09:00
Ha Thach
111515a29c
Merge pull request #1629 from jmark1m/master
...
Fix bug #1628 by preventing shared irq slots for filling up
2022-09-13 15:08:12 +07:00
Ha Thach
7ba950c006
Merge pull request #1642 from kasjer/kasjer/nrf5x-fix-out-iso-packet-size-report
...
nrf5x: Fix reception of large ISO packets
2022-09-13 14:57:01 +07:00
Jerzy Kasenberg
3133cacc6a
nrf5x: Fix reception of large ISO packets
...
ISO packet size is up to 1023 for full speed device.
Upon completion of ISO reception, reported length of incoming packet
was truncated to one byte only.
This results in incorrect data stream for higher bit rates
48 samples * 4 bytes per sample * 2 channels = 384 bytes of data
and 128 was reported.
There is no change in logic extending xact_len to uint16_t fixes the issue.
2022-09-13 08:11:56 +02:00
Ha Thach
6393412380
Merge pull request #1641 from hathach/fix-1634
...
re-added code in pr 1438 to fix compile with h7 with 1 usb otg
2022-09-13 11:46:32 +07:00
hathach
7a48b1f0d1
re-added code in pr 1438 to fix compile with h7 with 1 usb otg
2022-09-13 11:04:48 +07:00
Ben Avison
6dfc857b91
[rp2040] Explicit cast value of hw_set_alias
...
Some compilers don't support the GNU extension `typeof` so their definitions
of `hw_set_alias` can't inherit their type from their argument, and the best
we can do is have `hw_set_alias` act the same as `hw_set_alias_untyped`.
This requires an explicit cast when the macro is used instead, otherwise
IAR generates error Pe132 'expression must have pointer-to-struct-or-union
type but it has type "void *"'.
The same goes for `hw_clear_alias`.
2022-09-12 18:46:09 +01:00
Ben Avison
e5355d0335
[rp2040] Remove non-portable return statements
...
IAR generates error Pe118 'a void function may not return a value'.
2022-09-12 18:46:09 +01:00
Ben Avison
d28ff1175d
IAR declares strncasecmp in string.h not strings.h
...
strings.h is not an ISO header file, so IAR generates fatal error Pe1696
'cannot open source file "strings.h"'. Even though strncasecmp isn't an
ISO C library function, IAR's runtime library defines it, though it
declares it in string.h instead.
2022-09-12 18:46:01 +01:00
jmark1m
0931b52b66
Fix bug #1628 by preventing shared irq slots for filling up
2022-09-07 15:10:44 -05:00
ReimuNotMoe
c5992edc7d
Initial PIC32MM/MX & PIC24 support
2022-09-03 05:19:50 +08:00
Ha Thach
b624664f52
Merge pull request #1614 from kasjer/kasjer/fix-nrf5x-with-iso
...
nrf5x: Fix endpoint internal state when closed
2022-08-26 13:47:36 +07:00
Jerzy Kasenberg
5e3cfe7b57
nrf5x: Fix endpoint internal state when closed
...
Field started (regardind transfer) was only cleaed when transfer
was finished.
For audio devices set interface is called many times.
When there is no audio (silence) set interface requests zero
lenght bandwithd that in turn calls dcd_edpt_close().
When endpoint is closed due to set interface request transfer
should not longer be started since it will block next start transfer
with assert.
This just sets 'started' to false when endpoint is closed.
2022-08-26 08:10:15 +02:00
Ha Thach
101cbf6e31
Merge pull request #1613 from Lan-Hekary/video-descriptors-fix
...
Remove Hardcoded interface numbers from video descriptors
2022-08-25 18:44:22 +07:00
Ahmed El-Sharnoby
8a537a0092
Remove Hardcoded interface numbers from video descriptors
...
Removing the Hardcoded interface numbers from the video descriptors allow the user to add other interfaces before or after the Video Control Interface and Video Streaming Interface
2022-08-23 17:18:32 +02:00
Ha Thach
e3b4d3f406
Merge pull request #1611 from hathach/fix-release-body
...
try to fix release body in tinyusb_src (not tested)
2022-08-23 14:44:02 +07:00
hathach
660e8f50a7
try to fix release body in tinyusb_src (not tested)
2022-08-23 14:43:09 +07:00
Ha Thach
9e91b02ec7
Merge pull request #1609 from hathach/release-0.14.0-p2
...
update repository.yml
2022-08-23 13:15:11 +07:00
hathach
3e815c709c
update repository.yml
2022-08-23 12:00:20 +07:00
Ha Thach
05e19b7848
Update feature_request.yml
2022-08-19 23:57:39 +07:00
Ha Thach
f6c1ce5b1c
Merge pull request #1569 from hathach/release-0.14.0
...
increase version to 0.14.0 for release
2022-08-19 21:13:09 +07:00
hathach
961e83e083
more docs update
2022-08-19 17:14:53 +07:00
Ha Thach
792b2fb956
Merge pull request #1603 from Ryzee119/hub_improv
...
Host hub clear port and device interrupts
2022-08-17 15:03:48 +07:00
Ryzee119
2b2354d302
Hub: Clear other port feature changes
2022-08-16 18:25:46 +09:30
Ryzee119
3c7b5dcaff
Hub: Handle hub device status change interrupt
2022-08-16 18:25:43 +09:30
Ha Thach
585f37a797
Merge pull request #1489 from kasjer/kasjer/fix-nrf5x-dma-access
...
nrf5x: Fix DMA access
2022-08-15 21:30:39 +07:00
Ryzee119
aafea8ef5d
Hub: Rename port status callback to be more generic
2022-08-15 17:43:04 +09:30
Ryzee119
5efef4393c
Hub: Expand hub helpers to handle device events
2022-08-15 17:42:56 +09:30
Ha Thach
8a28e7cd75
Merge pull request #1597 from kasjer/kasjer/dfu-coexistence
...
dfu: Allow DFU coexistence with other interfaces (BTH, RNDIS, future one)
2022-08-10 12:45:22 +07:00
Ha Thach
7ade0d0ce4
Merge pull request #1588 from majbthrd/stm32l052
...
add 'stm32l052dap52' (STM32L052K8 MCU) board target
2022-08-10 12:41:29 +07:00
Jerzy Kasenberg
c7469ce986
dfu: Allow DFU coexistence with other interfaces
...
dfu_moded_open() only works correct when its called on DFU interface
descriptor. It means that DFU is the only one interface in configuration
or driver is called after all others interface drivers were tried and
gave up.
If other interface is supported and but driver for DFU is called first
(this is the case for BTH and RNDIS).
Code after while loop (that was not entered) has an TU_ASSERT that will
make set_configuration to fail.
Now TU_VERIFY is called first to make sure open code is called for DFU
only and not other interface descriptors like in other drivers.
2022-08-09 10:42:30 +02:00
Peter Lawrence
d1c61e33a6
add 'stm32l052dap52' (STM32L052K8 MCU) board target
...
'dap52' is Olimex's name of their STM32L052-based fork of 'dap42'
2022-08-03 12:31:37 -05:00
Ha Thach
251ce98990
Merge pull request #1586 from hathach/fix-TUD_OPT_HIGH_SPEED
...
fix issue with TUD_OPT_HIGH_SPEED
2022-08-01 15:51:54 +07:00
hathach
a219ba86ea
fix issue with TUD_OPT_HIGH_SPEED
2022-08-01 14:52:29 +07:00
hathach
fe7fca7abb
minor clean up
2022-08-01 14:42:58 +07:00
hathach
4a47db97eb
test hw dfu_runtime
2022-07-29 11:32:17 +07:00
hathach
aa8880c681
clean up
2022-07-28 22:13:39 +07:00
hathach
292dea408f
add dfu test
2022-07-28 21:27:38 +07:00
hathach
cbb7c9f313
fix hw test
2022-07-28 13:31:42 +07:00
hathach
d36ea6ddc1
update issue template
2022-07-28 12:23:01 +07:00
hathach
229a1c1458
update hw test
2022-07-28 11:37:09 +07:00
hathach
e01b437af5
more hw test
2022-07-28 11:10:54 +07:00
hathach
2d5be43747
fix typo
2022-07-27 20:31:57 +07:00
hathach
4411579ae0
ci update
2022-07-27 16:34:22 +07:00
hathach
05ccd6c32b
more hw test update
2022-07-27 15:44:21 +07:00
hathach
1ff0c7a52b
sleep 0.2 for new image take affect
2022-07-27 15:20:56 +07:00
hathach
f5f2433c5a
wait for enumeration before test
2022-07-27 12:08:50 +07:00
hathach
95c0262cd6
update test
2022-07-26 23:14:27 +07:00
hathach
d15a86bc69
test flash and hw test with cdc msc
2022-07-26 16:49:51 +07:00
hathach
0be6db50f8
test self-hosted
2022-07-26 16:31:07 +07:00
hathach
23ea8d1e25
update doc
2022-07-25 22:27:33 +07:00
Ha Thach
fd5bb6e5db
Merge pull request #1514 from maddyaby/audiod_typo
...
Fix typo in audiod_rx_done_cb in audio_device.c
2022-07-19 17:10:45 +07:00
hathach
b0b155c949
increase version for release
...
along with minor doc update
2022-07-19 12:28:52 +07:00
Ha Thach
ed2e587ace
Merge pull request #1568 from hathach/revert-hid-callback-len-temporarily
...
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() 0.14.0 release
2022-07-19 12:16:32 +07:00
Ha Thach
2110e27678
Merge pull request #1531 from pigrew/usbtmc_highspeed
...
USBTMC: Fixes and support for high-speed USB
2022-07-18 22:20:43 +07:00
hathach
b495d6f8ec
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release
2022-07-17 22:56:07 +07:00
Ha Thach
868f2bcda0
Merge pull request #1554 from kilograham/rp2040_warning2
...
Rework CMake example warnings some more
2022-07-14 21:53:34 +07:00
hathach
7e4c0f64cd
abtract attribute fallthrough
2022-07-14 18:39:47 +07:00
graham sanderson
4bd47bcb99
disable bad gcc 6 warning
2022-07-12 13:29:47 -05:00
graham sanderson
fc1a27b6c9
RP@040: rework CMake for compiler warnings
2022-07-12 12:58:30 -05:00
Ha Thach
1a8c3a863b
Merge pull request #1552 from hathach/fix-old-gcc
...
Fix warnings when compiling rp2040 with older version of gcc
2022-07-12 11:08:19 +07:00
hathach
4ea27acd1d
minor update to webusb serial example
2022-07-12 01:55:33 +07:00
hathach
345558307d
fix incorrect null-dereference warnings when compiling with gcc7
2022-07-12 00:50:52 +07:00
hathach
bb5dbd2da8
only enable warnings with approriate gcc version for rp2040
2022-07-11 23:57:34 +07:00
Ha Thach
0bfb9d62de
Merge pull request #1543 from robert-hh/1170_0.13.0
...
mimxrt: Change the definitions for MIMXRT boards.
2022-07-11 15:53:24 +07:00
hathach
6da1e93edd
fix rt1050 evk build with latest mcu-sdk
2022-07-11 14:21:19 +07:00
hathach
19768936ae
bump up mcux-sdk for rt11xx, add back OPT_MCU_MIMXRT11XX
2022-07-11 14:01:18 +07:00
NConrad
54250d7dd5
USBTMC: explicit type conversions fix
2022-07-09 17:50:17 -04:00
Ha Thach
ecb899408b
Merge pull request #1544 from hathach/ci-parallel-build
...
Ci parallel build
2022-07-01 20:52:46 +07:00
hathach
53db23142a
add get-dependencies.py
2022-07-01 17:23:14 +07:00
hathach
5323472afd
update get-deps for ci
2022-07-01 16:37:34 +07:00
hathach
12341118e3
add get-deps target
...
update ci to get-deps first
2022-07-01 16:24:58 +07:00
robert-hh
ec6f56768a
mimxrt: Change OPT_MCU_MIMXRT1xXX to OPT_MCU_MIMXRT.
...
Which fits both MIMXRT10XX and MIMXRT11XX.
2022-07-01 09:04:36 +02:00
robert-hh
60c1750a9b
mimxrt: Add/change definitions for MIMXRT11XX boards.
...
These are mostly identical to the MIMXRT10XX, with one tiny difference.
2022-06-30 22:21:31 +02:00
Ha Thach
68c2012ed1
Merge pull request #1540 from phryniszak/master
...
Define CFG_BOARD_UART_BAUDRATE in CMake
2022-07-01 01:07:31 +07:00
Ha Thach
2754c641cb
Merge pull request #1542 from hathach/fix-rp2040-remote-wakeup
...
rp2040 enable SOF as resumed signal when remote wakeup
2022-06-30 16:27:10 +07:00
hathach
9ec92ff97b
rp2040 enable SOF as resumed signal when remote wakeup
2022-06-30 15:45:04 +07:00
Pawel Hryniszak
023191be23
Let to define CFG_BOARD_UART_BAUDRATE in CMake
2022-06-29 20:28:22 +01:00
hathach
8f9ecace4d
update build_board.py to parallel build
2022-06-29 21:06:02 +07:00
hathach
d5d5a6437c
more parallel ci
2022-06-29 18:23:45 +07:00
hathach
8d07ea7ce5
build_family.py in parallel
2022-06-29 16:39:19 +07:00
Ha Thach
19956f070d
Merge pull request #1539 from hathach/improve-ci
...
Improve ci
2022-06-29 16:27:17 +07:00
hathach
158b3d761d
fix xmc4000 build
2022-06-29 15:27:24 +07:00
hathach
4da1a9359d
fix build with fomu/fomu
2022-06-29 15:12:01 +07:00
hathach
5a378703fb
fix end symbol for samx7x and same5x
2022-06-29 15:05:09 +07:00
hathach
7949a4ec7c
skip freertos example for F1C100S
2022-06-29 14:12:58 +07:00
hathach
a62c2640b5
remove redundant rp2040 boards, all boards supported by pico-sdk already supported
2022-06-29 14:08:01 +07:00
hathach
1e00fe78c7
use action gcc
2022-06-29 14:07:00 +07:00
hathach
8fe9022a6e
fix buid_board.py script
2022-06-29 14:06:44 +07:00
Ha Thach
39069cf4be
Merge pull request #1538 from kilograham/another_compiler_wawrning
...
Fix actual compiler warning on gcc 10.3.1
2022-06-29 13:47:42 +07:00
graham sanderson
b12863d27c
Fix actual compiler warning on gcc 10.3.1
2022-06-29 07:28:35 +01:00
Ha Thach
3681ad2941
Merge pull request #1521 from kilograham/rp2040_warning
...
Re-add some warning suppression for rp2040
2022-06-29 11:39:05 +07:00
Ha Thach
c7fce32dff
Merge pull request #1535 from robert-hh/samd_xfer_lockup
...
samd: Fix a lock-up situation at high traffic.
2022-06-28 20:36:04 +07:00
hathach
898b52be45
update rp2040 warnings
...
- remove "-Wno-stringop-overflow -Wno-array-bounds"
- skip -Wconversion for gcc 9 and prior
- suppress_tinyusb_warnings only when building with gcc 9 and below
2022-06-28 16:27:44 +07:00
hathach
83602ea123
Merge branch 'master' into rp2040_warning
2022-06-28 13:34:47 +07:00
graham sanderson
4057c2d8d9
rework suppress_tinyusb_warnings
...
* gcc 9.2.1 has some spurious -Wconversion warnings
* cmake 3.18 and above require set_target_properties to be added from the target directory (so added it to all examples)
* fixed a few warnings in a couple of examples
2022-06-27 22:43:41 +01:00
robert-hh
bc4da2047b
samd: Fix a lock-up situation at high traffic.
...
This PR fixes a transmit lock-up, which happens, when data is received
and sent at the sime time at moderate to high speeds, like code
which just echoes incoming data.
In my case, an issue was reported here:
https://github.com/micropython/micropython/issues/8521
2022-06-27 20:31:44 +02:00
Ha Thach
3ead682af0
Merge pull request #1534 from hathach/add-more-warnings
...
Add more warnings
2022-06-27 22:27:24 +07:00
hathach
25580b4fe9
use forloop to avoid -Warray-bounds with host setup packet
2022-06-27 21:05:41 +07:00
hathach
9c56f70111
suppress error with net example
2022-06-27 20:30:47 +07:00
hathach
dd7a17c345
prevent error on specific warnings for net lwip & dual example for rp2040
2022-06-27 17:53:42 +07:00
hathach
a0ef489890
fix all warnings with host rp2040
2022-06-27 17:11:24 +07:00
hathach
6522a8150e
fix all device examples warnings
2022-06-27 13:48:47 +07:00
hathach
1a1f633922
Merge branch 'master' into add-more-warnings
2022-06-27 12:50:50 +07:00
Ha Thach
bc0f5502e2
Merge pull request #1533 from hathach/hid-report-len-uint16
...
Hid report len uint16
2022-06-27 12:47:08 +07:00
hathach
556b5d5044
change report len in hid API from uint8_t to uint16_t
...
since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
affected APIs are:
- tud_hid_n_report() / tud_hid_report()
- tud_hid_report_complete_cb()
2022-06-27 12:22:36 +07:00
hathach
0b3503cb33
clean up usbd log level
2022-06-27 11:56:48 +07:00
hathach
b9dc9dbd78
fix most warnings with rp2040 -wconversion
2022-06-27 11:50:17 +07:00
NConrad
c675debfb2
USBTMC: Handle busy interrupt in.
2022-06-26 14:34:34 -04:00
NConrad
239b5d5279
USBTMC: Manually stall and unstall EP when clear(ENDPOINT_HALT) is received.
2022-06-24 23:06:32 -04:00
NConrad
3d4d37375b
USBTMC: Update test python code to use the new pyvisa namespace, and other misc fixes
2022-06-24 21:24:31 -04:00
hathach
0042eccb3b
fix redundant-decls warnings by usbd/usbh
2022-06-24 22:52:11 +07:00
hathach
1d6918ce41
suppress redundant-decls warnings for freertos examples
2022-06-24 21:53:46 +07:00
hathach
835ab01cab
fix stm32 g4 and wb build issue with freertos, also add them to ci build
2022-06-24 21:52:51 +07:00
hathach
4f6e770eda
add more warning option, also fix -Wconversion with rp2040
...
-Wuninitialized, -Wunused, -Wredundant-decls
2022-06-24 19:46:19 +07:00
Ha Thach
4639cac85c
Merge pull request #1526 from ccrome/chc-add-teensy-41
...
Added The Teensy 4.1 board
2022-06-22 11:22:44 +07:00
NConrad
4a9fe813a8
Update USBTMC descriptors to support high speed, set USB version to 2.0.0 for all cases.
2022-06-21 22:31:09 -04:00
NConrad
e9c29e6a2d
Update USBTMC driver to support dynamic packet sizes (based on descriptor).
2022-06-21 21:27:52 -04:00
caleb crome
742b99f689
Added The Teensy 4.1 board
...
The Teensy 4.1 board has an 8MB W25Q64JV as opposed to the 2MB flash
on the Teensy 4.0. This largely doensn't matter for TinyUsb, except
when you attempt to access any memory in the flash above the 2MB
boundary, when it fails with a hard fault.
2022-06-21 11:12:39 -07:00
Ha Thach
070382d599
Merge pull request #1509 from liamfraser/rp2040_hcd_improvements
...
RP2040 HCD Improvements (Hub + Keyboard + Mouse working)
2022-06-21 15:55:02 +07:00
Ha Thach
ae8b8f0c93
Merge pull request #1515 from maddyaby/dcd_edpt_close
...
Stub out dcd_edpt_close for samd
2022-06-18 12:40:39 +07:00
Ha Thach
b4e62d1cda
Merge pull request #1518 from mingpepe/master
...
Fix typo for log format
2022-06-18 12:39:16 +07:00
maddyaby
2cc2a90215
Allow more endpoint packet sizes for SAMD
...
Tested on SAMD51 - we can allow more packet sizes by checking that the set size value is greater than the requested packet size instead of exactly the same.
2022-06-17 16:07:32 -07:00
graham sanderson
2f7f3e604e
Re-add some warning suppression for rp2040
2022-06-17 12:54:28 -05:00
Ha Thach
d09d0b3147
Merge pull request #1519 from kilograham/rp2040_shared_handler
...
rp2040: use shared IRQ handlers, so user can also hook the USB IRQ
2022-06-17 22:17:42 +07:00
graham sanderson
c45118dacf
rp2040: use shared IRQ handlers, so user can also hook the USB IRQ
2022-06-17 09:13:40 -05:00
mingpepe
1001d2da40
Fix typo for log format
2022-06-17 16:50:24 +08:00
Ha Thach
e0d7c16788
Merge pull request #1516 from hathach/fix-example-with-highspeed
...
correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples
2022-06-17 15:11:55 +07:00
hathach
905a0b2457
correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples
2022-06-17 14:37:35 +07:00
maddyaby
05fc2fa7a6
Stub out dcd_edpt_close for samd
...
Not having this prevents the device from finishing the mounting process.
Tested on a SAMD51 and didn't seem to need to actually do anything in the close function.
2022-06-16 16:57:20 -07:00
Maddy
e9089b993f
Fix typo in audiod_rx_done_cb in audio_device.c
2022-06-16 16:22:55 -07:00
Ha Thach
80121303eb
Merge pull request #1512 from kilograham/make_ram_code_optional
...
rp2040: make moving 1K of code into RAM optional - and off by default
2022-06-16 23:30:29 +07:00
graham sanderson
c5ba4af25b
rp2040: make moving 1K of code into RAM optional - and off by default
2022-06-16 11:04:48 -05:00
Ha Thach
d7b579a978
Merge pull request #1480 from Ryzee119/multihub_rebase
...
Host: Add support for multi-level usb hubs
2022-06-16 16:33:48 +07:00
hathach
2036a0b62a
update readme
2022-06-16 14:41:10 +07:00
hathach
f4a7b5b80c
add note for recursive calls of process_device_unplugged() in case of hub
2022-06-16 14:37:57 +07:00
Liam Fraser
19d054f789
hcd_rp2040 improvements:
...
- Stall now has priority over other interrupt responses
- Delete eunused hcd_edpt_busy
- Assert !ep->active when trying to start a new xfer
- Assert !ep->active when handling buff_status bits
- Set ep->xferred_len to 8 once a setup packet is finished so the data
structure is accurate
2022-06-13 16:19:11 +01:00
Ha Thach
eb7d359efc
Merge pull request #1506 from hathach/more-dynamic-rhport
...
more dynamic controller for host
2022-06-10 15:24:26 +07:00
hathach
040ef0640d
more dynamic controller for host
2022-06-10 14:53:03 +07:00
Ha Thach
96fecedabe
Merge pull request #1505 from hathach/revert-sof-rename
...
revert sof_isr driver rename since it cause issue with existing code
2022-06-10 12:00:42 +07:00
hathach
8451d05c50
revert sof_isr driver rename since it cause issue with existing code
...
also removed commented tud_sof_isr_set() API
2022-06-10 01:45:48 +07:00
Ha Thach
806806d61b
Merge pull request #1501 from hathach/more-rp2040-ramfunc
...
make all hcd/dcd function used in isr into ram
2022-06-08 17:29:19 +07:00
hathach
dd035b0eb2
make all hcd/dcd function used in isr into ram with __no_inline_not_in_flash_func() for faster irq handling
...
result is 1KB of code moved from rom -> ram
2022-06-08 16:08:53 +07:00
Ha Thach
8c4b142b9e
Merge pull request #1498 from hathach/add-tuh_config-port-specific-setup
...
add tuh_configure() for port/dynamic host behavior config
2022-06-08 15:36:37 +07:00
hathach
8cbc34de11
add tuh_configure() for port/dynamic host behavior config
2022-06-08 01:17:01 +07:00
Ha Thach
896c707cd4
Merge pull request #1496 from hathach/rp2040-sof-fastfunc
...
add TU_ATTR_FAST_FUNC for audio sof isr call chain
2022-06-07 13:38:26 +07:00
hathach
06392247eb
add TU_ATTR_FAST_FUNC for audio sof isr call chain
2022-06-07 11:50:50 +07:00
Ha Thach
a03a03d74e
Merge pull request #1495 from hathach/enhance-tusb-config
...
Better support multiple controllers configuration
2022-06-07 01:13:08 +07:00
hathach
7c8278303b
update all host examples
2022-06-06 23:16:49 +07:00
hathach
9794a2b865
more example update
2022-06-06 22:41:04 +07:00
hathach
f4c80dd218
clean up example to use CFG_TUD_ENABLED + CFG_TUD_MAX_SPEED instead of CFG_TUSB_RHPORT0_MODE
2022-06-06 17:35:17 +07:00
Ha Thach
afd9b1883d
Merge pull request #1481 from cr1901/msp430-misopt-fix
...
msp430x5xx: Add fix for possible bug in msp430-elf-gcc 9.3.0.
2022-06-06 15:37:45 +07:00
hathach
1b08672945
more ci fix
2022-06-06 13:25:48 +07:00
hathach
7187cd9a85
fix ci, remove use of CFG_TUSB_RHPORT0_MODE in bsp
2022-06-06 12:51:10 +07:00
hathach
f626916a57
update all dwc2 ports to support new dynamic controller support
2022-06-04 23:52:12 +07:00
Ryzee119
7df7590f7f
Hub: Remove multi-level hub bypass
2022-06-04 18:58:20 +09:30
hathach
31134f41a1
make dwc2 stm32 rhport support dynamic
2022-06-03 17:24:28 +07:00
hathach
2571211957
remove static port defined for device/host
2022-06-03 11:32:09 +07:00
Jerzy Kasenberg
8b37aa1579
nrf5x: Fix DMA access
...
There were two problems:
- dma_running flag could be checked in USB interrupt (not set yet) then higher priority
interrupt could start transfer, check dma_running (not set yet) set it to true start
DMA; then when USB interrupt continues it starts another DMA that is not allowed
- when DMA is started some registers can't be safely accessed, read can yield invalid
values (SIZE.EPOUT, SIZE.EPISO)
current implementation could start DMA for one OUT endpoint then check that another
endpoint also has data and while DMA was not started right away, SIZE.EPOUT was copied
already to MAXCNT register. Later on when DMA was started not all data was read from
endpoint due to incorrect DMA size previously set.
To prevent both cases dma_running is changed in atomic way.
Only code that actually set this value to true starts DMA, code that tried and
had dma_running flag already set simply defers DMA start to USB task.
This eliminates also need to have mutex that was there to limit access to dma_running flag
to one task only.
transfer also now has started flag that is set only after dcd_edpt_xfer() sets up total_len
and actua_len. Previously USB interrupt was disabled when total_len and actual_len were
setup to prevent race condition when data arrived to ednpoint before transfer was setup
was finished.
2022-06-02 17:23:35 +02:00
hathach
8b9cf152a0
rhport argument in usbd_ API() is not used (always use the initialized port)
...
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
Rafael Silva
ea81d22f18
add __evenaccess keyword for CCRX compiler compatibility
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
fbc2979428
fix iso int register typo
...
druing the renaming int and iso endpoint configurations were swapped
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
2022-06-02 09:35:30 +01:00
Rafael Silva
79fd23974c
fix host preprocessor flag typo
...
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
2022-06-02 09:35:30 +01:00
Rafael Silva
60aae59eeb
style code for consistency with existing codebase
2022-06-02 09:35:30 +01:00
Rafael Silva
e0220c6594
fix int handling for host in ek_ra4m3 port
2022-06-02 09:35:30 +01:00
Rafael Silva
c529d0b440
remove duplicate link register bit macros
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
e7027efe7a
add contributions to docs
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
4c89776a27
add renesas ek-ra4m3 board port
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
0bf0e0b35f
add renesas ra mcu family to supported devices docs
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
a936bafb8c
add support for renesas ra family of mcus
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
2a17a7e8f8
rework make freertos port handling
...
this allows ports to specify a freertos port outside the FreeRTOS-Kernel lib directory, which would otherwise not be possible
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
03777f4a46
generalize renesas LINK core driver
...
create local register access struct and move mcu specific code
in preparation of support for other mcu families that use the LINK usb core
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
dcadbf3364
rename renesas driver to link
...
link was chosen according to the name for the usb core on datasheets, LINK core
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
f2e8a60e6d
add .vscode to gitignore
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
0ee74a71e2
add renesas fsp submodule
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:28 +01:00
hathach
99c1585ed2
rename board specific macro for example
...
- BOARD_DEVICE/HOST_RHPORT_NUM to BOARD_TUD/H_RHPORT
- BOARD_DEVICE/HOST_RHPORT_SPEED to BOARD_TUD/H_MAX_SPEED
2022-06-01 23:53:40 +07:00
Ha Thach
b6a8d0dd71
Merge pull request #1485 from tfx2001/patch-1
...
Fix compile error
2022-06-01 23:26:57 +07:00
tfx2001
54d7790e8b
fix compile error
2022-06-01 21:37:26 +08:00
Ha Thach
d1d6bd2831
Merge pull request #1483 from hathach/clean-rp2040-net-example
...
remove cmake compile macro for net example (use lwipopts.h instead)
2022-06-01 16:17:46 +07:00
hathach
ea8a9e0249
remove cmake compile macro for net example (use lwipopts.h instead)
2022-06-01 15:10:05 +07:00
Ha Thach
fd8afc7e3b
Merge pull request #1454 from Iktek/bugfix_1453
...
overwrite grstctl on edpt_disable
2022-06-01 14:36:36 +07:00
hathach
6e7cd220dc
grstctl set fifo + flush in one assign
2022-06-01 13:18:24 +07:00
Ha Thach
9352f75220
Merge pull request #1438 from Nikitarc/master
...
Update dwc2_stm32.h
2022-06-01 12:23:32 +07:00
Ha Thach
fdeac8508b
Merge pull request #1381 from hathach/add-sof-isr
...
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
Ha Thach
ab7c23a787
Merge pull request #1479 from M3gaFr3ak/master
...
Fix printf long int compiler error
2022-05-31 21:53:29 +07:00
hathach
e384d16d57
clean up tud_audio_set_itf_cb() invocation
2022-05-31 21:52:54 +07:00
Ha Thach
223aaeaecd
Merge pull request #1463 from hathach/sof-isr-update
...
changes proposal to audio feedback computation
2022-05-31 20:57:07 +07:00
hathach
f2926670cc
comment out fifo count method for now
2022-05-31 20:26:37 +07:00
William D. Jones
731ac3d3d6
msp430x5xx: Add fix for possible bug in msp430-elf-gcc 9.3.0.
2022-05-30 14:28:30 -04:00
Ryzee119
b7c8cb3c41
Hub: Unplug downstream devices on non-root hub disconnect
2022-05-29 14:15:57 +09:30
Ryzee119
9e30ec4f16
Hub: Retry port status transfer if failed
2022-05-29 14:15:23 +09:30
Ryzee119
688a3a0cc2
Fix non-trivial designated initializers compile error
2022-05-29 14:15:18 +09:30
Leon Loeser
a87ccee743
Fix printf long int compiler error
2022-05-28 19:48:20 +02:00
Ha Thach
f4efb51fe2
Merge pull request #1477 from cr1901/fix-subm
...
Remove lib/Pico-PIO-USB, which has moved to hw/mcu/raspberry_pi/Pico-PIO-USB. Fixes #1475 .
2022-05-28 00:11:43 +07:00
hathach
dce2ad4ffb
adding feedback fifo count (WIP)
2022-05-27 23:11:25 +07:00
William D. Jones
f76c7526c9
Remove lib/Pico-PIO-USB, which has moved to hw/mcu/raspberry_pi/Pico-PIO-USB.
2022-05-27 11:54:28 -04:00
hathach
15aa593790
wrap feedback and compute to its own struct/union
2022-05-27 12:27:31 +07:00
Ha Thach
7b1344fe69
Merge pull request #1467 from kilograham/rp2040_cleanup
...
Minor cleanup of RP2040 code post addition of Pico-PIO-USB
2022-05-26 23:54:20 +07:00
Ha Thach
c1ae13b997
Merge pull request #1473 from sknebel/patch-1
...
fix links in docs
2022-05-25 22:55:33 +07:00
Sven
16c0eb0d2f
fix links in docs
...
changed markdown formatting to rst formatting
2022-05-24 21:45:35 +02:00
Ha Thach
0a4a28a90c
Merge pull request #1451 from kasjer/kasjer/pic32-sanity-fixes
...
pic32 sanity fixes
2022-05-24 20:42:06 +07:00
Ha Thach
2683deb0dd
Merge branch 'master' into ch32v307
2022-05-21 13:54:25 +07:00
graham sanderson
26c4d4b328
Minor cleanup of RP2040 code post addition of Pico-PIO_USB
...
* Removed some compiler warnings, and cleaned out unnecessary warning suppression from CMake suppress_tinyusb_warnings()
* Made explicit family_configure_dual_usb_example() for DUAL mode examples as family_configure_target() may not generally be called multiple times for the same target
* Renamed library pico_pio_usb to tinyusb_picio_pio_usb to be clearer and avoid conflict if someone already has a pico_pio_usb in their project
* Added family_add_pico_pio_usb() method for adding Pico-PIO_SUB support to an existing example
* Allowed tinyusb_pico_pio_usb to be added to regular apps using the Pico SDK
2022-05-20 17:25:30 -05:00
hathach
e5113a1cfc
prototype for feedback method
2022-05-19 16:05:55 +07:00
hathach
5766c9ac4e
rename tud_audio_sof_isr() to tud_audio_feedback_interval_isr()
...
- also add interval_log2 to isr callback
- also rename other variables
2022-05-19 13:44:10 +07:00
Ha Thach
c2bcda86e2
Merge pull request #1412 from hathach/pio-host
...
PIO USB support
2022-05-16 16:29:20 +07:00
hathach
e0e9426c2a
print addres of mouse input
2022-05-16 16:00:15 +07:00
hathach
4586d8f119
add upstream Pico-PIO-USB
2022-05-16 13:44:06 +07:00
hathach
be2a51316c
remove pico-usb fork
2022-05-16 13:29:12 +07:00
hathach
20b810d25b
fix ci build
2022-05-13 23:01:06 +07:00
hathach
c5ba1ea8c1
changes proposal to audio feedback computation
2022-05-13 22:54:47 +07:00
hathach
f09df55ab9
clean up example
2022-05-11 15:40:02 +07:00
hathach
8bd923f5f1
sync with pio usb
2022-05-11 00:37:45 +07:00
hathach
8473ca16fb
clean up
2022-05-10 22:56:06 +07:00
hathach
35b77a4a81
cmake lib rename
2022-05-10 22:14:00 +07:00
hathach
717a474125
move pio-usb init to family_configure_pio_usb_example() to stay compatible
2022-05-10 21:56:47 +07:00
hathach
993f7b6a2c
include dual examples to ci
2022-05-10 13:15:07 +07:00
hathach
e3b57cea05
rename host/hid_to_cdc to dual/host_hid_to_device_cdc
2022-05-10 13:01:28 +07:00
hathach
26ee622222
move pio usb files to src
2022-05-10 12:51:48 +07:00
hathach
79b5ab822e
fix incorrect total number of interface
2022-05-06 17:22:52 +07:00
Ha Thach
d23c9b7cd6
Merge pull request #1460 from ccrome/chc-fix-freertos-irq-imx
...
set irq priority for freertos
2022-05-06 13:04:41 +07:00
caleb crome
f19d913b5d
set irq priority for freertos
2022-05-05 22:29:12 -07:00
Pascal Speck
f452ab745e
overwrite grstctl on edpt_disable
2022-05-03 09:52:10 +02:00
Jerzy Kasenberg
e49cad84e2
dcd_pic32: Fix memory overwrite in incoming data
...
When transfer was finished rx_fifo_read() read all that
was to read RXPKTRDY was cleared allowing next packet to
be received.
Then xfer_complete was called.
Interrupt for OUT endpoint was left enable, that would not
be a problem if data was handled fast and new transfer was
scheduled.
For MSC when host sends a lot of data this interrupt that was
enabled could cause epn_handle_rx_int() to be called after
transfer was completed and next was not scheduled yet.
Without TU_ASSERT that was added to detect this, incoming
data was written past buffer provided by user code resulting
in random memory corruption.
This just blocks RX interrupt when transfer is finished,
and also only unmasked rx interrupts are handled.
2022-05-01 14:26:24 +02:00
Jerzy Kasenberg
c145777e0e
dcd_pic32: Add asserts transfer sanity check
...
TU_ASSERTS added to detect transfer inconsistency.
2022-05-01 14:14:42 +02:00
Jerzy Kasenberg
d51743a21c
Add TU_BREAKPOINT for mips architecture
...
_mips is provided by xc32-gcc
2022-05-01 14:05:49 +02:00
hathach
c289438b75
fix ci build
2022-04-29 23:03:52 +07:00
hathach
0b30a10ab3
configure hid_to_cdc example to build with rp2040 with pio usb as host
2022-04-29 22:24:36 +07:00
hathach
608577e05c
update pio
2022-04-29 18:05:50 +07:00
hathach
85dcb73774
more clean up
2022-04-28 18:00:30 +07:00
hathach
a72d4e2462
make hcd_event_handler() fastfunc, and force inline other helper
2022-04-27 20:54:21 +07:00
hathach
ae5490e5a5
clean up
2022-04-27 20:52:56 +07:00
hathach
4a661dead0
add TU_ATTR_FAST_FUNC for rp2040 __not_in_flash() section
2022-04-27 17:57:52 +07:00
hathach
fd827a80a9
everything work great
2022-04-27 01:09:30 +07:00
hathach
455bddddcd
minor clean up
2022-04-26 18:47:09 +07:00
hathach
4d11c658ff
improve pio usb endpoint handler
2022-04-26 13:08:03 +07:00
Ha Thach
6ec5174d8b
Merge pull request #1444 from Firefishy/gh-action-use-replacement-ruby
...
Gh action use replacement ruby
2022-04-26 01:05:33 +07:00
hathach
26a25279bc
follow pio usb changes
2022-04-26 00:35:16 +07:00
Nikitarc
15c01f20ec
Update tusb_option.h
...
Makes ISO compiler happy
2022-04-25 14:06:15 +02:00
Grant Slater
35d1a71ed7
GH Update to actions/checkout@v3
2022-04-24 16:49:29 +01:00
Grant Slater
3a1c7339cd
Replace actions/setup-ruby with replacement ruby/setup-ruby
2022-04-24 16:48:49 +01:00
hathach
2f9b9a31be
more with pio usb
2022-04-22 18:26:58 +07:00
hathach
12debd7763
keep up with pio usb
2022-04-22 01:06:17 +07:00
hathach
98bbb0d402
Merge branch 'master' into pio-host
2022-04-21 12:05:22 +07:00
hathach
328039058e
update lib pio
2022-04-21 01:45:03 +07:00
Ha Thach
55a5fd59d7
Merge pull request #1440 from hathach/osal-queue-timeout
...
Osal queue timeout
2022-04-20 23:32:50 +07:00
hathach
87572871d5
update example for better cdc echo
2022-04-20 18:52:15 +07:00
hathach
6a022c73db
add note for tud_task() behavior in freertos example
2022-04-20 18:35:38 +07:00
hathach
b034c18077
add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout and in_isr
...
also allow exit tud_task,tuh_task after processing all events for
running other background task for user
2022-04-20 18:29:41 +07:00
Nikitarc
c422b9ef41
Update dwc2_stm32.h
...
Add missing #endif
2022-04-20 11:29:03 +02:00
hathach
ccafb42c82
disable blank issues, add online docs link
2022-04-20 14:40:55 +07:00
hathach
669e36d674
fix freertos issue when 1 tick > 1 ms
2022-04-20 14:37:42 +07:00
hathach
a90839688c
add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms
2022-04-20 13:25:38 +07:00
Nikitarc
52190e7308
Update dwc2_stm32.h
...
Support STM32H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
2022-04-19 21:53:00 +02:00
hathach
a32cb1bb93
clean up pio driver
2022-04-18 17:49:21 +07:00
Skyler Mansfield
35668fc523
hcd_rp2040: Add bulk in/out+interrupt out support.
...
Added support for allocating hw_endpoints for non-interrupt endpoints.
Allow endpoints to be used in either direction by updating bit checks.
2022-04-17 01:30:03 +01:00
Skyler Mansfield
16c13bc110
tusb_types:
...
Added descriptive strings for edpt_dir and edpt_type
2022-04-17 01:16:49 +01:00
Reinhard Panhuber
11f0ffd9a8
Generalize feedback value min and max
2022-04-16 14:47:42 +02:00
hathach
b5a9537eea
support pio dcd endpiont stall
2022-04-16 01:19:51 +07:00
hathach
00a0e3f21b
update lib pio
2022-04-15 20:14:47 +07:00
hathach
05bfc1a9eb
pio device works well
2022-04-15 01:04:12 +07:00
hathach
cc5a4720e5
catch up with pio lib
2022-04-14 22:00:47 +07:00
Reinhard Panhuber
7094ff7125
Introduce 3 fb calc options: NO_SOF_BY_USER, SOF_BY_AUDIO_D, SOF_BY_USER
2022-04-09 16:36:26 +02:00
hathach
d5d4909c20
proof of concpet that device pio-usb work with host pio-usb
2022-04-08 13:36:05 +07:00
hathach
d97c154695
add need_pre for pio usb, but not work out well
2022-04-05 00:04:47 +07:00
hathach
d7d7e61f34
correct pio usb speed, and close device
2022-04-03 22:48:08 +07:00
hathach
7ea75d3c09
use pio usb host init
2022-04-03 20:44:16 +07:00
hathach
f6851cf187
clean up hcd pio
2022-04-03 00:17:58 +07:00
hathach
f881e77e66
extracting hw root port
2022-04-02 19:19:00 +07:00
hathach
c25f835aea
update to use pio hw endpoint
2022-04-01 23:31:43 +07:00
hathach
db6cba6a7b
rename pio to pio_usb
2022-04-01 16:38:41 +07:00
hathach
e6e3dfedc8
hid example work well
2022-04-01 16:34:36 +07:00
Rafael Silva
817227a850
Add WCH CH32V307 to readme supported list
2022-04-01 10:05:14 +01:00
hathach
75bca96bc6
pio usb control work well including stall response
2022-04-01 16:01:24 +07:00
hathach
e94d11a5b3
implement pio_usb_irq_handler
2022-03-31 12:56:53 +07:00
Ha Thach
9c8c5c1c53
Merge pull request #1413 from perigoso/perigoso-patch-1
...
Fix docs
2022-03-30 22:38:30 +07:00
Rafael Silva
95801bf5cc
Update requirements.txt
2022-03-30 14:15:34 +01:00
hathach
e2f0aef93b
make use pio_usb_port_reset_start/end
2022-03-30 16:41:55 +07:00
hathach
65b6b79e99
clean up and comment out tud_sof_isr_set
2022-03-29 16:53:45 +07:00
Ha Thach
edd8eb3279
Merge pull request #1409 from hathach/remove-pycache
...
remove cxd56 __pycache__ folder
2022-03-28 14:47:41 +07:00
hathach
735300b53c
remove cxd56 __pycache-_ folder
2022-03-28 12:47:32 +07:00
Greg Davill
7d395c674c
Update supported table
2022-03-23 00:46:44 +10:30
Greg Davill
46fb850e02
Update support table
2022-03-23 00:06:51 +10:30
Greg Davill
cdb8a1a2a1
Clean up driver
2022-03-23 00:00:06 +10:30
Greg Davill
325923b6c6
Update comments about endpoint buffer modes
2022-03-22 23:40:54 +10:30
Greg Davill
a09c1648f5
Fix typo
2022-03-22 23:31:20 +10:30
Greg Davill
d828d203fc
Skip freertos for ch32v307
2022-03-22 23:29:09 +10:30
Greg Davill
ac058a4c45
Add ch32v307 to build workflow
2022-03-22 22:32:53 +10:30
Greg Davill
1d254be1a4
Increase stack size to 4096 bytes
2022-03-22 16:03:53 +10:30
Greg Davill
fccbcfc889
Add WCH CH32V307 port
...
Add WCH mcu submodule
Add CH32V307V-R1-1v0 bsp
2022-03-22 00:30:46 +10:30
Reinhard Panhuber
5cd67baf15
Disable SOF ISR feedback calcuation by default s.t. examples still work
2022-03-20 12:57:53 +01:00
Reinhard Panhuber
8ffdbfebce
Streamline call of tud_audio_set_itf_cb() within audiod_set_interface()
2022-03-20 12:08:27 +01:00
Reinhard Panhuber
5aba464270
Add magic checks
2022-03-20 12:04:10 +01:00
Reinhard Panhuber
ff2dc0a547
Streamline feedback calc, find fb interval from descriptors, inc. checks
2022-03-20 11:21:33 +01:00
hathach
45052c625e
Merge branch 'master' into pio-host
2022-03-20 00:51:00 +07:00
Ha Thach
ae531a79f6
Merge pull request #1403 from hathach/host-edpt-xfer
...
Host edpt xfer
2022-03-20 00:17:39 +07:00
Reinhard Panhuber
fdfde8883f
Implement power of two, shift, and float calculation
2022-03-19 13:37:54 +01:00
hathach
a270d8d623
move code around
2022-03-19 15:06:12 +07:00
hathach
821be65b03
rename usbh_edpt_open() to tuh_edpt_open()
2022-03-19 14:59:31 +07:00
hathach
a4b976f095
get bare example working with hid device
2022-03-19 14:57:43 +07:00
hathach
4795cca04a
add parse config descriptor to example
...
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
hathach
ba1185bf28
implement tuh_edpt_xfer() for non-control
2022-03-18 22:22:21 +07:00
hathach
9ae0304b1e
move code around
2022-03-18 18:04:25 +07:00
hathach
8750e3b577
move daddr into xfer struct
2022-03-18 16:39:35 +07:00
hathach
2ff8978dde
update sync API, move timeout into xfer struct
...
remove tuh_control_xfer_sync()
2022-03-18 13:38:30 +07:00
hathach
85c6d6d37d
minor update for control xfer
2022-03-18 12:51:12 +07:00
hathach
c063ab4944
try to fix ci
2022-03-18 00:56:51 +07:00
hathach
f89ff939d8
rename user_arg to user_data
2022-03-17 22:37:51 +07:00
hathach
9dd2f11f4a
add CFG_TUH_API_EDPT_XFER to enable generic edpt xfer
2022-03-17 21:20:20 +07:00
hathach
55428d7dd2
rename tuh_control_xfer_t to tuh_xfer_t
2022-03-17 20:52:16 +07:00
hathach
102b99a0e8
add actual_len supported
2022-03-17 20:48:32 +07:00
hathach
8aedb2ff37
slightly change the signature of tuh_control_xfer
2022-03-17 17:25:53 +07:00
hathach
1ee699d49d
update example
2022-03-17 16:56:56 +07:00
hathach
66942b814b
change return type of callback to void
2022-03-17 16:55:29 +07:00
hathach
deab8c276a
remove const in xfer callback
2022-03-17 16:53:54 +07:00
hathach
6df420f7f3
move result into transfer struct
2022-03-17 16:24:43 +07:00
hathach
68bfd048a5
change tuh_control_xfer_t struct
2022-03-17 12:53:52 +07:00
hathach
98d4ed0584
update hid host to use new control xfer for set config
2022-03-16 18:44:41 +07:00
Reinhard Panhuber
ceac9d64c0
Disable CFG_TUD_AUDIO_ENABLE_FEEDBACK_DETERMINATION_WITHIN_SOF_ISR
...
By default disable
CFG_TUD_AUDIO_ENABLE_FEEDBACK_DETERMINATION_WITHIN_SOF_ISR such that
current examples still work.
2022-03-16 08:05:31 +01:00
Reinhard Panhuber
9fde8f2d9e
Fix DSTS_FNSOF in dwc2.c
2022-03-16 07:53:47 +01:00
Reinhard Panhuber
92ac041869
Add todos and comments
2022-03-16 07:13:38 +01:00
hathach
fd2ea2605e
fix -Wnull-dereference warnings
2022-03-16 10:55:18 +07:00
Reinhard Panhuber
90502739c3
Fix cycle count calculation
2022-03-15 20:45:06 +01:00
Reinhard Panhuber
c9b444e771
Implement 16.16 fixed point feedback value calculation
2022-03-15 20:30:31 +01:00
Ha Thach
1915d69cb8
Merge pull request #1397 from hathach/rework-host-control-xfer
...
Rework host control xfer
2022-03-15 14:47:13 +07:00
Reinhard Panhuber
26339e694f
Merge remote-tracking branch 'upstream/add-sof-isr' into add-sof-isr
2022-03-14 20:40:57 +01:00
Reinhard Panhuber
f212899b54
Add SOF callback function for feedback value determination in uac - wip!
2022-03-14 20:40:33 +01:00
Ha Thach
41ffd54fa0
Merge branch 'master' into add-sof-isr
2022-03-14 11:57:01 +07:00
hathach
2929afe2fa
add synchronous (blocking) support for usbh control transfer
...
- add synchronous version of all get descriptor API
- update bare example to use sync API for string descriptor
- change order of index, language_id in tuh_descriptor_get_string() to
match similar API of libusb
- add index to tuh_descriptor_get_hid_report()
2022-03-13 17:45:46 +07:00
Ha Thach
228e185a15
Update bug_report.yml
2022-03-12 16:58:37 +07:00
hathach
56695569e7
minor changes
2022-03-12 14:28:24 +07:00
hathach
ac4483a7c5
misplace fallthrough
2022-03-12 14:26:48 +07:00
hathach
a5a565f7eb
rework usbh enumeration process using user arg from control transfer as state
2022-03-12 14:20:57 +07:00
hathach
ec28593ce5
update hid,msc to new usbh control API
2022-03-11 22:13:57 +07:00
hathach
bcdeb386cc
rework usbh control xfer
...
- change API of tuh_control_xfer and its callback
- rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t
- add user argument to control callback
- migrate usbh and hub
2022-03-11 21:57:55 +07:00
Ha Thach
d3c7d7b09e
Merge pull request #1394 from hathach/merge-host-example
...
merge device_info into bare_api example
2022-03-11 14:02:10 +07:00
hathach
6b5490ced6
merge device_info into bare_api example
2022-03-11 13:12:36 +07:00
Ha Thach
69ef918021
Merge pull request #1393 from hathach/more-host-bare-api
...
More host enhancement
2022-03-11 10:33:50 +07:00
Ha Thach
ec6a8f00ad
Merge pull request #1392 from tannewt/host_string_example
...
Add host example that prints out info of connected devices
2022-03-11 10:06:12 +07:00
hathach
a715077b10
remove usbh_control.c
2022-03-11 09:57:35 +07:00
Scott Shawcroft
37960990a5
Print speed. Don't crash if string get fails
2022-03-10 11:01:44 -08:00
hathach
951ece17e1
fix build warning
2022-03-10 23:20:12 +07:00
hathach
66c933fb61
fix enumeration issue when plugging hub with multiple devices attached
2022-03-10 23:16:59 +07:00
hathach
171d021ab5
refactor and integrate usbh control xfer back to usbh.c
...
fix enumeration with hub when reset port before set address
2022-03-10 22:22:05 +07:00
hathach
b9ca301527
remove obsolete device state
2022-03-10 13:19:15 +07:00
hathach
5e9f522b9a
refactor host control xfer
2022-03-10 12:56:15 +07:00
hathach
b05401a5ab
merge control stage host and device value
2022-03-10 11:59:51 +07:00
Scott Shawcroft
22f682c378
Add host example that prints out info of connected devices
2022-03-09 15:22:31 -08:00
hathach
97636eff8e
more clean up
2022-03-10 00:36:49 +07:00
hathach
0e5e644d27
minor clean up
2022-03-09 17:51:35 +07:00
hathach
d56cde33ef
refactor usbd to also use common endpoint claim/release
2022-03-09 17:34:12 +07:00
hathach
110879074f
implement tu_edpt_release()
2022-03-09 17:26:55 +07:00
hathach
a5fb20533c
adding tusb_private.h to implement common edpt claim
2022-03-09 17:17:36 +07:00
hathach
708f05668d
add tusb_debug.h remove tusb_error.h
...
move debug utils to new header
2022-03-09 16:44:19 +07:00
hathach
2f593e767c
update use of mutex for host
2022-03-09 12:26:56 +07:00
hathach
f920e1c171
rename host descriptor function
2022-03-09 11:21:13 +07:00
hathach
db9d97c947
add tuh_descriptor_hid_report_get()
2022-03-09 11:03:29 +07:00
Ha Thach
0d8be7fd3a
Merge pull request #1360 from ccrome/uac2_headset_descriptor_update
...
in TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR, _nitfs should be 3.
2022-03-09 09:31:05 +07:00
Ha Thach
8bf18430b8
Merge pull request #1389 from hathach/fix-1359
...
fix issue 1359
2022-03-08 14:24:22 +07:00
hathach
6b2ea2bd1d
fix issue 1359
2022-03-08 13:53:33 +07:00
hathach
606f932d92
added dcd_sof_enable() stubs for all other ports
2022-03-07 23:05:05 +07:00
hathach
85dbcf5473
implement dcd_sof_enable() for rp2040
2022-03-07 23:04:47 +07:00
hathach
707a633de3
added dcd_sof_enable(), tud_sof_isr_set()
...
make number of interface configurable (default to 8)
CFG_TUD_INTERFACE_MAX
2022-03-07 23:03:51 +07:00
hathach
ce60e98f6d
remove broadcom/synopssy (repalced by synopsys/dwc2)
2022-03-07 23:00:11 +07:00
Ha Thach
73896a3b71
Merge pull request #1380 from sjanc/mynewt
...
Add missing releases to Mynewt repository.yml
2022-03-07 22:08:26 +07:00
Szymon Janc
61615203fd
Add missing releases to Mynewt repository.yml
...
This make it possible to setup Mynewt project with latest releases.
2022-03-07 15:33:27 +01:00
Ha Thach
7180883fae
Merge pull request #1379 from Qianhao2579/master
...
Modify the wrong macro definition code
2022-03-07 16:09:16 +07:00
Ha Thach
1bd31c22e1
Merge pull request #1374 from kasjer/kasjer/stm32wb55
...
stm32wb55 support
2022-03-07 16:09:06 +07:00
Jerzy Kasenberg
76c8d4d95b
Add support for nucleo-wb55rg
2022-03-07 09:35:12 +01:00
Jerzy Kasenberg
a18ac84229
Add support for STM32WB mcu
2022-03-07 09:35:12 +01:00
QianHao
65bf5ddb1b
Modify the wrong macro definition code
2022-03-07 08:04:49 +00:00
Ha Thach
4c6bb161e2
Merge pull request #1289 from kasjer/kasjer/vendor-update
...
vendor: Write improvements
2022-03-06 11:16:35 +07:00
Ha Thach
f2c276d45e
Merge pull request #1372 from tannewt/fix_string_desc
...
Fix string descriptor fetch
2022-03-06 10:46:52 +07:00
Jerzy Kasenberg
2bef4410f9
Add stm32wb cmsis and hal driver submodules from ST
2022-03-05 17:53:57 +01:00
Scott Shawcroft
f291243121
Fix string descriptor fetch
2022-03-04 11:38:02 -08:00
Rafael Silva
144ce092f0
Merge pull request #1371 from hathach/perigoso-patch-1
...
documentatio: fix bad supported dev table format
2022-03-04 16:18:26 +00:00
Ha Thach
8e0b8c15ea
Merge pull request #1369 from tannewt/host_string_desc
...
Add host string descriptor functions
2022-03-04 22:59:16 +07:00
Rafael Silva
4642cb8d0a
documentatio: fix bad supported dev table format
2022-03-04 15:35:32 +00:00
hathach
56c2d4b666
fix naming, and build
2022-03-04 22:31:48 +07:00
hathach
b9a6cd8b61
rename example
2022-03-04 22:25:50 +07:00
hathach
271f905521
add tuh_descriptor_string_manufacturer/produce/serial_get
2022-03-04 22:23:56 +07:00
hathach
15ced09bb2
add tuh_configuration_set()
2022-03-04 21:41:27 +07:00
hathach
2bdf4d811a
add tuh_descriptor_configuration_get()
2022-03-04 21:14:59 +07:00
hathach
7480c2e46b
correct qhd and qtd count for ehci/ohci
2022-03-04 21:04:52 +07:00
hathach
032e2c2929
add CFG_TUH_INTERFACE_MAX config
2022-03-04 19:28:53 +07:00
hathach
e08a875d52
add tuh_descriptor_get() and tuh_descriptor_device_get()
2022-03-04 19:26:54 +07:00
hathach
3a7d1cfead
minor cleanup
2022-03-04 17:26:21 +07:00
hathach
039b235ca4
adding new libusb api example
2022-03-04 17:16:14 +07:00
hathach
96165a1950
rename HCD_MAX_XFER to CFG_TUH_ENDPOINT_MAX
...
minor clean up
2022-03-04 17:07:04 +07:00
Ha Thach
5453c7e97f
Merge pull request #1370 from hathach/fix-esp-idf
...
fix build with esp32s2, also use dwc2 for esp example
2022-03-04 15:20:51 +07:00
hathach
c0195fc627
skip pyocd reset after flash
2022-03-04 14:48:29 +07:00
hathach
f72da8ee7d
fix build with esp32s2, also use dwc2 for esp example
2022-03-04 14:45:26 +07:00
Scott Shawcroft
eb6b5d1219
Unused ok
2022-03-03 21:57:44 -08:00
Scott Shawcroft
2cd73ca602
Add host string descriptor functions
...
Plus typo fixes, GCC11 array bounds fix, snprintf for malloc-free
debug and pragmas for alignment checks.
2022-03-03 21:53:12 -08:00
hathach
fa62d5abc9
got interrupt endpoint working
2022-03-03 21:57:29 +07:00
hathach
d4d7d35afb
checkout pio-usb
2022-03-02 13:24:51 +07:00
hathach
635fb9dcdd
try to fix ci
2022-03-02 12:33:47 +07:00
hathach
918f3e9cae
minor rename
2022-03-02 12:22:20 +07:00
caleb crome
1b338b288c
in TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR, _nitfs should be 3.
...
I believe that there is a mistake in the definition of TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR. The nitfs in the audio descriptor is always 3 regardless of ITF_NUM_TOTAL.
2022-03-01 17:24:28 -08:00
hathach
d3ed76902e
clean up
2022-03-02 00:06:13 +07:00
hathach
df4c614597
update pio usb submodule
2022-03-02 00:04:42 +07:00
hathach
1d29817139
start to add pio usb (host) support
...
run as proof of concept
2022-03-01 23:55:53 +07:00
Ha Thach
7c627f58d7
Merge pull request #1343 from Daft-Freak/patch-1
...
Open OUT endpoint for HID host
2022-02-28 20:00:40 +07:00
Ha Thach
8e84529c8d
Merge pull request #1345 from alexandre-perrin/iar-cpp-verify-static
...
Fix CPP compilation with IAR
2022-02-28 17:02:33 +07:00
Ha Thach
c9b0fbc907
Merge pull request #1354 from hathach/mcu-specific
...
Mcu specific
2022-02-26 21:30:07 +07:00
Ha Thach
6dd4d50213
Merge pull request #1352 from ETCLabs/fix-ehci-isr-status-clear-error
...
Updated the clearing of the status register bits to use a straight '=…
2022-02-26 18:05:59 +07:00
Ha Thach
f392054e70
Merge pull request #1353 from ETCLabs/iar-compiler-error-on-src-host-usbh.c
...
The IAR compilier does not resolve references to fields in the anonym…
2022-02-26 18:05:35 +07:00
hathach
2fe3a925fb
add highspeed detect for f723/730/733
2022-02-26 17:34:29 +07:00
hathach
a4ba3f2891
add TUP_USBIP_DWC2
2022-02-26 17:13:06 +07:00
hathach
11c89d43ab
more internal rename
2022-02-26 17:06:50 +07:00
hathach
bc63f59af2
mcu specific rename
2022-02-26 15:23:29 +07:00
Ha Thach
244154e087
Merge pull request #1311 from Wini-Buh/CCRX_Ext
...
Solve problems with CCRX toolchain
2022-02-26 14:34:18 +07:00
Tom Peterson
c06ecbef0c
The IAR compilier does not resolve references to fields in the anonymous structs defined within the usbh_dev0_t and usbh_device_t structs as they are defined. The problem seems to relate to the placement of the 'volatile' keyword at the struct level. I fixed the problem by removing the 'volatile' from the struct level, and instead placing it on each of the field declarations within the structs.
2022-02-25 16:49:55 -06:00
Tom Peterson
39fdbc8ffc
Updated the clearing of the status register bits to use a straight '=', rather than an '|='. Use of the latter caused an extra, unwanted read of the status register before the write-to-clear operation, which, in some cases, allowed new status bits to assert (relative to the initial read of the status register two statements earlier), and then be cleared blindly and unconditionally during the write-back. This had the potential (and, in my case, observed) effect of dropping the handling of an enabled interrupt. Ultimately, the system would lock up in a busy state, with no hope of clearing the condition. See Issue #1339 for more information.
2022-02-25 12:39:09 -06:00
Ha Thach
5b7a01ba79
Merge pull request #1350 from hathach/enhance-multipl-ports
...
Enhance rhports management
2022-02-26 01:00:07 +07:00
Ha Thach
13a4582ce2
Merge pull request #1349 from iabdalkader/fix_inquiry_data
...
Set the standard inquiry response additional length field.
2022-02-26 00:22:55 +07:00
iabdalkader
8eeda60bd0
Set the standard inquiry response additional length field.
...
* The standard inquiry response additional length field needs to be set to
the length in bytes of the remaining standard inquiry data (i.e. N - 5),
otherwise the kernel driver issues a warning about short inquiry response..
2022-02-25 18:42:23 +02:00
hathach
1482a41524
fix uac2_headset build
2022-02-25 23:16:40 +07:00
hathach
0997589c45
more symbol rename
2022-02-25 23:05:15 +07:00
hathach
89115253da
internal symbol rename
2022-02-25 22:45:05 +07:00
hathach
309540473b
minor house keeping
2022-02-25 22:26:35 +07:00
hathach
99ad3ae2ca
rename and move dcd_attr.h to tusb_mcu_attr.h
2022-02-25 18:35:21 +07:00
hathach
a8af609dfe
auto detect max rhport speed based on mcu
2022-02-25 18:35:21 +07:00
hathach
31aa077cb0
rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED
2022-02-25 18:35:21 +07:00
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
hathach
4a5a53b3b8
improve rphort management for usbd
2022-02-25 18:35:21 +07:00
Ha Thach
b797d1aa50
Merge pull request #1340 from tannewt/hid_to_cdc
...
Add concurrent host and device example
2022-02-25 18:21:37 +07:00
hathach
a8d6e82395
enhance dual role examples
2022-02-25 17:36:05 +07:00
Alexandre Perrin
81e33477ea
Fix CPP compilation with IAR
...
IAR defines __STDC_VERSION__ in cpp as well.
Which causes TU_VERIFY_STATIC to be defined as _Static_assert
instead of cpp's static_assert.
This reorders __cplusplus__ to be first, then to fallback to
__STDC_VERSION__ if not CPP.
2022-02-23 18:27:52 +01:00
Charlie Birks
83b638f230
Open OUT endpoint for HID host
2022-02-23 13:03:20 +00:00
Charlie Birks
c0a65ba0f6
Support interrupt OUT in RP2040 HCD
2022-02-23 12:25:01 +00:00
Ha Thach
fa895ed3dc
Merge pull request #1341 from hathach/release-0.13.0
...
increase version, update doc for release
2022-02-23 13:07:29 +07:00
hathach
566e3abcea
increase version, update doc for release
2022-02-23 11:55:57 +07:00
Scott Shawcroft
9ba1ba8fa1
Guard clock setup for USB2
2022-02-22 18:39:02 -08:00
Scott Shawcroft
d749597591
Add dual role (concurrent) example
...
This reads HID devices over host and then translates that to ASCII
and sends it over CDC device.
2022-02-22 18:13:22 -08:00
Scott Shawcroft
8a6fe8a8f3
Merge pull request #1300 from sharpie7/master
...
Some platforms require SDKs and use of cmake
2022-02-22 15:03:59 -08:00
Ha Thach
e04f15ff3d
Merge pull request #1280 from kasjer/kasjer/nrf5x-dma-race
...
nrf5x: Fix DMA access race condition
2022-02-22 21:00:51 +07:00
hathach
e188117823
more esp build fix
2022-02-18 16:30:21 +07:00
Ha Thach
4612332af7
Merge pull request #1331 from hathach/fix-esp-build
...
fix build with latest esp idf
2022-02-18 16:22:50 +07:00
hathach
52645fcc1b
fix build with latest esp idf
2022-02-18 13:07:21 +07:00
Ha Thach
553767cc8a
Merge pull request #1330 from hathach/fix-HID_REPORT_ID_N
...
fix HID_REPORT_ID_N()
2022-02-17 14:07:59 +07:00
hathach
a53e83665e
fix HID_REPORT_ID_N()
2022-02-17 12:12:42 +07:00
Ha Thach
358866cd0f
Merge pull request #1328 from NexusXe/patch-1
...
Fix link to supported boards in Getting Started page
2022-02-17 11:58:41 +07:00
NexusXe
ada7a23ddc
Fix capitalization
2022-02-16 08:33:06 -06:00
NexusXe
a72d0245fa
Fix link to supported boards
...
It used to point to `boards.md`, which doesn't exist.
2022-02-16 08:29:20 -06:00
Ha Thach
fcca8bb4ca
Merge pull request #1327 from hathach/msc-request-sense
...
Add msc request sense callback
2022-02-15 23:17:58 +07:00
hathach
46f4f7ff49
minor rename set sense function
2022-02-15 22:53:23 +07:00
hathach
391edc7afb
msc example response PREVENT_ALLOW_MEDIUM_REMOVAL command as unsupported command
...
LUN1 of msc_disk_dual will be set to not ready to simulate medium not
present (e.g SD card removed)
2022-02-15 22:40:08 +07:00
Ha Thach
de4932d9c5
Merge pull request #1318 from JayToltTech/master
...
Nit spelling correction
2022-02-15 12:28:26 +07:00
Ha Thach
01684f71fb
Merge pull request #1322 from ZenithalHourlyRate/ZenithalHourlyRate-readme-typo
...
readme: fix typo
2022-02-15 12:20:29 +07:00
hathach
456c06aa5e
add tud_msc_request_sense_cb() as weak callback
...
set default error sense to NOT READY, Medium not present
2022-02-14 18:17:49 +07:00
Zenithal
678c415bea
readme: fix typo
2022-02-10 22:30:31 +08:00
Jay Beavers
2df57d2be0
Nit spelling correction
2022-02-09 08:19:01 -08:00
Ha Thach
63cb3cdc74
Merge pull request #1304 from kkitayam/add_hcd_for_frdm_kl25z
...
Add hcd driver for frdm kl25z
2022-02-09 16:14:50 +07:00
Wini-Buh
5414cf275b
Merge branch 'hathach:master' into CCRX_Ext
2022-02-02 21:06:37 +01:00
Ha Thach
d6fb1859a4
Merge pull request #1291 from kasjer/kasjer/da1469x-fix-resume
...
da1469x: fix resume
2022-02-02 20:20:39 +07:00
Roland
7beb92864e
Merge branch 'CCRX_Ext' of https://github.com/Wini-Buh/tinyusb into CCRX_Ext
2022-02-01 23:49:20 +01:00
Roland
e1f0c484c6
Modifications for CCRX toolchain
2022-02-01 23:45:52 +01:00
Ha Thach
c6cde724f6
Merge pull request #1305 from Ryzee119/patch-1
...
OHCI: Fix array out of bounds issue
2022-02-01 23:00:10 +07:00
Ha Thach
d56bbbb5a7
Merge pull request #1303 from mysterywolf/master
...
add rt-thread's tinyusb repo address
2022-02-01 22:35:21 +07:00
Ryzee119
453ba529a6
OHCI: Fix array out of bounds issue
...
If using a USB hub, a request outside the array size can occur
Original line:
ffb257ac17/src/portable/ohci/ohci.h (L162)
It can happen in a few places but one such example is here:
ffb257ac17/src/portable/ohci/ohci.c (L460)
ie. if HUB address is 5, this would be an array index out of bounds on control endpoints as `CFG_TUH_DEVICE_MAX+1` is only 5.
This fix just includes num of hubs in the reserve array size.
Fixing locally fixed this issue.
2022-01-28 14:02:34 +10:30
kkitayam
ce7a8fed36
Add a partial support mark to KL25
2022-01-28 01:18:44 +09:00
kkitayam
03d2e32dc1
Fix handling for pending transfers
2022-01-27 23:38:19 +09:00
kkitayam
d7cbfaaa0a
Add hcd into source list
2022-01-27 22:26:51 +09:00
kkitayam
60a0be82da
Change hcd_edpt_xfer to send at the next SOF
2022-01-27 22:25:36 +09:00
kkitayam
cc06a3585e
Add handling for NAK response
2022-01-27 20:57:41 +09:00
kkitayam
cdab869472
Fix handling control transfer
2022-01-27 20:57:41 +09:00
kkitayam
a4bc6075ce
Add HCD functions for KL25Z
2022-01-27 20:57:40 +09:00
Man, Jianting (Meco)
6085999e2b
add rt-thread's tinyusb repo address
2022-01-26 20:08:34 -05:00
Ha Thach
ffb257ac17
Merge pull request #1301 from hathach/fix-mynewt-sunxi
...
fix mynewt build sunxi
2022-01-26 17:02:52 +07:00
hathach
578a123282
fix mynewt build sunxi
2022-01-26 12:59:53 +07:00
Ha Thach
eea19daac6
Merge pull request #1220 from t123yh/master
...
Add support for Allwinner F1C100s family
2022-01-26 12:52:46 +07:00
Ha Thach
7de166390e
Merge branch 'master' into master
2022-01-25 22:29:05 +07:00
Iain Sharp
a80f23711e
Some platforms require SDKs and use of cmake
2022-01-24 20:56:13 +00:00
Jerzy Kasenberg
7b078367e8
dcd_da1469x: Re-enable RX after resume
...
Going to suspend states disable reception on non-0 RX endpoints.
Now when USB resume condition is detected, all RX endpoints
with pending transfers are resumed.
2022-01-20 16:28:09 +01:00
Jerzy Kasenberg
ae4d901d83
dcd_da1469x: Fix over-run/under-run mask
...
Bit mask enabling/disabling over-run/unde-run was shifted
by one nibble, so interrupt was never enabled.
It did not force any issue as this situation could only
happen on ISO endpoints without DMA.
2022-01-20 10:01:18 +01:00
Jerzy Kasenberg
4ca2215684
vendor: Add tx flush functionality
...
So far tud_vendor_n_write() always flushed data.
It requires to have whole vendor packed constructed
before in one buffer.
With this change data do get flushed when endpoint size
is filled on write, when there is no enough data to
fill endpoint data is not sent and subsequent calls to
write functions can add more bytes.
Vendor code needs to call tud_vendor_n_flush() when packet is
ready to be sent.
2022-01-19 15:08:12 +01:00
Ha Thach
a592282079
Merge pull request #1288 from hathach/rx-host-example-ci
...
enable ci build for RX65X host example
2022-01-19 20:46:23 +07:00
Jerzy Kasenberg
d069ea1421
vendor: Add tx callback
...
Other drivers already have notification about data sent.
It allows batter control in application on vendor
protocol level.
2022-01-19 14:06:00 +01:00
hathach
3b66bbf6d5
enable ci build for RX65X host example
...
update comment for unit not ready 3a-00 additional sense
2022-01-19 19:12:21 +07:00
Ha Thach
e40547ada1
Merge pull request #1265 from kkitayam/add_hcd_for_renesas_rx
...
Add HCD driver for Renesas RX
2022-01-19 19:07:21 +07:00
Ha Thach
9e99269875
Merge pull request #1287 from alisitsyn/bugfix/fix_idfgh6508
...
fix idfgh-6508: return type in tu_fifo_peek_n()
2022-01-19 17:50:33 +07:00
Jerzy Kasenberg
36b6ed8ff9
nrf5x: Fix EP OUT race conditions in OS build
...
When two tasks entered dcd_edpt_xfer() it was possible that
first disabled interrupt to setup total_len and actual_len
but second task for another endpoint enabled interrupt
between total_len and actual_len resulting in race
condition with interrupt, hence mutex is added on top of interrupt being blocked.
2022-01-19 09:48:04 +01:00
Jerzy Kasenberg
980ffe3b4e
nrf5x: Fix DMA access race condition
...
In multi-thread mode starting DMA in thread mode was
prone to race condition resulting in infinite loop.
It may happen on single core CPU with strict priority based
tasks scheduler where ready high prio task never yields to
ready low prio task (Mynewt).
Sequence that failed (T1 - low priority task, T2 - high priority task)
- T1 called start_dma()
- T1 set _dcd.dma_running (DMA not started yet, context switch happens)
- T2 took CPU and saw that _dcd.dma_running is set, so waits for _dcd.dma_running to be 0
- T1 never gets CPU again, DMA is not started T2 waits forever
OSAL mutex resolves problem of DMA starting from thread-context.
2022-01-19 09:06:43 +01:00
email
af9a3f646c
fix idfgh-6508: return type in tu_fifo_peek_n()
...
https://github.com/espressif/esp-idf/issues/8161
2022-01-19 09:00:43 +01:00
Ha Thach
0b6b4f2441
Merge pull request #1286 from hathach/fix-fifo-mutex-when-full
...
fix locked mutex when fifo is full
2022-01-19 10:45:33 +07:00
Ha Thach
983abfd6d8
Merge pull request #1279 from kasjer/kasjer/nrf5x-int-race
...
nrf5x: Fix EP OUT race conditions
2022-01-19 10:33:37 +07:00
hathach
161ba73c8b
fix locked mutex when fifo is full
2022-01-19 10:17:39 +07:00
Ha Thach
84f2ca77f7
Merge pull request #1283 from kasjer/kasjer/olimex-pic32-board-fixes
...
olimex pic32 board fixes
2022-01-19 09:55:18 +07:00
Ha Thach
92c36f187d
Merge pull request #1274 from kasjer/kasjer/nrf5x-request-clock-in-mynewt
...
nrf5x: Request HFXO via OS
2022-01-18 20:00:23 +07:00
Jerzy Kasenberg
f4725120a4
nrf5x: Request HFXO via OS
...
Mynewt (similar to Soft Device) has its own reference counting for
HFXO oscillator.
So far TinyUSB requested HFXO when VBUS was detected and stopped when
VBUS was removed.
But with Mynewt running HFXO can be stopped when other interested parties
don't require HFXO anymore. This results in very difficult to track
USB transmission errors.
This change enables Mynewt specific HFXO management in Soft Device fashion.
2022-01-18 08:12:49 +01:00
Jerzy Kasenberg
45d56915d1
pic32/olimex boards: Fix active state of button
...
Buttons for olimex_emz64 and olimex_hmz144 should be set
to active low in board configuration.
2022-01-17 18:00:58 +01:00
Jerzy Kasenberg
168c7095e8
pic32mz: Fix remote_wakeup without OS
...
Remote wakeup requires 10ms of delay when RESUME bit
is toggled.
It was covered for OS build.
For non-OS build simple delay based on board_millis() is
used to wait required amount of time.
Without this remote wakup may not work.
2022-01-17 17:59:51 +01:00
Ha Thach
6972a4f5cf
Merge pull request #1276 from kkitayam/fix_video_capture_frame_interval
...
Fix video_capture example fails enumeration when 8FPS
2022-01-17 23:57:42 +07:00
Ha Thach
11aa4b9bba
Merge pull request #1284 from kasjer/kasjer/ft9xx-mynewt
...
ft9xx: Fix Mynewt build
2022-01-17 16:28:07 +07:00
Jerzy Kasenberg
ec01428820
ft9xx: Fix Mynewt build
...
Includes were moved few lines down to restore build with Mynewt build system.
2022-01-17 09:14:41 +01:00
Ha Thach
58b8bdc2e4
Merge pull request #1277 from liamfraser/fix-cmake-skip
...
Fix family_support.cmake to use new skip.txt and only.txt files
2022-01-17 14:36:51 +07:00
Ha Thach
61d392fad4
Merge pull request #1238 from ftdigdm/port-ft90x
...
Port ft90x
2022-01-17 13:18:30 +07:00
Ha Thach
0780fd3d1e
Merge pull request #1269 from mysterywolf/master
...
[rt-thread] add rt-thread os in readme
2022-01-17 12:37:53 +07:00
Ha Thach
efc29baead
Merge branch 'master' into port-ft90x
2022-01-17 12:36:39 +07:00
hathach
1a7de71e79
correct link in rst
2022-01-17 12:15:54 +07:00
Ha Thach
976405dea3
Merge pull request #1270 from kasjer/kasjer/pic32mz
...
Driver for Microchip PIC32MZ family
2022-01-16 20:24:14 +07:00
hathach
c722133671
change OPT_MCU_PIC32MZ to value of 1900
2022-01-16 15:38:23 +07:00
Ha Thach
5dab0e8aed
Merge pull request #1282 from hathach/fix-esp-ci
...
Fix esp ci
2022-01-16 14:20:41 +07:00
hathach
cb57f047e7
update for s3
2022-01-16 13:26:50 +07:00
hathach
e1e4577616
more ci fix
2022-01-16 13:24:36 +07:00
hathach
e635c16de0
fix esp ci build with IDF version 5
2022-01-16 13:12:27 +07:00
Ha Thach
76987fb357
Merge pull request #1235 from vmilea/feature/feedback_format
...
Support disabling feedback format correction #1234
2022-01-16 12:54:50 +07:00
hathach
45fb60e883
update format correction with actual bus speed
2022-01-16 12:12:57 +07:00
Jerzy Kasenberg
da44fe3fc9
nrf5x: Fix EP OUT race conditions
...
When dcd_edpt_xfer() starts new transfer two separate problems were observed.
For both problems stream of OUT packets was pouring from host.
First problem was that total_len and actual_len were not atomic.
In case where incoming OUT packets are less (63) than MPS (64), actual_len and total_len
are set 63.
Then transfer complete from USBD is called that will schedule next 64 bytes transfer.
At that point incoming packet would start DMA if there is place in RAM, normally
it does not happen since actual_len == total_len.
If packets arrives and interrupt is raised after total_len is set (64) but actual_len is still 63 from
previous transfer, interrupt code sees that there is place in ram (1 byte) and transfer this 1 byte
to buffer that was already filled with previous packet.
To remedy this USB interrupt is blocked during transfer setup.
Second problem can happen when dcd_edpt_xfer setups xfer->total_len and actual_len correctly
but then context switch happens before xfer->data_received is checked.
If during this time two packets arrive one will be copied to RAM second will stay in endpoint with
data_received set to 1.
Then when xfer_edpt_xfer() checks data_receive flag it starts DMA again overwriting data.
To remedy this, data_received is checked together with check if data was already transferred.
If transfer was complete, there is no need to start DMA yet.
In such case data_received will be handled in same place by next xfer_edpt_xfer() correctly.
2022-01-14 09:46:39 +01:00
Liam Fraser
3db9cf3547
Fix family_support.cmake to use new skip.txt and only.txt files for skipping mcus
2022-01-13 16:39:55 +00:00
kkitayam
c5d825450a
Fix dwFrameIntervalStep and dwMaxFrameInterval
...
dwMaxFrameInterval minus dwMinFrameInterval should be evenly divisible by
dwFrameIntervalStep.
2022-01-13 00:24:56 +09:00
Jerzy Kasenberg
fff4a248be
Add BSPs for Microchip PIC32MZ MCUs
...
Two boards from Olimex are added:
olimex_hmz144 with PIC32MZ2048EFM144
olimex_emz64.c with PIC32MZ2048EFH064
Both can be programmed with Segger JLINK probe using ICSP
interface. (JTAG not tested but could also work but header
is not mounted).
2022-01-07 14:12:42 +01:00
Jerzy Kasenberg
340309561d
Add driver for PIC32MZ MCUs
...
Device-only driver for PIC32MZ MCUs.
2022-01-07 14:12:42 +01:00
Valentin Milea
c2533a45bd
Merge branch 'master' into feature/feedback_format
2022-01-07 15:12:07 +02:00
Valentin Milea
a284e438f1
Disable feedback format correction by default #1234
2022-01-07 15:02:52 +02:00
Man, Jianting (Meco)
13015a17a4
Update README.rst
2022-01-06 12:40:08 -05:00
Ha Thach
3b09b82123
Merge pull request #1272 from EmergReanimator/cortex-m33
...
Enable breakpoints for ARM8M (e.g. cortex-m33)
2022-01-06 18:17:12 +07:00
EmergReanimator
44406a8940
Enable breakpoints for ARM8M (e.g. cortex-m33)
2022-01-06 09:56:45 +01:00
Ha Thach
77b42344ac
Merge pull request #1271 from tannewt/rpi_zero
...
Add Raspberry Pi Zero W and Zero 2 W
2022-01-06 10:42:25 +07:00
Scott Shawcroft
bed8913107
Skip dfu and usbtmc on pi zero
2022-01-05 16:17:19 -08:00
Scott Shawcroft
47218eeb67
No exceptions on broadcom. Add parens to if
2022-01-05 16:07:17 -08:00
Scott Shawcroft
7b27b8f498
Unify skip and only logic for build scripts
...
And switch to a single file that can include mcu, family or board.
2022-01-05 15:44:23 -08:00
Scott Shawcroft
4fe0a30ec7
Skip net and freertos examples
2022-01-05 14:33:24 -08:00
Scott Shawcroft
84e2df51be
Split by compiler for testing
2022-01-05 14:11:39 -08:00
Scott Shawcroft
a79ffeb764
Add Raspberry Pi Zero W and Zero 2 W
...
These are different Broadcom chips. The peripherals are essentially
the same. The main differences are:
* The CPU(s)
* The interrupt controller
* The peripheral base address (but not the peripherals that we use)
2022-01-05 13:47:01 -08:00
Meco Man
5f9e361f5c
[rt-thread] add rt-thread os in readme
2022-01-02 02:06:53 -05:00
Jerzy Kasenberg
2f69649bb6
Add register file for Microchip PIC32MZ
2021-12-31 22:53:27 +01:00
Ha Thach
868948f67c
Merge pull request #1264 from kasjer/kasjer/make-files-for-xc32
...
build system: Changes for xc32 compiler
2021-12-31 19:22:52 +07:00
Ha Thach
c8641ee940
Merge pull request #1263 from kasjer/kasjer/mynewt-eptri
...
Fix Mynewt build for Microchip PIC32MZ devices.
2021-12-30 22:48:11 +07:00
hathach
c5d2c82cbb
fix unreachable warnings with keil
2021-12-30 20:59:53 +07:00
hathach
adb848f754
update docs
2021-12-29 19:42:34 +07:00
hathach
5f280b3029
add license to dcd file, slightly update readme
2021-12-29 19:25:32 +07:00
hathach
84e2f6e0e1
skip freertos example for f1c100s
2021-12-29 19:12:41 +07:00
hathach
b943a53b10
update allwinner submodule
2021-12-29 19:04:08 +07:00
hathach
2d13ecde1b
add allwinnner driver as submodule
2021-12-29 18:59:47 +07:00
hathach
30aba24ddc
Merge branch 'master' of https://github.com/t123yh/tinyusb into t123yh-master
2021-12-29 18:27:29 +07:00
kkitayam
2b8b8a3a97
Fix hcd_edpt_clear_stall
2021-12-27 22:55:28 +09:00
kkitayam
745607357b
Update Renesas RX status
2021-12-27 21:51:23 +09:00
kkitayam
2c0fcc2fa7
Add statements for control VBUS
2021-12-27 21:36:49 +09:00
kkitayam
a750c9c902
Increase stack size
2021-12-27 21:28:46 +09:00
kkitayam
a76799b085
Add hcd for Renesas RX
2021-12-27 21:19:02 +09:00
Jerzy Kasenberg
7a596b9e55
Fix Mynewt build for Microchip PIC32MZ devices.
...
definition of DEBUG breaks Microchip pic32 builds for Mynewt.
When MCU is not VALENTYUSB_EPTRI there is no need to have any
preprocessor definitions.
It may not look like a big deal but for xc32 builds, compiler
automatically force-includes some file that have structure with field name
DEBUG that result in build error in dcd_eptri.c when this file
is not really needed.
Moving DEBUG and LOG_USB few lines down should not break eptri builds.
2021-12-27 10:14:38 +01:00
Jerzy Kasenberg
5c5ecea6f1
build system: Changes for xc32 compiler
...
Three changes are needed to accommodate xc32 compiler build:
- optimized build flag other than -Os
added CFLAGS_OPTIMIZED that defaults to -Os but can be overridden in boards
- build without -lnosys
added LIBS_GCC with default libraries that can be changed in boards
- build without LD_FILE specification
if LD_FILE is empty -Wl,-T options is not added to LDFLAGS
2021-12-27 10:11:56 +01:00
Ha Thach
a6789b5d5a
Merge pull request #1260 from leptun/patch-1
...
Fix typo
2021-12-23 11:30:15 +07:00
Alex Voinea
103817b8b6
Fix typo
...
Oops. Made a typo in 6de423606f
2021-12-22 22:56:53 +02:00
Ha Thach
557eb51405
Merge pull request #1258 from leptun/nucleo-f439zi
...
nucleo-f439zi support
2021-12-22 13:25:16 +07:00
Alex Voinea
6de423606f
nucleo-f439zi support
2021-12-21 18:24:05 +01:00
Ha Thach
a4cfd1c69a
Merge pull request #1255 from hathach/add-s3-devkitm
...
Add s3 devkitm & devkitc
2021-12-21 01:07:54 +07:00
hathach
311248c8b0
add s3 devkitc
2021-12-21 00:10:38 +07:00
hathach
63310d72e1
skip ci for s3
2021-12-21 00:04:50 +07:00
hathach
a442679459
change ci to s3 to espressif_s3_devkitm
2021-12-20 23:55:04 +07:00
hathach
2ab3988d9f
add s3 devkitm
2021-12-20 23:54:28 +07:00
Ha Thach
693b6886b1
Merge pull request #1252 from mkj/staticuart
...
samd21: make uart_init() static
2021-12-20 20:05:08 +07:00
Matt Johnston
9b2e78c915
samd21: make uart_init() static
...
Avoids a linker conflict if programs are using the same function name.
2021-12-20 15:43:16 +08:00
Ha Thach
cadfcd153e
Merge pull request #1244 from nxf58843/feature-kuiic
...
Feature kuiic
2021-12-16 17:57:06 +07:00
Greg Steiert
14ea32a117
Merge branch 'feature-kuiic' of https://github.com/nxf58843/tinyusb into feature-kuiic
2021-12-15 14:21:09 -08:00
Greg Steiert
469ecdd28c
added KUIIC to supported boards list
2021-12-15 14:18:27 -08:00
Gordon McNab
8d373b0887
Update midi_test endpoints and FT9xx code
2021-12-15 12:23:58 +00:00
nxf58843
51e24dd4f8
Merge branch 'hathach:master' into feature-kuiic
2021-12-13 08:59:17 -08:00
Greg Steiert
04fd8673cd
Merge branch 'master' of https://github.com/hathach/tinyusb into feature-kuiic
2021-12-13 08:56:58 -08:00
Ha Thach
dd30f2c648
Merge pull request #1243 from hathach/g4-nucleo
...
Add G4 support
2021-12-13 23:56:13 +07:00
Greg Steiert
c5416aa6aa
Merge branch 'master' of https://github.com/hathach/tinyusb into feature-kuiic
2021-12-13 08:56:01 -08:00
hathach
d097178ab0
correct wiring note
2021-12-13 17:59:43 +07:00
hathach
69bdd703c2
update doc to include g4
2021-12-13 17:53:38 +07:00
Ha Thach
bfb5e32e1f
Merge pull request #1233 from vmilea/rp2040_bugfix/ep_close
...
Handle the closing of endpoints on RP2040
2021-12-09 23:38:17 +07:00
hathach
51acc3e1b9
update g4 bsp
2021-12-09 12:42:08 +07:00
Greg Steiert
e72a6e90b9
added support for building uf2 file
2021-12-08 15:24:14 -08:00
Greg Steiert
59dcf2062f
adding support for KUIIC board
2021-12-08 14:31:44 -08:00
Ha Thach
6bf7fba2a4
Merge pull request #1221 from kasjer/kasjer/fix-nrf5x-vbus-race-condition
...
nrf5x: Fix race condition during startup
2021-12-09 00:44:44 +07:00
Gordon McNab
21fa7ea468
Correct path for using the ft90x-sdk submodule (BRTSG-FOSS / ft90x-sdk). Default to ft90x-sdk instead of pre-built library.
2021-12-08 13:56:23 +00:00
Gordon McNab
bcbcdf87de
Fix spelling mistakes and verify endpoint numbering.
2021-12-08 11:24:39 +00:00
Gordon McNab
79f1f4e171
Revert "Merge in upstream changes"
...
This reverts commit fa06bd01c9
.
2021-12-08 11:17:05 +00:00
Valentin Milea
ae970ba2e2
Handle xfer events before closing EP
2021-12-08 12:34:00 +02:00
Gordon McNab
fa06bd01c9
Merge in upstream changes
...
Merge upstream changes and expand example support to hid examples.
2021-12-08 10:05:32 +00:00
Gordon McNab
45869958f6
Add FT9xx to more examples which support High-Speed
2021-12-08 10:03:33 +00:00
Gordon McNab
5039a5e54c
Update code to implement changes from upstream master
2021-12-08 09:34:29 +00:00
Gordon McNab
9a7db98593
Merge branch 'master' into port-ft90x
2021-12-08 08:36:43 +00:00
Jerzy Kasenberg
21db2351fd
nrf5x: Fix race condition during startup
...
When NRF5x device is reset by software (after DFU for example),
power event is ready from the beginning.
When power interrupt is triggered before tud_init() finished
USBD_IRQn is enabled before it would be enabled in tud_init().
This in turn may result in BUS RESET event being sent from
USB interrupt to USB task when queue is not initialized yet.
This scenario often happens in Mynewt build where queue creation
takes more time.
To prevent this scenario USBD_IRQn is not enabled in power event
interrupt handler before dcd_init() was called.
2021-12-08 08:27:27 +01:00
Yunhao Tian
527036b1f5
Initialize MMU if we are executing from DDR
2021-12-08 13:39:27 +08:00
hathach
cd76193f3c
try updating clock configure for g4 nucleo (not work yet)
2021-12-08 10:37:46 +07:00
Yunhao Tian
43621ab9ed
Update README
2021-12-07 22:58:19 +08:00
Yunhao Tian
75f7fb3d9d
Add mksunxi tool to make flashable image
2021-12-07 22:53:52 +08:00
Valentin Milea
36e69b86bf
Remove buffer reclaim logs
2021-12-07 15:35:30 +02:00
Ha Thach
cde824f17f
Merge pull request #1222 from scoudreau/swo_logger
...
Remove unused-parameter errors when LOGGER=swo
2021-12-07 19:53:27 +07:00
Ha Thach
c157837878
Merge pull request #1213 from kkitayam/add_hcd_for_msp_exp432e401y
...
Add a HCD driver for MSP-EXP432E401Y
2021-12-07 19:24:41 +07:00
hathach
a5251cb86b
skip host ci for tm4c due to sram overflow
2021-12-07 17:14:20 +07:00
hathach
8e0400d531
change uart baudrate for tm4c123 to 115200
2021-12-07 16:28:24 +07:00
hathach
03835c8183
move hcd_musb.c include to family.mk
2021-12-07 16:27:48 +07:00
Valentin Milea
ef879e8a8a
Support disabling feedback format correction #1234
2021-12-06 18:49:58 +02:00
Yunhao Tian
96979a2c4a
Fix handling of RXRDY bit
2021-12-06 19:56:27 +08:00
Ha Thach
f8288be03f
Merge pull request #1227 from kkitayam/fix_dcd_musb_buffer_overrun
...
Fix buffer overrun in dcd_musb driver
2021-12-06 00:43:25 +07:00
Yunhao Tian
1ffc366aa9
Change FIFO size to 4KB (not sure)
...
The datasheet says 2KB FIFO, but accroding to many
code examples, the F1C100s has at least 4KB of FIFO memory.
This is working with cdc_msc example,
but I'm not sure, this should be checked.
2021-12-05 22:40:05 +08:00
Yunhao Tian
f308603a3a
Fix a typo that leads to incorrect RX handling
2021-12-05 22:31:09 +08:00
Yunhao Tian
702698ee29
Add FIFO size check
2021-12-05 18:18:41 +08:00
Yunhao Tian
64b81fd4d3
Close all EPs upon reset
2021-12-05 18:08:01 +08:00
Yunhao Tian
fa0e4d91f9
Save current EP before querying other EPs
2021-12-05 18:07:35 +08:00
Valentin Milea
48e1f6d899
Handle the closing of endpoints on RP2040
2021-12-04 16:04:48 +02:00
Yunhao Tian
28fb51c180
Add TODO to README
2021-12-04 18:08:23 +08:00
Yunhao Tian
68ca62dfd7
Add BSP support for F1C100s
2021-12-04 18:02:07 +08:00
Yunhao Tian
dff54d854d
Modify sunxi_musb code
2021-12-04 17:18:39 +08:00
kkitayam
7137a0a92f
Fix buffer overrun at pipe_read_packet()
2021-12-04 01:25:34 +09:00
kkitayam
81285273a6
Fix memory overrun at pipe_read_packet()
2021-12-04 01:18:42 +09:00
Ha Thach
6ecd93eb60
Merge branch 'master' into add_hcd_for_msp_exp432e401y
2021-12-03 00:30:09 +07:00
Ha Thach
3e9bb3bee1
Merge pull request #1225 from perigoso/doc-requirements
...
after commit: eae4132
this dependency is no longer required
2021-12-03 00:27:37 +07:00
Rafael Silva
c52c9cda91
after commit: eae4132
this dependency is no longer required
...
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-12-02 10:24:19 +00:00
Ha Thach
6f0c2cf0d8
Merge pull request #1224 from hathach/chipidea-controller
...
rename transdimension to chipidea
2021-12-02 14:10:24 +07:00
hathach
94c35de0d2
minor doc update
2021-12-02 13:19:27 +07:00
Ha Thach
821c0a9f38
Merge pull request #1223 from hathach/fix-s3-ci
...
temporarily skip s3 build on ci
2021-12-02 12:48:31 +07:00
hathach
1d1e75236c
temporarily skip s3 build on ci
2021-12-02 12:02:25 +07:00
hathach
369f11fe5c
fix ci
2021-12-02 11:50:28 +07:00
hathach
eae4132fbb
update supported doc
2021-12-02 11:31:27 +07:00
hathach
207c60d055
more chipidea
2021-12-02 00:03:44 +07:00
hathach
83dc3e25f0
more work to abstract chipidea driver
2021-12-01 23:30:09 +07:00
hathach
61a9e125db
more ci abstract
2021-12-01 23:19:17 +07:00
Sebastien COUDREAU
c9d9bfab92
Remove unused-parameter errors when LOGGER=SWO
2021-12-01 17:10:31 +01:00
Yunhao Tian
bb7d1fa3ba
Add support for Allwinner F1Cx00s family
...
Allwinner F1Cx00s family is a series of SoCs
with Mentor MUSB controller and HS phy. It comes
with a slightly different register space layout,
and some quirks, so it's not multiplexed with
the existing musb support library.
This library currently requires to be compiled
with https://github.com/hongxuyao/F1C100s_with_Keil_RTX4_emWin5
2021-12-01 15:35:48 +08:00
hathach
0612433eef
add chipidea highspeed controller
...
add warning to transdimension for the rename
2021-12-01 12:14:44 +07:00
Ha Thach
6af58e3385
Merge pull request #1193 from rppicomidi/implement_usbh_replug_on_pico
...
Implement usbh replug on pico
2021-11-30 21:53:28 +07:00
kkitayam
9bccc8068b
Add register settings to handle a HUB
2021-11-30 23:13:20 +09:00
hathach
3e3fe1e429
improve hcd_device_close() for rp2040
2021-11-30 17:36:52 +07:00
rppicomidi
006522e437
on unplug release device endpoints
2021-11-30 17:17:06 +07:00
rppicomidi
06f99c220e
implement hcd device close
2021-11-30 17:17:06 +07:00
Yunhao Tian
a6929cf03e
Add support for Keil RTX4 OS abstraction layer
2021-11-30 17:19:11 +08:00
Yunhao Tian
ac20605e3f
Ignore certain compiler options on ARMCC
...
ARMCC also sets __GNU__ macro, but doesn't support
GCC diagnostic pragmas.
2021-11-30 17:19:11 +08:00
Yunhao Tian
dba59217da
usbd: supress "statement is unreachable" warning on ARMCC
2021-11-30 17:19:10 +08:00
Ha Thach
9775e76910
Merge pull request #1216 from hathach/update-doc
...
Update doc
2021-11-30 12:02:05 +07:00
hathach
4678a4142e
remove warnings
2021-11-30 00:35:39 +07:00
hathach
33506675c5
update supported doc
2021-11-30 00:33:55 +07:00
Ha Thach
ae5b1bab14
Merge pull request #1215 from hathach/fix-esp-stack
...
use 4k stack for example with esp32sx
2021-11-29 16:17:37 +07:00
Ha Thach
aae57cd3fd
Merge pull request #1214 from hathach/fix-gamepad-comment
...
correct 32 button in gamepad hid descriptor template
2021-11-29 15:40:56 +07:00
hathach
7ad0af64cc
use 4k stack for example with esp32sx
2021-11-29 13:24:10 +07:00
hathach
ab223eb1df
correct 32 button in gamepad hid descriptor template
2021-11-29 13:07:46 +07:00
kkitayam
24614de419
Fix build errors
2021-11-29 00:45:57 +09:00
kkitayam
ae9a39ec1f
Add musb driver
2021-11-29 00:42:18 +09:00
kkitayam
b3dddc77eb
Add initialization sequence as a HOST
2021-11-29 00:40:23 +09:00
kkitayam
b50cf856b3
Add hcd_musb.c
2021-11-29 00:28:22 +09:00
kkitayam
7413b6b020
Add a compile condition for dcd
2021-11-27 10:26:32 +09:00
Ha Thach
44b131e8cf
Merge pull request #1209 from HiFiPhile/iar_update
...
Update iar project template.
2021-11-26 18:35:37 +07:00
Ha Thach
79de83183f
Merge pull request #1208 from hathach/fix-nrf-easydma-race
...
fix nrf easy dma race condition
2021-11-26 13:31:25 +07:00
Mengsk
225e718270
Update iar project template.
2021-11-25 17:27:33 +01:00
hathach
c9e9f4785f
more clean up
2021-11-23 09:52:11 +07:00
hathach
0fc11746c0
clean up
2021-11-23 09:46:45 +07:00
hathach
a994540860
fix nrf easy dma race condition
2021-11-23 09:36:28 +07:00
Gordon McNab
edf3f35016
Update ft90x-sdk
...
Update submodule for FT90X SDK to point to the v2.5.0 release code currently in main.
2021-11-22 12:38:04 +00:00
Gordon McNab
ba76b2e339
Add submodule for ft90x SDK
...
Add Bridgetek FT90x SDK as submodule.
2021-11-22 10:33:07 +00:00
Ha Thach
ae73873b5c
Merge pull request #1207 from hathach/update-issue-tempate
...
Update bug_report.yml
2021-11-22 12:18:36 +07:00
Ha Thach
b8d66e4d19
Merge pull request #1206 from hathach/bcm-dwc2-address
...
Bcm dwc2 address
2021-11-22 12:07:07 +07:00
Ha Thach
e5adc46805
Update bug_report.yml
2021-11-22 11:27:37 +07:00
Ha Thach
64e6170224
Update bug_report.yml
2021-11-22 11:26:23 +07:00
hathach
8a18c22c2f
add BCM_VERSION
2021-11-22 10:59:22 +07:00
hathach
21787ecdd3
update bcm prph
2021-11-22 10:52:53 +07:00
hathach
dac7574c98
use USB_OTG_GLOBAL_BASE instead of hard code value
2021-11-22 10:52:28 +07:00
Ha Thach
5d7e26d620
Merge pull request #1195 from hathach/fix-dwc2-XCVRDLY
...
set DCFG_XCVRDLY when using external ULPI highspeed phy
2021-11-19 20:49:41 +07:00
hathach
301d6b4133
clean up
2021-11-17 09:48:08 +07:00
hathach
12e96ce571
set DCFG_XCVRDLY when using external ULPI highspeed phy
2021-11-15 12:18:28 +07:00
Ha Thach
6f59a2ce6e
Merge pull request #1183 from kkitayam/add_msp_exp432e401y
...
Add support for TI MSP-EXP432E401Y
2021-11-08 23:33:45 +07:00
hathach
1c77f9f669
msp432e4 ci typo, skip dfu example for tm4c123
2021-11-08 20:03:47 +07:00
hathach
1e308dd6c0
reduce CFG_TUD_DFU_XFER_BUFSIZE for max compatible
2021-11-08 19:18:52 +07:00
hathach
d415bd4d7b
add missing musb type file
2021-11-08 17:39:37 +07:00
hathach
17ef1503c8
move tm4c132 into bsp family, add it into ci
2021-11-08 17:37:21 +07:00
hathach
f65917f51a
rename to simply OPT_MCU_MSP432E4, add msp432e to ci
2021-11-08 17:29:26 +07:00
hathach
6fea50f735
musb work well with tm4c123
2021-11-08 16:41:29 +07:00
hathach
91646d039c
add flash-openocd target. correct ek-tm4c123 button state
2021-11-08 16:41:29 +07:00
hathach
23e6e0ef33
merge pull request 670 for tm4c123gxl bsp
2021-11-08 16:41:29 +07:00
kkitayam
26461d1efe
Fix DCD_EVENT_XFER_COMPLETE was signaled, even after EP is closed
2021-11-07 18:25:11 +09:00
kkitayam
dd7eb36830
Remove unnecessary lines
2021-11-06 23:10:11 +09:00
kkitayam
30d3bf8bec
Update TI driver
2021-11-06 23:05:27 +09:00
kkitayam
23ef8b2c64
Change the variables for a switch and a LED to symbols defined by the macros
2021-11-06 19:32:15 +09:00
kkitayam
e4520e7aa7
Add statements for FreeRTOS
2021-11-06 00:06:27 +09:00
kkitayam
0b3c8c4a59
Implement dcd_edpt_xfer_fifo for dcd_musb
2021-11-06 00:06:27 +09:00
kkitayam
50ca0dda2c
Add dcd_musb.c
2021-11-06 00:06:26 +09:00
kkitayam
f183d0810b
Add files for msp432e4
2021-11-06 00:06:26 +09:00
Ha Thach
ab760290a5
Merge pull request #1181 from liamfraser/rp2040-hcd-assert-fix
...
Fix invalid assert in RP2040 host mode when compiled in debug mode
2021-11-05 21:40:42 +07:00
Ha Thach
a9ce2dbcb4
Merge pull request #1182 from kasjer/kasjer/update-bth-iad
...
Update bth for IAD support
2021-11-05 20:48:18 +07:00
Jerzy Kasenberg
d20a5b3a09
bth: Add IAD to BT descriptor
...
Bluetooth's specification defines IAD for primary controller.
While it seems that Windows and Linux can leave without this,
there is no reason TinyUSB should not provide it.
2021-11-05 13:03:31 +01:00
Jerzy Kasenberg
ec8ece2c9d
bth: Update driver to interface association changes
...
Two interfaces that are required by Bluetooth Primary Controller
do not have IAD according to Bluetooth specification.
Those two interfaces were opened separately in process_set_config().
Later interface association was inferred for BTH (along with other
drivers), since then only one call to open() is place for BTH driver
that should prepare both interfaces at once.
To make it work again btd_open() parses two interfaces at once.
2021-11-05 12:33:15 +01:00
Liam Fraser
e692fa9ae4
RP2040 HCD: Move invalid ep->active assert in hw_trans_complete. The check for ep->active should only happen if a setup packet was just sent. Otherwise the transaction is handled in hw_handle_buff_status.
2021-11-05 09:39:31 +00:00
Ha Thach
c04006bc13
Merge pull request #1180 from hathach/add-xmc4500
...
Add xmc4500
2021-11-05 14:38:23 +07:00
hathach
3fc3e400b0
add xmc4000 to ci build
2021-11-05 13:23:31 +07:00
hathach
422f439bf7
update docs
2021-11-05 13:18:54 +07:00
hathach
d87a897a7b
xmc4500 ported, cdc msc example run fine
2021-11-05 13:13:21 +07:00
hathach
d9cf49cbfd
add xmclib as submodule
2021-11-05 12:00:27 +07:00
Ha Thach
5fcd0e284b
Merge pull request #1178 from kasjer/kasjer/fix-mynwet-build
...
broadcom/dcd: Fix mynewt build
2021-11-05 11:58:21 +07:00
hathach
a3fc107d94
xmc4500 led blinky, button ok
2021-11-05 11:57:36 +07:00
Ha Thach
19f0fd90d3
Merge pull request #1179 from hathach/perigoso-patch-1
...
docs: update supported device table
2021-11-05 08:57:45 +07:00
Rafael Silva
ec99bec8cb
docs: update supported device table
...
remove known issue #750 from silabs EFM32GG table entry
2021-11-04 23:00:05 +00:00
Jerzy Kasenberg
e35bb6341c
broadcom/dcd: Fix mynewt build
...
dcd_synopsys.c included broadcom/interrupts.h before
preprocessor check whether file should be used.
Since mynewt build does not include all folders it resulted in build
error.
Now offending include is moved few lines after preprocessor check.
2021-11-04 21:46:17 +01:00
hathach
310f287f44
couldn't get g4 usb clock and pin setup just yet. Leave it as it is for now
2021-11-04 17:52:55 +07:00
hathach
f90f5ea369
adding g4 family with g474nucleo, able to blink led and button
2021-11-04 16:16:51 +07:00
hathach
8b3708b44f
rename l4 board to match other convention
2021-11-04 13:57:03 +07:00
Ha Thach
fc59515bfd
Merge pull request #1163 from hathach/generalize-synopsys-dwc2
...
Generalize synopsys dwc2
2021-11-04 13:41:25 +07:00
hathach
6cfdf697eb
add hint/question with ISB
2021-11-04 12:42:28 +07:00
hathach
4a8ac71711
Add timer1 on pi4 for blinky
...
this get usb irq triggered even without ISB() in previous commit
2021-11-04 12:31:16 +07:00
hathach
b51d038b65
fix issue with bcm2711 caching issue by ading ISB() after dwc2_dcd_int_enable90
...
also add hwcfg_list for reference
2021-11-04 12:30:11 +07:00
hathach
0faff5a859
update broadcom peripherals to latest
2021-11-03 13:13:08 +07:00
hathach
e16506cb52
clean up
2021-11-03 12:24:10 +07:00
hathach
28b177484d
skip net example for pi4 due to ssize_t conflict
2021-11-02 22:27:00 +07:00
hathach
0e733ae14b
add pi4 to ci build in build_aarch64
2021-11-02 21:46:23 +07:00
hathach
1046786acf
change broadcom submodule path from git to http
2021-11-02 18:17:59 +07:00
hathach
4431ced598
add L4 to ci, update doc
2021-11-02 16:20:39 +07:00
hathach
7e68894726
grouping stm32L4 family in bsp
2021-11-02 16:10:40 +07:00
hathach
b809429873
minor clean up
2021-11-02 14:51:15 +07:00
hathach
aa682d7301
add fix for stm32l4 (version 3.10a) which generate transfer complete when setup recieved and control out data complete
2021-11-02 13:52:30 +07:00
Ha Thach
b4a0f0b273
Merge pull request #1176 from jgressmann/bugfix/samd21-systick
...
samd21: enable SysTick only if running w/o OS
2021-11-02 10:49:41 +07:00
Jean Gressmann
5fb16a8f2c
samd21: enable SysTick only if running w/o OS
2021-11-01 18:01:18 +01:00
Ha Thach
9245b8f89f
Merge pull request #1164 from suda-morris/refactor/update_include_header_esp32xx_dcd
...
update dcd_esp32sx with correct include list
2021-11-01 15:24:51 +07:00
Ha Thach
fa3ed606b4
Merge pull request #1172 from jgressmann/feat/trinket_m0
...
Adds support for Adafruit's Trinket M0
2021-10-31 19:10:20 +07:00
Jean Gressmann
ba34f420db
Adds support for Adafruit Trinket M0
2021-10-31 12:34:53 +01:00
hathach
4ea8f1441d
correct freertos port for efm32gg
2021-10-31 00:19:17 +07:00
hathach
215e0595ab
change F207 to use new dwc2
2021-10-31 00:09:40 +07:00
hathach
b85a6898af
remove dcd_efm32
2021-10-30 20:45:58 +07:00
hathach
9cd5a87c64
add support for EFM32GG
...
merge GG12 GG12 to simply OPT_MCU_EFM32GG
2021-10-30 20:42:55 +07:00
Ha Thach
2019c8ad7e
Merge pull request #1171 from mkj/qtpy
...
Add Adafruit QT Py board
2021-10-30 12:57:51 +07:00
Matt Johnston
19a26729b0
Add Adafruit QT Py board
...
Straight copy of itsybitsy_m0/ with MCU changed to
ATSAMD21E18
LED and button are disabled.
LED is a neopixel so could be added later.
2021-10-29 18:00:23 +08:00
hathach
660e8b8c88
skip snpsid check for gd32, abstract phyfs turnaround, set max timeout calibration.
...
still has issue with gd32 with msc (does work with running with rtt as
log).
2021-10-29 16:08:19 +07:00
Matt Johnston
8e95b807f7
samd21: Make LED_PIN and BUTTON_PIN optional
...
Some boards don't have them, just ignore
2021-10-29 13:49:15 +08:00
hathach
6c67fc4125
correctly init hs phy for bcm
2021-10-29 00:53:30 +07:00
hathach
7def380058
support bcm2711 on pi4, enhance dcd init with utmi and ulpi hs phy
2021-10-28 12:52:18 +07:00
Gordon McNab
6a658007a5
Changes to use ft90x-sdk as submodule or installed SDK from toolchain.
2021-10-27 12:30:51 +01:00
hathach
49aa69a301
update bcm dcd
2021-10-26 23:57:48 +07:00
hathach
07829510e7
Merge branch 'tannewt-rpi' into generalize-synopsys-dwc2
2021-10-26 23:43:35 +07:00
hathach
9f1cd1a753
add synopsys id check, rename GCCFG_* to STM32_GCCFG-*
2021-10-26 23:10:26 +07:00
hathach
bb5dab5c2e
add hw config struct
2021-10-26 22:48:01 +07:00
hathach
68fa9d4064
enhance fifo read/write
2021-10-26 13:56:56 +07:00
hathach
5d05f8758f
more clean up
2021-10-26 13:36:43 +07:00
hathach
4ebfd00d67
clean up
2021-10-26 13:33:40 +07:00
hathach
de413183d4
use dwc2->epin
2021-10-26 13:07:00 +07:00
hathach
e7655a7567
update the access epout
2021-10-26 13:02:26 +07:00
hathach
34844c9061
use dwc2->fifo[]
2021-10-26 12:53:29 +07:00
hathach
5e1a031800
complete dwc2 regs struct
2021-10-26 12:22:41 +07:00
hathach
3755814f57
add epin, epout to dwc2 regs
2021-10-26 11:49:59 +07:00
hathach
8df078dc9e
more rename
2021-10-26 11:11:46 +07:00
hathach
7369d2441d
update dwc2_type
2021-10-26 00:55:24 +07:00
Ha Thach
39c7fa1596
Merge pull request #1162 from todbot/master
...
Properly handle Program Change and Channel Aftertouch messages
2021-10-25 23:49:30 +07:00
hathach
460052c8a0
spacing
2021-10-25 21:20:58 +07:00
suda-morris
7d0d6f85f2
update dcd_esp32sx with correct include list
2021-10-25 21:53:14 +08:00
hathach
dbd31895bc
change usage of TU_CHECK_MCU() to prevent macro conflict
2021-10-25 17:04:03 +07:00
hathach
85e18b9172
house keeping
2021-10-25 15:58:12 +07:00
hathach
4ccf60954d
moving esp32s2 to dwc2, abstract dwc2_set_turnaround()
2021-10-25 15:51:41 +07:00
Tod Kurt
9f014b059a
properly handle Program Change and Channel Aftertouch messages
2021-10-25 00:07:59 -07:00
hathach
a0202df920
add TU_ARGS_APPLY(), TU_CHECK_MCU() now could check list of mcus
2021-10-25 13:49:59 +07:00
hathach
61c80840c3
update dwc int enable/disable
2021-10-25 00:40:21 +07:00
hathach
4ab931a361
more clean up
2021-10-25 00:23:18 +07:00
hathach
0e7c103e98
minor rename
2021-10-25 00:11:17 +07:00
hathach
32742571da
switch gd32 and stm32f4 to use new dwc2 driver
2021-10-25 00:06:57 +07:00
hathach
06de6b725c
adding generalized dwc2 driver
2021-10-24 23:24:46 +07:00
Ha Thach
55e0b5882a
Merge pull request #1160 from cr1901/msp-fix
...
msp430x5xx: Set base of transmit_packet buffer earlier to avoid incre…
2021-10-24 17:28:11 +07:00
Ha Thach
54bcc9f145
Merge pull request #1161 from hathach/rm-ep-size-bitfield
...
Remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 15:37:05 +07:00
hathach
109b7a6661
more wMaxPacketSize
2021-10-24 14:39:02 +07:00
hathach
5af989384b
remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 13:11:21 +07:00
hathach
6f5b197a98
indent
2021-10-24 08:44:58 +07:00
William D. Jones
07c74c76d0
msp430x5xx: Set base of transmit_packet buffer earlier to avoid incrementing past unsent data.
2021-10-23 14:04:44 -04:00
Ha Thach
ffde3bd33d
Merge pull request #1159 from hathach/fix-warnings
...
Increase compiler warnings flags
2021-10-24 00:19:19 +07:00
Ha Thach
311c05b401
Merge branch 'master' into fix-warnings
2021-10-23 21:23:56 +07:00
Ha Thach
b541c0f5e0
Merge pull request #1150 from kkitayam/change_input_terminal_type_to_camera
...
UVC example: change input terminal type to camera from external
2021-10-23 20:48:52 +07:00
Scott Shawcroft
2ef200003d
Update broadcom library
2021-10-22 09:31:24 -07:00
Scott Shawcroft
35b62810c3
Update submodule
2021-10-22 09:00:42 -07:00
Scott Shawcroft
4279ad7d6e
Merge pull request #1 from hathach/tannewt-rpi
...
pi cm4 enumerated as full speed device
2021-10-22 08:55:10 -07:00
hathach
5e437ee186
pi cm4 enumerated as full speed device
2021-10-22 21:55:15 +07:00
Ha Thach
5079d47ff5
Merge pull request #1153 from majbthrd/ipv4
...
net_lwip_webserver: allow users to enable LWIP_IP6 if desired
2021-10-20 15:58:18 +07:00
Peter Lawrence
d42b5604ce
net_lwip_webserver: allow users to enable LWIP_IP6 if desired
2021-10-19 11:29:51 -05:00
kkitayam
b3b6b4f785
Update _negotiate_streaming_parameters() to handle some requests
2021-10-19 21:49:00 +09:00
Ha Thach
4bfab30c02
Merge pull request #1139 from hathach/release-0.12.0
...
update changelog and increase version for 0.12.0
2021-10-19 13:27:53 +07:00
hathach
3485c82246
update changelog
2021-10-19 12:35:35 +07:00
kkitayam
4fd0ee4eef
Implement GET_DEF and GET_LEN handling on Probe/Commit entities of streaming interface
2021-10-18 21:53:38 +09:00
hathach
6fcf4bee8c
suppress null-dereference by usbh and lwip
2021-10-18 11:42:00 +07:00
hathach
a7dd5b616c
fix -Wnull-dereference in midi_device
2021-10-18 01:11:27 +07:00
Ha Thach
e927359d9c
Merge pull request #1147 from kasjer/kasjer/msc-examples-serial-number
...
msc examples: Extend serial number to 12 digits
2021-10-18 00:49:22 +07:00
hathach
826b34a8ac
enable -Wnull-dereference
2021-10-18 00:13:40 +07:00
Ha Thach
4cecd4e6e3
Merge pull request #1146 from kasjer/kasjer/da146xx-usb-complience
...
da146xx usb complience
2021-10-17 23:48:04 +07:00
Ha Thach
38f02f0f3d
Merge pull request #1145 from kilograham/release-0.12.0
...
Address compiler warnings
2021-10-17 17:47:11 +07:00
hathach
099d3b377f
add volatile to EPx_REGS for -Wcast-qual
...
since gcc does difference between volatile struct and member when
casting pointer
2021-10-17 17:33:14 +07:00
hathach
31cd366935
more -Wcast-qual
2021-10-17 17:32:03 +07:00
hathach
a5f516893b
more with -Wcast-qual
2021-10-17 16:36:53 +07:00
kkitayam
7325dd6335
Change input terminal type to camera
2021-10-16 12:06:13 +09:00
hathach
0b249618b0
fix -Wcast-qual
2021-10-15 23:54:31 +07:00
Jerzy Kasenberg
9a688224d0
msc examples: Extend serial number to 12 digits
...
USB3CV tool complains about too short serial number being used
in MSC device.
This just extends serial number to 12 characters, it makes it
easier to analyze USB3CV logs where this unnecessary warning
made output red.
Offending warning:
Serial Number string for MSC device : iSerialNumber = 0x3
Checking iSerialNumber String Descriptor: index = 0x03.
String Descriptor : "123456". (ENGLISH_US)
Using Language ID 0x409
MSC Serial Number length = 14
Invalid MSC Serial Number length : should be >= 26
*************************
Invalid MSC Serial Number length
*************************
*************************
(MSC: 5.1.2) Serial number must be a string, 12 characters or longer
(if the device supports a BOT interface, bInterfaceProtocol = 0x50),
or exactly 12 characters long (if the device supports a CBI interface,
bInterfaceProtocol = 0x00 or 0x01, and has a serial number).
2021-10-15 14:07:40 +02:00
Jerzy Kasenberg
bf4b133084
dcd_da146xx: Drop unexpected data
...
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-15 12:02:15 +02:00
Jerzy Kasenberg
49aa0b72a8
dcd_da146xx: Fix EPIN stall notification handling
...
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-15 12:02:15 +02:00
hathach
7596cb3079
update some sense warning from -Wconversion
2021-10-15 15:54:32 +07:00
graham sanderson
06d9555389
More warning cleanup
...
- 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-14 15:23:26 -05:00
Ha Thach
d94a5aa044
Merge pull request #1144 from kilograham/release-0.12.0
...
Fix compiler warning
2021-10-15 01:59:06 +07:00
Ha Thach
4d0cf6135a
Merge pull request #1143 from kkitayam/fix_video_format_guid
...
Fix GUID of video compression formats
2021-10-15 01:55:42 +07:00
graham sanderson
7667299b48
Remove compiler warning
2021-10-14 12:13:39 -05:00
kkitayam
2a795d5fd0
Fix GUID of video compression formats
2021-10-14 23:15:35 +09:00
hathach
5cfe293001
update changelog and increase version for 0.12.0
2021-10-13 17:32:34 +07:00
Ha Thach
9da234cd7c
Merge pull request #1101 from kasjer/kasjer/da146xx-bus-reset-sleep
...
da146xx bus reset and sleep reworked
2021-10-13 16:33:54 +07:00
Scott Shawcroft
4ab14867da
Trying to get USB init
2021-10-12 16:47:53 -07:00
Ha Thach
b26cc2cc46
Add linkermap for size analysis ( #1136 )
...
* add NO_LTO option to make
* add linkermap submodule and linkermap target
* add linkermap to ci build
* linkermap doesn't work with esp32sx map file yet
* add note for linkermap target
2021-10-13 00:57:45 +07:00
Ha Thach
2ba690d31d
Merge pull request #1118 from kkitayam/add_uvc
...
Add Video class
2021-10-12 22:47:52 +07:00
Ha Thach
379537cb6d
Merge branch 'master' into add_uvc
2021-10-12 22:01:02 +07:00
hathach
557fa3900a
update docs
2021-10-12 21:57:34 +07:00
kkitayam
67f1603833
Fix a typo
2021-10-12 23:35:19 +09:00
Koji KITAYAMA
ef04dee52a
Merge pull request #1 from hathach/kkitayam-add_uvc
...
minor code clean up without functional changes
2021-10-12 23:20:55 +09:00
hathach
4d9e44e09c
more rename
2021-10-12 01:12:26 +07:00
hathach
7afcb1e5d5
minor code clean up without functionality changes
2021-10-12 00:56:20 +07:00
hathach
4d170614dc
rename some video constants
2021-10-11 23:18:24 +07:00
hathach
b3bfce2cb7
update the descriptor endpoint ISO for nrf5x
2021-10-11 16:07:34 +07:00
Ha Thach
ecec0370ca
Merge pull request #1107 from majbthrd/add_ncm
...
add NCM driver in a compatible manner : hathach/tinyusb#550
2021-10-11 15:57:46 +07:00
hathach
a6723f556d
add ncm.h for magic number
...
mostly clean up magic number
2021-10-11 12:36:03 +07:00
kkitayam
b6d09ca761
Add compile option to allocate video data into flash in video_capture example
2021-10-09 23:02:18 +09:00
kkitayam
a3a18c9ed3
Change the video image to scrolling color bars.
2021-10-09 19:51:51 +09:00
hathach
a8eea9f6a5
add backward compatible with warnings for CFG_TUD_NET
2021-10-09 11:28:55 +07:00
Gordon McNab
5e6edecaa3
Streamline settings for board.
2021-10-07 17:00:28 +01:00
Gordon McNab
8c40a74f29
Sort out board settings.
2021-10-06 17:13:44 +01:00
Gordon McNab
9966b8a5d6
Change author in header to Bridgetek Pte Ltd.
2021-10-06 16:54:52 +01:00
Gordon McNab
37c5eeb51d
Rename directories to indicate that FT930 and FT900 devices are both covered by the same SDK and src/portable code. Board makefile includes __FT900__ macro for FT90x and __FT930__ macro for boards with FT93x.
2021-10-06 16:50:55 +01:00
Ha Thach
9660a5821f
Merge pull request #1123 from Daft-Freak/patch-1
...
Handle HID devices with OUT endpoint listed first
2021-10-06 16:55:33 +07:00
Gordon McNab
bcecbfdc29
Modify cdc_msc example for Bridgetek FT90x/FT93x
...
Add in endpoint definitions for the Bridgetek devices in usb_descriptors.c and allow high speed in tusb_config.h.
2021-10-06 09:15:33 +01:00
Scott Shawcroft
98ab8117d6
USB seems to init ok
2021-10-05 18:20:44 -07:00
Gordon McNab
62c613f6d2
Add initial port for FT9xx series from Bridgetek.
...
Add FT90X and FT93X to the list of devices in tusb_option.h. 1700 for FT90x and 1701 for FT93x.
Set endpoint attributes for FT90x and FT93x in dcd_attr.h.
Add FT90x routines for USB device in src/portable/bridgetek/ft90x/dcd_ft90x.c
The location for hardware header files and libraries is hw/mcu/bridgetek/ft90x/hardware. There are no files in the repository, but files will be linked as a submodule in the future. The required files can be copied from or linked to the location "C:/Program Files(x86)/Bridgetek/FT9xx Toolchain/Toolchain/hardware" once the toolchain is installed.
Makefile for the MM900EV1B board for developing with an FT900 device is present. Use "BOARD=mm900ev1b".
2021-10-05 13:54:47 +01:00
hathach
431650fb7d
Merge branch 'j4cbo-ncm' into majbthrd-add_ncm
2021-10-05 16:32:37 +07:00
hathach
6fd62c8902
update docs
2021-10-05 16:06:54 +07:00
hathach
a867d87072
rename CFG_TUD_NET to CFG_TUD_ECM_RNDIS
2021-10-05 16:00:07 +07:00
hathach
31cfd5a684
Merge branch 'add_ncm' of https://github.com/majbthrd/tinyusb into majbthrd-add_ncm
2021-10-05 11:39:32 +07:00
Charlie Birks
aa97b419b2
Handle HID devices with OUT endpoint listed first
...
This happens on my PowerA wired Switch pro controller
2021-10-04 11:43:12 +01:00
Ha Thach
d9bda631d4
Merge pull request #1120 from hathach/enhance
...
house keeping update
2021-10-01 23:31:21 +07:00
hathach
fec2d15989
clean up vendor open
2021-10-01 23:00:09 +07:00
hathach
75ad0c7d31
clean up
2021-10-01 22:53:14 +07:00
hathach
fdd1e4fbf0
more usbd clean up
2021-10-01 21:52:29 +07:00
Scott Shawcroft
0932d502c7
remove bcm files
2021-09-30 14:50:38 -07:00
Ha Thach
c851229eea
Merge pull request #1063 from HiFiPhile/uac_fifo
...
UAC2: Add xfer_fifo support for dcd_transdimension.
2021-10-01 00:17:51 +07:00
Ha Thach
e7ef322268
Merge pull request #1113 from szymonh/master
...
Assure msc device block size is not zero
2021-10-01 00:08:32 +07:00
kkitayam
a1788da410
Add video class entry to rp2040 building scripts
2021-09-30 22:14:29 +09:00
hathach
7708997a67
change scsis status to phase error when total_bytes < block_count
2021-09-30 20:14:23 +07:00
hathach
14514d7087
Merge branch 'master' of https://github.com/szymonh/tinyusb into szymonh-master
2021-09-30 20:02:32 +07:00
kkitayam
2800a6a583
Add a file to skip bluepill
2021-09-30 21:46:16 +09:00
kkitayam
98e6a93a78
Add a list file for rp2040
2021-09-30 21:38:27 +09:00
kkitayam
889e4103d9
Add files to skip building for small ROM
2021-09-30 21:27:09 +09:00
kkitayam
9a7795464e
Add cast operations to unused parameters
2021-09-30 21:08:57 +09:00
kkitayam
831443a2dc
Move frame settings to usb_descriptors.h
2021-09-30 01:13:33 +09:00
kkitayam
4ca466b00b
Update comments
2021-09-29 22:59:46 +09:00
kkitayam
9bcab53c2c
Implement frame rate settings
2021-09-29 22:53:26 +09:00
kkitayam
dba5e7b17d
Implement negotiation process for streaming parameters
2021-09-29 21:23:19 +09:00
kkitayam
0c89292a8d
Fix transfer failure when reconnecting
2021-09-29 21:23:19 +09:00
kkitayam
319db9573c
Change video frames to project logo
2021-09-29 21:23:18 +09:00
kkitayam
a15c354329
Fix typo
2021-09-29 21:23:18 +09:00
kkitayam
f7bbdea0b8
Refactor application API parameters
2021-09-29 21:23:17 +09:00
kkitayam
0d6496886c
Change frame buffer management
2021-09-29 21:23:17 +09:00
kkitayam
d88cc23ca5
Refactor packet handling
2021-09-29 21:23:17 +09:00
kkitayam
a978828c3a
Add green plain
2021-09-29 21:23:16 +09:00
kkitayam
cd3f6eac2f
Fix streaming payload handling
2021-09-29 21:23:16 +09:00
kkitayam
3cb4bb391d
Separate a handling resource into controller and streaming
2021-09-29 21:23:16 +09:00
kkitayam
2b4e02f192
Implement some mandatory requests on streaming interface
2021-09-29 21:23:16 +09:00
kkitayam
4995d9cbd2
Fix handling for set_interface
2021-09-29 21:23:15 +09:00
kkitayam
20572a6ed2
Fix regarding standard video stream request
2021-09-29 21:23:15 +09:00
kkitayam
c52cf9c8a5
fix: endpoint descriptor has incorrectly settings
2021-09-29 21:23:15 +09:00
kkitayam
d026f17457
fix: configuration descriptor has incorrectly sizes
...
update some descriptors
2021-09-29 21:23:15 +09:00
kkitayam
019c1ab09e
add tentative example
2021-09-29 21:23:14 +09:00
kkitayam
033d6b28ff
moved ISO attributes from audio to common
2021-09-29 21:23:14 +09:00
kkitayam
e8de411322
cleanup open()
2021-09-29 21:23:14 +09:00
kkitayam
97d5d1e491
add files for video class device
2021-09-29 21:23:14 +09:00
hathach
1d5bdf7d39
add same7x to board list
2021-09-29 16:29:15 +07:00
hathach
0b31c40b9f
Merge branch 'master' into enhance
2021-09-29 16:18:17 +07:00
hathach
2f2fb3d8d9
clean up
2021-09-29 16:18:11 +07:00
Ha Thach
5b55b0d259
Merge pull request #1117 from hathach/zhangslice-master
...
add mm32 bsp (repalce #897 )
2021-09-29 15:51:22 +07:00
hathach
b5b03e6c7f
add mm32 to ci build, also re-enable esp32s3
2021-09-29 15:33:44 +07:00
hathach
f3c1b2a60d
clean up
2021-09-29 15:31:03 +07:00
hathach
103309b88b
Merge branch 'master' of github.com:hathach/tinyusb into zhangslice-master
...
examples/device/hid_composite_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
2021-09-29 15:27:41 +07:00
hathach
3eeb79be4f
update mm32sdk submodule
2021-09-29 15:20:14 +07:00
hathach
7af57e41b5
add submodule hathach/mm32sdk
2021-09-29 14:58:47 +07:00
hathach
bbb68ffefb
remove official mm32sdk submodule
2021-09-29 14:55:20 +07:00
szymonh
db862ae725
Assure msc device block size is not zero
2021-09-27 21:11:44 +02:00
Ha Thach
32bdf3b79d
Merge pull request #1110 from hansfbaier/master
...
add support for the QMTech ATMSAME70N19A board
2021-09-27 12:41:07 +07:00
Hans Baier
196a0da813
add support for the QMTech ATMSAME70N19A board
2021-09-27 06:13:07 +07:00
Ha Thach
8f0cfc8d44
Merge pull request #1108 from hathach/minor-changes
...
make freertos header include in examples more explicit
2021-09-26 13:12:05 +07:00
hathach
fba5ec8134
make freertos header include in examples more explicit
2021-09-26 12:23:08 +07:00
Peter Lawrence
03d7988df3
add NCM driver in a compatible manner : hathach/tinyusb#550
2021-09-25 17:05:58 -05:00
Ha Thach
958cf2cfba
Merge pull request #1102 from kasjer/kasjer/usbd-small-ep0-enumeration-workaround
...
usbd: Workaround for non standard device descriptor request
2021-09-25 18:37:24 +07:00
Ha Thach
45ae409e3f
Merge pull request #1104 from hathach/fix-esp32-ci
...
add CFG_TUSB_OS_INC_PATH for os include path
2021-09-25 16:44:22 +07:00
hathach
73872a5df0
add CFG_TUSB_OS_INC_PATH for os include path
...
useful for freertos/ prefix with esp IDF
2021-09-25 16:16:55 +07:00
Scott Shawcroft
0a6ca65e3f
MMU works
2021-09-24 16:14:01 -07:00
Ha Thach
1c17cb1c45
Merge pull request #1103 from kasjer/kasjer/da146xx-close-cleanup
...
dcd_da146xx: Remove registers pointer from xfer_ctl_t
2021-09-24 20:55:16 +07:00
Ha Thach
cd865f896b
Merge pull request #1096 from kasjer/kasjer/da146xx-close-all
...
dcd_da146xx: Implement dcd_edpt_close_all()
2021-09-24 20:53:06 +07:00
Jerzy Kasenberg
c62c1433e7
usbd: Workaround for non standard device descriptor request
...
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-24 14:19:04 +02:00
Jerzy Kasenberg
fbac58e3e4
dcd_da146xx: Implement dcd_edpt_close_all()
...
Unconditionally disables all endpoints except EP0.
2021-09-24 10:46:16 +02:00
Jerzy Kasenberg
1503955860
dcd_da146xx: Clear transfer data on dcd_edpt_close
...
Closing endpoint clears data in affected xfer_ctl_t
2021-09-24 09:28:51 +02:00
Jerzy Kasenberg
f172c5ee13
dcd_da146xx: Remove registers pointer from xfer_ctl_t
...
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-24 09:28:51 +02:00
Jerzy Kasenberg
428eedcd04
dcd_da146xx: Update bus handling
...
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-23 14:12:50 +02:00
Jerzy Kasenberg
c427712449
dcd_da146xx: Handle only enabled interrupts
...
Not much of an improvement but handle only interrupts
that were enabled and are expected.
2021-09-23 14:12:50 +02:00
Ha Thach
2eaf99e0aa
Merge pull request #1100 from kasjer/kasjer/da1469b_dk_usb-fix-button-config
...
da14695_dk_usb: Fix button configuration
2021-09-23 18:45:02 +07:00
Jerzy Kasenberg
417677aae4
da14695_dk_usb: Fix button configuration
...
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-23 12:52:32 +02:00
Ha Thach
040300540c
Merge pull request #1099 from kasjer/kasjer/da1469x_dk_pro-fix-pin-pullup
...
da1469x_dk_pro: Fix button setup
2021-09-23 17:10:57 +07:00
Jerzy Kasenberg
dd2a518881
da1469x_dk_pro: Fix button setup
...
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-23 12:00:28 +02:00
Ha Thach
4766e7f348
Merge pull request #1093 from szymonh/master
...
Enforced buffer boundaries for hid devices
2021-09-23 13:31:46 +07:00
Scott Shawcroft
829f92d00f
Trying to setup the mmu
2021-09-22 15:19:02 -07:00
Ha Thach
3e569f8e79
Merge pull request #1094 from kasjer/kasjer/da146xx-vbus-handling
...
dcd_da146xx: Add VBUS handling
2021-09-18 23:12:40 +07:00
hathach
ea595d3161
update dcd attr for mm32
2021-09-18 16:53:16 +07:00
hathach
3333703d25
Merge branch 'master' into zhangslice-master
2021-09-18 13:35:26 +07:00
Scott Shawcroft
2499c9382d
rpi start. doesn't work
2021-09-17 16:51:34 -07:00
Ha Thach
90465299b4
Merge pull request #1086 from kkitayam/impl_close_all_for_khci
...
Implement dcd_edpt_close_all() and fix dcd_edpt_clear_stall() for frdm_kl25z
2021-09-17 21:40:40 +07:00
Jerzy Kasenberg
a71ac71d7f
da1469x_dk_xxx: Add VBUS handling
...
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-17 12:20:57 +02:00
Jerzy Kasenberg
6d8677a78a
dcd_da146xx: Add VBUS handling
...
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-17 12:10:17 +02:00
hathach
b363afc091
minor clean up
2021-09-17 00:46:29 +07:00
hathach
c65cc75c6b
use correct resume detection for kl25z
2021-09-17 00:44:39 +07:00
hathach
8dfe0898e7
minor update to dcd khci
2021-09-17 00:43:10 +07:00
kkitayam
fbe1bf375c
Fix stall interrupt handling
2021-09-15 21:39:02 +09:00
kkitayam
46bb821753
Add J1-19 pin setting as a button
2021-09-15 21:32:53 +09:00
kkitayam
ecbe8c3376
Change default LED state to off
2021-09-15 21:32:53 +09:00
hathach
93ed3034c0
merge master and minor clean up
2021-09-15 18:35:52 +07:00
hathach
f39656b6d7
Merge branch 'master' of github.com:hathach/tinyusb into kkitayam-impl_close_all_for_khci
2021-09-15 18:29:28 +07:00
Ha Thach
03866ddf9b
Merge pull request #1062 from HiFiPhile/fifo_dcd_transdimension
...
Improvements for dcd_transdimension
2021-09-15 16:07:06 +07:00
MasterPhi
0ded1c5bac
Reset EP flags on close.
2021-09-14 21:08:12 +02:00
hathach
a23944035d
correct assoc_itf_count for bth driver
2021-09-15 00:51:01 +07:00
hathach
b474522245
make vendor driver more flexible
...
- skip additional custom descriptor between interface and endpoints
- can have up to 2 bulk endpoint ( 1 in & 1 out)
2021-09-14 21:30:38 +07:00
hathach
25ea8f9c9e
update configuration parser
2021-09-14 21:02:38 +07:00
MasterPhi
3639168066
Fix warning.
2021-09-14 11:58:22 +02:00
hathach
5404d6d8ae
usbd pre-compute total interface length without replying on driver open
2021-09-14 12:47:20 +07:00
hathach
103a11d449
add host hid_controller to cmake all list
...
fix 1067
2021-09-14 12:25:08 +07:00
Ha Thach
6d3fb7eb98
Merge pull request #1087 from HiFiPhile/nuc_wkp
...
NUC126: fix remote_wakeup
2021-09-14 11:40:55 +07:00
szymonh
2d6407e7a5
Enforced buffer boundaries for hid devices
2021-09-13 22:56:25 +02:00
Ha Thach
43aac7074b
Update supported.rst
2021-09-13 22:16:34 +07:00
Ha Thach
d640d59f99
Merge pull request #1092 from szymonh/master
...
Add support for Nucleo F412ZG
2021-09-13 22:14:23 +07:00
Ha Thach
1c3215257e
Merge pull request #1091 from hathach/esp32sx-compliance
...
Esp32sx compliance
2021-09-13 21:26:29 +07:00
szymonh
1a87b605bd
Add support for Nucleo F412ZG
2021-09-13 13:21:25 +02:00
hathach
cdc63459eb
esp32sx implement dcd_remote_wakeup(), fully compliance to chapter9 test suite
2021-09-13 16:49:38 +07:00
hathach
e64bfb9ff5
implement dcd_edpt_close_all(), pass chapter9 test suite (without remote wakeup)
2021-09-13 16:16:37 +07:00
Ha Thach
7e6f954ffe
Merge pull request #1090 from szymonh/master
...
Prevent buffer overflow in bth_device.c
2021-09-13 16:01:56 +07:00
szymonh
50e3c0054f
Add size check to tud_bt_hci_cmd_cb call in bth_device.c
2021-09-13 10:23:03 +02:00
hathach
43e6555fd0
clean up
2021-09-13 13:09:38 +07:00
hathach
ce5db06ba0
clear PID along with clear stall
2021-09-13 12:05:49 +07:00
hathach
6feda5ae8f
Merge branch 'nuc_wkp' of https://github.com/HiFiPhile/tinyusb into HiFiPhile-nuc_wkp
2021-09-13 11:52:16 +07:00
szymonh
d5f2c34eaa
Prevent buffer overflow in bth_device.c
2021-09-12 20:24:54 +02:00
hathach
9bed4e2e21
refactor nxp TDI dcd_edpt_xfer_fifo
2021-09-13 00:45:15 +07:00
hathach
038ec341f8
Merge branch 'fifo_dcd_transdimension' of https://github.com/HiFiPhile/tinyusb
2021-09-12 17:39:32 +07:00
Ha Thach
5013788989
Merge pull request #1089 from hathach/imxrt-compliance
...
Imxrt compliance
2021-09-12 13:37:49 +07:00
hathach
dd60ce784c
nxp tdi: implement dcd edpt close all
2021-09-11 21:29:04 +07:00
hathach
1f7ade2b75
nxp tdi: fix error td prevent further transfer
2021-09-11 19:27:37 +07:00
MasterPhi
22571ec98e
reset PID to DATA0 on clear_stall.
2021-09-10 16:04:47 +02:00
MasterPhi
8886de0d8a
Fix remote_wakeup
2021-09-10 13:05:15 +02:00
MasterPhi
580893b3fe
Shorter expr.
2021-09-10 11:17:33 +02:00
kkitayam
2998f67eac
Fix dcd_edpt_clear_stall to reset data toggle
2021-09-10 00:18:43 +09:00
kkitayam
d7238d9a86
Remove heap memory area
2021-09-10 00:13:29 +09:00
Mengsk
283783c082
dcd_edpt_xfer_fifo: use qtd_init if restriction not met.
2021-09-09 16:45:18 +02:00
hathach
ad8c0ee818
nxp tdi: enhance qhd using DCD_ATTR_ENDPOINT_MAX
2021-09-09 20:26:03 +07:00
hathach
f948cbe471
nxp tdi implement remote wakeup
...
enhance bus reset, unplugged, suspend, resume detection
2021-09-09 17:04:04 +07:00
hathach
27800f7e4f
remove connected check for DCD_EVENT_UNPLUGGED since previous bus reset can clear this
...
implement unplugged detection for trans dimension dcd
2021-09-09 16:01:05 +07:00
hathach
f81368174b
add other speed descriptor callback tud_descriptor_other_speed_configuration_cb()
...
example implement tud_descriptor_device_qualifier_cb() and
tud_descriptor_other_speed_configuration_cb() on high speed device to
fully compliant to usbcv
2021-09-09 15:17:19 +07:00
kkitayam
780852efb3
Fix stall handling
2021-09-09 00:55:02 +09:00
kkitayam
22b5b47045
Implement dcd_edpt_close_all for NXP khci
2021-09-08 21:52:27 +09:00
Ha Thach
d66d817c38
Merge pull request #1080 from hathach/rx-msc-compliance
...
Renesas RX reset PID to DATA0 when open endpoint
2021-09-08 18:31:42 +07:00
Ha Thach
5f141a4c13
Merge pull request #1077 from hathach/st-synopsy-compliance
...
St synopsy compliance
2021-09-08 18:00:44 +07:00
hathach
d077574097
reset PID to DATA0 when open endpoint
2021-09-08 17:56:22 +07:00
Ha Thach
c5e6e87d13
Merge pull request #1076 from kkitayam/impl_close_all_for_rx
...
Implement dcd_edpt_close_all() for Renesas RX family
2021-09-08 17:53:42 +07:00
hathach
67e80f60e3
fix build with gd32vf103
2021-09-08 13:35:11 +07:00
Ha Thach
f878f892ad
Merge pull request #1071 from HiFiPhile/iar
...
More IAR support
2021-09-08 13:15:00 +07:00
Ha Thach
4a63326ed9
Merge pull request #1078 from dshadoff/more_ps4_controllers
...
Add PS4-compatible controllers
2021-09-08 12:25:36 +07:00
David Shadoff
185bb21bdd
Add PS4-compatible controllers
2021-09-07 21:13:34 -04:00
hathach
4ac136d81d
implement remote wakeup for stm synopsys
2021-09-08 00:57:07 +07:00
hathach
a54a974fa5
make synopsys usbcv compliance
...
- implement dcd_edpt_close_all()
- reset dtoggle when open endpoint
- correct dev interrupt mask on bus reset
2021-09-07 23:02:57 +07:00
kkitayam
f3da48d46a
Implement dcd_edpt_close_all() for Renesas RX family
2021-09-07 23:28:54 +09:00
kkitayam
e06a632b72
Update Renesas RX
2021-09-07 23:28:54 +09:00
Ha Thach
582e5dbac5
Merge pull request #1075 from hathach/fix-cxd56-msc
...
Fix cxd56 msc
2021-09-07 18:06:40 +07:00
hathach
785cdf67f0
default PYTHON to python3 on linux, and python on windows
2021-09-07 17:43:45 +07:00
MasterPhi
b6cda41daf
Add doc for IAR.
2021-09-07 12:32:27 +02:00
MasterPhi
a754205acb
Rename iar.ipcf to iar_template.ipcf
2021-09-07 12:32:17 +02:00
MasterPhi
f735ee4f36
Remove ipcf of examples.
2021-09-07 11:25:35 +02:00
hathach
f47e5402fa
add msc workaround for cxd56
2021-09-07 13:30:51 +07:00
Ha Thach
78f88cf5c4
Merge pull request #1074 from unlimitedcodeworks/tusb_host_gamepad_add_additional_ps4_compatible_vid_pid_combos
...
Tusb host gamepad add additional ps4 compatible vid pid combos
2021-09-07 11:39:47 +07:00
Christian Arlt
cc08bb6f99
Added Arc System Works GG Xrd Limited Edition controller VID PID
2021-09-06 19:41:09 +02:00
Christian Arlt
a0646f20ba
Added Hori Fighting Commander 4 VID PID
2021-09-06 19:40:14 +02:00
Christian Arlt
c53ce53058
Added Sony DualShock4 CUH-ZCT1E pid
2021-09-06 19:38:31 +02:00
hathach
fa030075c2
Revert "Fix for MSC during stage STATUS"
...
This reverts commit 2e23f3dd72
.
2021-09-06 19:26:28 +07:00
Ha Thach
cbb6dfd6a5
Merge pull request #1070 from kamtom480/msc_stage_status_fix
...
Fix for MSC during stage STATUS
2021-09-06 13:08:29 +07:00
MasterPhi
51dddf63fa
Add IAR project connections.
2021-09-03 18:26:39 +02:00
Kamil Tomaszewski
2e23f3dd72
Fix for MSC during stage STATUS
2021-09-03 18:13:45 +02:00
Ha Thach
831a45f14b
Merge pull request #1065 from hathach/rp2040-compliance
...
Rp2040 compliance test
2021-09-01 20:18:01 +07:00
hathach
d4c56c70a8
minor clean up
2021-09-01 20:01:40 +07:00
hathach
d6e9fe38be
rp2040 implement dcd_edpt_close_all()
...
aslo rename reset_ep0_pid() and clean up. We only need to reset pid when
setup packet received
2021-09-01 19:44:12 +07:00
hathach
1398226bb5
only attempt to clear if stalled, and stall if cleared
2021-09-01 16:54:03 +07:00
hathach
15fa2f447b
add back edpt check before cbw, since bot reset can occurred any time
2021-09-01 16:53:12 +07:00
hathach
fc889ece74
rp2040 correct ep set/clear stall
...
- stall will remove pending (not complete) transfer. Correct reset data
toggle when clear stall.
- remove buf ctrl debug code
2021-09-01 16:52:27 +07:00
hathach
90dc9bc289
revert previous changes, edpt stall also clear any pending (not complete) transfer
2021-09-01 12:42:45 +07:00
hathach
ab0c3e8dd0
fix rp2040 chapter 9 TD 9.6 test
2021-08-31 17:41:08 +07:00
hathach
d047b28aa2
remove set/clear busy flag in set/clear stall since they are different status
...
note: dcd should resume to prio-stalled queued transfer when unstall
2021-08-31 17:39:54 +07:00
MasterPhi
e3bf4c069b
UAC2: Add ring buffer support for dcd_transdimension.
...
Add ring buffer ON/OFF switch.
2021-08-31 12:29:22 +02:00
MasterPhi
16b802d50c
add dcd_edpt_close and iso xfer.
2021-08-31 12:02:19 +02:00
Ha Thach
e2175f6ed1
Merge pull request #1061 from hathach/samd-compliance
...
Update SAMD to pass USBCV
2021-08-31 17:00:42 +07:00
MasterPhi
864d8381a7
dcd_transmission xfer_fifo support.
2021-08-31 11:59:51 +02:00
hathach
76345ea3a1
clear stall and reset data toggle when open edpt
...
required to pass one of msc test.
2021-08-31 16:41:45 +07:00
Ha Thach
1a1bcd816c
Merge pull request #1060 from HiFiPhile/cv_hid
...
USBCV: fix HID_LOGICAL_MAX overflow.
2021-08-31 16:41:30 +07:00
MasterPhi
8305766afe
fix HID_LOGICAL_MAX overflow.
2021-08-31 11:27:43 +02:00
Ha Thach
38f5aee9c3
Merge pull request #1058 from hathach/usbcv-compliant-test
...
nrf5x USB Compliance Verification Test suite
2021-08-30 17:31:50 +07:00
hathach
fdf1ff545f
responding with status per-spec in test case 4
2021-08-29 15:44:27 +07:00
hathach
4e3ed8159e
passed all USBCV bot complaince test
2021-08-29 13:34:47 +07:00
hathach
ee18cc42f2
msc handle more test, passed Command Self Test compliant
2021-08-29 12:06:10 +07:00
hathach
ad21b69277
fix nrf clear data toggle sequence when clearing stall
2021-08-29 12:05:34 +07:00
hathach
66c292e2ec
fix a couple of nrf dcd issue
...
- limit out xact dma to prevent usbd overflow in certain situation after
stalled
- drained already acked data when stalling an OUT endpoint
2021-08-29 00:34:21 +07:00
hathach
be98cd56c7
update msc to be more robuse
...
add more log, pass more complaint test
2021-08-29 00:29:29 +07:00
hathach
54013737d5
fix msc example with out of bound lba (due to compliant test)
2021-08-28 20:26:56 +07:00
hathach
a53839ef44
correct msc example return type of tud_msc_scsi_cb()
2021-08-28 01:23:20 +07:00
hathach
53ea1e1324
fix msc test case 8 and 10
2021-08-27 23:52:59 +07:00
hathach
c6b9f8a530
fix msc case 3 complaint test
2021-08-27 23:33:11 +07:00
hathach
8bad0af849
explicitly clear stall and data toggle for edpoint upon open()
2021-08-27 22:31:08 +07:00
hathach
81c73c235f
implement dcd_edpt_close_all() for nrf52840
2021-08-27 22:30:30 +07:00
hathach
e01239ccc9
more msc refactoring
2021-08-27 20:05:56 +07:00
hathach
2667ce6981
fix BOT case 2 test compliant
2021-08-27 17:50:02 +07:00
hathach
893dceb198
refactor msc device
2021-08-27 17:30:02 +07:00
hathach
032770682e
minor clean up
2021-08-27 13:18:51 +07:00
hathach
9394de6ae7
update msc driver to pass MSC BOT error recovery compliant test
2021-08-27 12:38:41 +07:00
hathach
629da937f8
slightly change the keyboard descriptor template to pass usb compliant test
2021-08-26 17:55:31 +07:00
hathach
ed4602158b
TD 9.12 remote wakeup test
...
remove TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP attribute from non-hid
examples
2021-08-26 17:08:22 +07:00
hathach
71e77e47fa
add dcd_edpt_close_all() for clear existing configured state
...
correctly responded to TD 9.13 Set Configuration Test
2021-08-26 17:07:03 +07:00
hathach
07adc26ce3
fix usbcv TD 9.4 Interface Descriptor test
2021-08-26 13:07:10 +07:00
hathach
82618d2d5f
fix build with mm32 board
2021-06-18 17:18:11 +07:00
hathach
5006b1065a
remove duplicate mm32 dcd
2021-06-18 12:49:41 +07:00
zhangslice
0ae83458d5
dsp updata
...
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
hathach
85f8047ac4
remove the keil zip
2021-06-18 12:46:27 +07:00
zhangslice
7b27607f1a
mit license
...
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
hathach
b8ac5f1287
add mindmotion mm32sdk as submodule
...
remove the local copy of mm32
2021-06-18 12:46:27 +07:00
zhangslice
373b977cc3
add keil projrct
...
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
zhangslice
3ba72b53d8
Add MM32 SDK and USB driver
...
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
Jacob Potter
3158b323d8
Adapt to new control xfer callback
2021-01-03 15:16:54 -07:00
Jacob Potter
57058e33fc
Merge branch 'master' into ncm
2021-01-03 15:12:02 -07:00
Jacob Potter
226efdcec0
Reduce excessive poll rate on interrupt endpoint
2020-11-05 18:14:56 -07:00
Jacob Potter
377f8ce76f
Log on full NTBs
2020-11-05 10:18:29 -07:00
Jacob Potter
a3fdcbdf16
Just leave the endpoints open, instead of closing/reopening
2020-11-04 23:53:03 -07:00
Jacob Potter
a3d6e8fc52
Add default for CFG_TUD_NCM
2020-11-04 21:18:44 -07:00
Jacob Potter
bb0df2740e
Add CDC NCM driver
2020-11-04 20:51:57 -07:00