Commit Graph

3470 Commits

Author SHA1 Message Date
hathach 87d509d416
make CFG_TUH_CDC_LINE_CODING_ON_ENUM optional for ch34x 2024-01-20 01:42:31 +07:00
hathach 55cb713264
- add new API tuh_cdc_set_data_format()
- add typedef for cdc enum
2024-01-19 16:56:32 +07:00
hathach c196a2ed9c
move code around 2024-01-19 16:04:30 +07:00
hathach 98781bb903
- add ch34x_set_data_format()
- add ch34x_set_line_coding()
2024-01-19 15:58:05 +07:00
hathach 23c2d929a1
refactor process_internal_control_complete() 2024-01-19 12:40:37 +07:00
hathach c568a6793e
- add requested line coding to make update data format easier
- change ch34x_xfer_get_itf_num() to simply 0
2024-01-19 12:14:45 +07:00
hathach 30eb35f17f
- revert the use of serial init for set line coding
- update ch34x_get_lcr and ch34x_get_factor_divisor
2024-01-19 01:06:24 +07:00
IngHK 3968a0fff8 implemented ch34x_set_line_coding() and some code cleanup 2024-01-17 16:04:31 +01:00
hathach f221c0fb66
more clean up 2024-01-17 14:45:09 +07:00
IngHK 482a8068a5 change code style and code cleanup 2024-01-16 14:51:04 +01:00
hathach 46ac03ba85
change code style 2024-01-16 17:45:16 +07:00
hathach 55da1072b6
merge and cherry pick changes 2024-01-16 17:25:44 +07:00
hathach 07e3d5c691
fix number of endpoint for ch340x, also open notification even not used for now 2024-01-16 14:32:31 +07:00
IngHK f7ef3c1b1c Merge branch 'cdc_ch34x_support' of https://github.com/IngHK/tinyusb into cdc_ch34x_support 2024-01-16 08:20:23 +01:00
IngHK 4e6408ea49 CDCh host: further work on CH340/CH341 support 2024-01-16 08:07:22 +01:00
IngHK 43e655b896 Merge remote-tracking branch 'remotes/hathach/master' into cdc_ch34x_support 2024-01-16 07:57:06 +01:00
hathach e2aa671346
move open() ad vid_pid_list into serial driver struct 2024-01-16 12:54:39 +07:00
hathach 57c6f8cfa2
Merge branch 'master' into cdc_ch34x_support
# Conflicts:
#	src/class/cdc/cdc_host.c
2024-01-16 12:00:28 +07:00
hathach aa58cdcfa6
change CFG_TUH_CDC_FTDI/CP210X_PID_LIST to CFG_TUH_CDC_FTDI/CP210X_VID_PID_LIST which contains both vid and pid. 2024-01-16 01:28:29 +07:00
hathach 1f2901e8b1
fix conflict of BIT() macro 2024-01-15 19:02:02 +07:00
hathach d192868d62
fix sign-conversion warning 2024-01-15 18:25:15 +07:00
hathach d92eb38c21
change code style 2024-01-15 16:56:18 +07:00
hathach a67ee4f01b
Merge branch 'master' into cdc_ch34x_support 2024-01-15 16:17:42 +07:00
Ha Thach 4b3b401ce3
Merge pull request #2401 from Ryzee119/ohci_more_dev
[OHCI] Allow more than 16 devices
2024-01-12 17:48:01 +07:00
hathach 8eca596fa6
style changes 2024-01-12 16:05:35 +07:00
hathach 290f4bea91
- change tuh_event_hook_cb, tud_event_hook_cb to weak default implementation
- change code style
2024-01-12 15:47:08 +07:00
Ha Thach 858077483d
Merge pull request #2239 from XelaRellum/bugfix_stm32_fsdev_keil
Fixes #1018 the weak dcd_edpt0_status_complete for Keil Compiler
2024-01-12 15:26:02 +07:00
Ha Thach 71ce4b8be6
Merge pull request #2402 from Okarss/master
[STM32 FSDEV] Fix ISR race conditions
2024-01-12 10:26:52 +07:00
Okarss 2d3d148912 [STM32 FSDEV] Align names for consistency 2024-01-11 21:02:14 +02:00
Ha Thach 5002ce8798
Merge pull request #2382 from YixingShen/master
fixed device/video_capture/src/images.h,main.c CFG_EXAMPLE_VIDEO_DISA…
2024-01-12 00:58:32 +07:00
Ha Thach 7db9119ef3
Merge pull request #2411 from IngHK/cdch_vendor_class
[cdch] replaced vendor specific bInterfaceClass number by define
2024-01-11 22:53:21 +07:00
hathach e68c6658c9 move gtd extra out of control struct to save sram
also rename gtd_data to gtd_extra
2024-01-11 17:35:05 +07:00
IngHK c619a86141 bInterfaceClass number replaced by define 2024-01-11 08:53:47 +01:00
Ha Thach f2f40c0965
Merge pull request #2400 from Ryzee119/hub_fix
[HUB] Fix double status xfer
2024-01-11 12:39:18 +07:00
Ha Thach b7581f0995
Merge pull request #2404 from Ryzee119/patch-2
[HUB] Prevent status request to invalid ep_num
2024-01-11 12:34:54 +07:00
Ha Thach b5d5ae9b18
Merge pull request #2408 from leptun/fix_tickless_ulpi_gating
Disable ULPI clock during sleep on stm32f7 when using internal phy
2024-01-11 11:40:44 +07:00
Okarss 545821399b [STM32 FSDEV] Introduce a typedef for bus access width 2024-01-11 00:59:39 +02:00
Alex Voinea 3bf6826451
Disable ULPI clock during sleep on stm32f7 when using internal phy 2024-01-10 10:27:21 +01:00
Ryzee119 e7e19f5627 [OHCI] Allow more than 16 devices 2024-01-10 16:03:43 +10:30
Okarss 0d4b24e56c [STM32 FSDEV] Fix ISR race conditions 2024-01-10 05:43:20 +02:00
IngHK 91f65a36bf [CDC] host: moved acm_open to other acm prototypes 2024-01-09 09:53:54 +01:00
Ryzee119 d39d06e6d9 [HUB] Prevent status request to invalid ep_num 2024-01-09 16:36:32 +10:30
Ryzee119 a4aa454a7a [HUB] Fix double status xfer 2024-01-07 08:34:18 +10:30
沈玴興 149b50a2fa
Merge branch 'hathach:master' into master 2023-12-28 00:29:41 +08:00
YixingShen 9a1559a356 add __ARM_ARCH_8_1M_MAIN__ for M55 2023-12-28 00:28:24 +08:00
IngHK c2bbcc9f60 initial support of CH34x CDC device 2023-12-26 20:14:03 +01:00
hathach 551e47a464
allow rp2040 to use max3421e as host controller
- fix warnings build hcd max3421 with rp2040
- add tinyusb_host_max3421 target for rp2040 cmake, -DMAX3421_HOST=1
will enable this
- add max3421 driver implementation for rp2040 family
- update tusb_config for host to allow easy enable host selection for
rp2040 (default/pio-usb/max3421)
2023-12-26 22:50:01 +07:00
IngHK a39be99a58 improved hex debug print, improved USBH debug prints, added pid/vid debug print 2023-12-26 12:24:54 +01:00
Jerzy Kasenberg 7f84fe9bda dcd_nrf5x: Fix dcd_edpt_open for iso endpoint
When ISO endpoint handling was introduced two lines that
clear stall and data toggle bit were left unchanged and they
were effective for ISO enadpoint as well.
This is incorrect behavior since EPSTALL and DTOGGLE registers
have only 3 bits for address.
Leaving code that clears toggle bit results in endpoint 0 toggle bit
being reset when iso endpoint (8) is opened.

Now code that clears stall and toggle bit is applied to non-iso endpoint only
as it was done before iso handling was introduced.
2023-12-21 08:48:59 +01:00
hathach 17a0ce655b
Merge branch 'master' into h5 2023-12-15 17:42:25 +07:00
HiFiPhile f3d713ac73 Fix CI & typo. 2023-12-13 14:32:23 +01:00
hathach 19d7d62e80
try to add samd51 to hil pool using doublereset (rpi gpio) and bossac 2023-12-13 18:54:00 +07:00
henneboi 93c40b6966 Add Support stm32h5 for stm32h573i based on stm32_fsdev G0 implementation Tested on Windows with IAR and gcc toolchain ( via cubeide) Tested only with audio examples, but sould be ok for other examples Cmake pacthed : but not tested Linux build : not tested Added a temporary workaround in make file to support H5 HAL repo ( ARMCC_VERSION=0) 2023-12-12 16:04:21 +01:00
Ha Thach 59ecdb78fe
Merge pull request #2368 from LarssonOliver/master
Add configuration option CFG_TUH_CDC_FTDI_PID_LIST to tusb_option.h
2023-12-12 15:54:35 +07:00
Oliver Larsson 9a7e23379c Add configuration option CFG_TUH_CDC_FTDI_PID_LIST to tusb_option.h 2023-12-12 08:11:16 +01:00
Ha Thach 6bb92555f3
Merge pull request #2347 from IngHK/HostLogsFixes
fixed compile errors due to untreated CFG_TUH_LOG_LEVEL
2023-12-12 13:35:30 +07:00
Ha Thach 4c80f5a192
Merge pull request #2296 from LarssonOliver/master
Allow external definition of TU_CP210X_PID_LIST
2023-12-11 15:13:20 +07:00
Ángel Molina Núñez 506617d4b3
Add comment to explain why the condition changes 2023-12-10 17:04:46 +01:00
Angel Molina ac418f4d25 Fix strict-overflow warning when compiling with gcc >= 12 2023-12-09 23:13:53 +01:00
IngHK efde252ed0 improved CFG_TUSB_DEBUG handling due to compile errors 2023-12-08 16:59:52 +01:00
IngHK 4d88f146e3 Merge remote-tracking branch 'remotes/hathach/master' into HostLogsFixes 2023-12-08 16:44:58 +01:00
Ha Thach be4d65221b
Merge pull request #2346 from IngHK/LogLineEnds
made log line end consistent \r\n
2023-11-29 17:12:08 +07:00
Oliver Larsson c4e04d3db4 Add configuration option CFG_TUH_CDC_CP210X_PID_LIST to tusb_option.h 2023-11-25 08:34:52 +01:00
IngHK b8881a3a14 fixed compile errors due to untreated CFG_TUH_LOG_LEVEL 2023-11-24 22:34:28 +01:00
IngHK 7e1fe2ff83 made log line end consistent \r\n 2023-11-24 22:02:58 +01:00
hathach 031be18e26
update release version 2023-11-24 19:09:35 +07:00
hathach 426f791e7a
minor doc 2023-11-24 19:09:34 +07:00
Ha Thach 2fc9fbe27d
Merge pull request #2340 from hathach/hid-set-protocol-pr
Hid set protocol pr
2023-11-24 19:05:16 +07:00
Ha Thach 02017a81e9
Merge pull request #2303 from projectgus/feature/isr_event_hook
Add optional hooks for DCD and HCD events
2023-11-24 18:39:29 +07:00
hathach f469250fa3
minor update 2023-11-24 18:35:00 +07:00
Xudong Zheng 2fed722b00
add tuh_hid_set_default_protocol() to set default USB host HID protocol 2023-11-24 18:27:03 +07:00
hathach 188fbd8ed9
add optional event hook callback tud_event_hook_cb() and tuh_event_hook_cb() 2023-11-24 18:21:24 +07:00
hathach 111b21e767
Merge branch 'master' into feature/isr_event_hook 2023-11-24 17:49:43 +07:00
hathach 6e5c7f4390
rename to CFG_TUD_BTH_HISTORICAL_COMPATIBLE, move CFG_TUD_BTH_ISO_ALT_COUNT to tusb_option.h and mandatory for BTH driver 2023-11-24 16:08:48 +07:00
hathach 5e54bd37b6
Merge branch 'master' into bth 2023-11-24 15:57:06 +07:00
Ha Thach 0601d174b1
Merge branch 'master' into feature/ch32f20x 2023-11-24 11:33:34 +07:00
hathach 54356a719e
minor-update 2023-11-23 17:53:17 +07:00
Angus Gratton 68894398af Add optional hooks for DCD and HCD events
These are intended to allow bare metal platforms with one-shot scheduling
capabilities to schedule the TinyUSB task handlers whenever they know there is
work for them to do.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-11-23 14:42:51 +11:00
hathach 01f22a9e25
fix h7 running on fullspeed phy has issue with WFI if not disable ULPI clock 2023-11-22 22:50:10 +07:00
hathach 025ffa200c
add spec version to dwc2 info 2023-11-22 17:36:52 +07:00
hathach aedc92f2d3
fix typo in cdc line coding enum 2023-11-22 11:25:55 +07:00
hathach 1f71625a32
add tuh_max3421_reg_read(), tuh_max3421_reg_read() for application usage
added max3241 for feather m4 and tested
2023-11-20 21:31:06 +07:00
HiFiPhile 8af470e06d Fix CI 2023-11-19 16:19:11 +01:00
HiFiPhile b5b34e73d6 Add dwc2 info of F429. 2023-11-19 16:10:16 +01:00
Antonio Vázquez Blanco 8bac68db84 Add historical EP compatibility to bth class 2023-11-07 17:38:26 +01:00
hathach 9377fd6901
fix -Werror=null-dereference warning 2023-11-03 22:34:49 +07:00
hathach 4b9320e40e
fix race condition when dev0 is removed while enumerating 2023-11-03 22:22:13 +07:00
hathach 46106c6ef4
skip tuh_max3421_spi_cs_api() in hcd_init()
only call tuh_max3421_spi_cs_api() in SPI start/end transfer since
Arduino port use this to call begin/endTransaction()
2023-11-02 15:22:02 +07:00
hathach 06c9d9a79a
remove legacy driver st/synopsys 2023-11-01 16:36:28 +07:00
Ha Thach 4c01c5a714
Merge pull request #2300 from hathach/add-u5a5
Add support for stm32u5a5 (highspeed with built-in femtoPHY)
2023-10-31 13:27:54 +07:00
hathach 214a4afa6a
dwc2 flush tx,rx fifo in dcd_init() 2023-10-31 11:53:40 +07:00
hathach db3ff4b352
usb on u5a5 hs work well with correct VBVALEXTOEN/VBVALOVAL set 2023-10-31 11:26:31 +07:00
hathach 9f0223dccd
minor clean up 2023-10-31 10:58:15 +07:00
hathach 305ef5d48a
minor space format dwc2 driver 2023-10-30 22:22:27 +07:00
hathach a4c542a7b4
addd dwc2_info.py/md update stm32u5a5 board clock & power configure, able to get passed otg clock reset 2023-10-30 22:21:58 +07:00
Ha Thach a91b720c2e
Merge pull request #2291 from hathach/minor-update-max3421
minor update for max3421
2023-10-30 11:10:03 +07:00
hathach 9cba9a753b
update s3 devkitm with max3421 pin following metro s3, check max3421 version to make sure it is valid 2023-10-27 17:40:53 +07:00
HiFiPhile 2d802e03e9 Update audio_4_channel_mic example for HS device. 2023-10-24 22:14:24 +02:00
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
hathach 27a2c8cba4
adding nulceo stm32u5a5, fix clock configure issue
dwc2 core stuck at reset
2023-10-18 18:43:07 +07: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
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
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
denis.krasutski ce627f4318 feat(ch32f20x): add support of ch32f20x 2023-10-06 13:04:54 +03: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 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 277852afc1
fix esp32 msc example 2023-09-28 10:56:38 +07:00
hathach 76c43a5bdc
Merge branch 'master' into add-max3421-esp32 2023-09-27 17:52:18 +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 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
HiFiPhile 9d0251f7a6 Fix UAC interleaved copy. 2023-09-19 15:42:52 +02: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 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
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
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 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
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
Alexander Mueller 9665843635 Fix the weak dcd_edpt0_status_complete for Keil Compiler
The Keil compiler seems to have different semantics and the defined function was never called.

The same is probably true for the other weak functions. I can change those too.
2023-08-29 18:16:50 +02: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
Ha Thach 9063ede25f
Merge branch 'master' into nxp_k64 2023-08-28 17:46:05 +07:00
hathach 588b758717
rename OPT_MCU_KINETIS_K64 to OPT_MCU_KINETIS_K 2023-08-28 17:34:40 +07: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 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
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
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
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
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 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
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
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
Aladdin Bakosh 56e52037a8 clean(ra_hcd): fix typos in the hcd library 2023-08-04 12:00:25 +02:00
Ha Thach 1b04db2a77
Merge branch 'master' into master 2023-08-04 11:48:04 +07:00
hathach ef5bd9ee6c
Merge branch 'master' into enhance-bsp 2023-08-04 00:31:12 +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 a160da1f2b
add lpc43 family 2023-08-03 17:19:47 +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 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
Martino Facchin edee46e794 renesas: host: remove attach_attempt logic 2023-08-01 15:21:31 +02: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 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
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
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