Commit Graph

3304 Commits

Author SHA1 Message Date
769a237b19 accumulated review changes 2024-01-20 20:34:50 +01:00
87d509d416 make CFG_TUH_CDC_LINE_CODING_ON_ENUM optional for ch34x 2024-01-20 01:42:31 +07:00
55cb713264 - add new API tuh_cdc_set_data_format()
- add typedef for cdc enum
2024-01-19 16:56:32 +07:00
c196a2ed9c move code around 2024-01-19 16:04:30 +07:00
98781bb903 - add ch34x_set_data_format()
- add ch34x_set_line_coding()
2024-01-19 15:58:05 +07:00
23c2d929a1 refactor process_internal_control_complete() 2024-01-19 12:40:37 +07:00
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
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
3968a0fff8 implemented ch34x_set_line_coding() and some code cleanup 2024-01-17 16:04:31 +01:00
f221c0fb66 more clean up 2024-01-17 14:45:09 +07:00
482a8068a5 change code style and code cleanup 2024-01-16 14:51:04 +01:00
46ac03ba85 change code style 2024-01-16 17:45:16 +07:00
55da1072b6 merge and cherry pick changes 2024-01-16 17:25:44 +07:00
07e3d5c691 fix number of endpoint for ch340x, also open notification even not used for now 2024-01-16 14:32:31 +07:00
f7ef3c1b1c Merge branch 'cdc_ch34x_support' of https://github.com/IngHK/tinyusb into cdc_ch34x_support 2024-01-16 08:20:23 +01:00
4e6408ea49 CDCh host: further work on CH340/CH341 support 2024-01-16 08:07:22 +01:00
43e655b896 Merge remote-tracking branch 'remotes/hathach/master' into cdc_ch34x_support 2024-01-16 07:57:06 +01:00
e2aa671346 move open() ad vid_pid_list into serial driver struct 2024-01-16 12:54:39 +07:00
57c6f8cfa2 Merge branch 'master' into cdc_ch34x_support
# Conflicts:
#	src/class/cdc/cdc_host.c
2024-01-16 12:00:28 +07:00
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
1f2901e8b1 fix conflict of BIT() macro 2024-01-15 19:02:02 +07:00
d192868d62 fix sign-conversion warning 2024-01-15 18:25:15 +07:00
d92eb38c21 change code style 2024-01-15 16:56:18 +07:00
a67ee4f01b Merge branch 'master' into cdc_ch34x_support 2024-01-15 16:17:42 +07:00
4b3b401ce3 Merge pull request #2401 from Ryzee119/ohci_more_dev
[OHCI] Allow more than 16 devices
2024-01-12 17:48:01 +07:00
8eca596fa6 style changes 2024-01-12 16:05:35 +07:00
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
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
71ce4b8be6 Merge pull request #2402 from Okarss/master
[STM32 FSDEV] Fix ISR race conditions
2024-01-12 10:26:52 +07:00
2d3d148912 [STM32 FSDEV] Align names for consistency 2024-01-11 21:02:14 +02:00
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
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
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
c619a86141 bInterfaceClass number replaced by define 2024-01-11 08:53:47 +01:00
f2f40c0965 Merge pull request #2400 from Ryzee119/hub_fix
[HUB] Fix double status xfer
2024-01-11 12:39:18 +07:00
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
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
545821399b [STM32 FSDEV] Introduce a typedef for bus access width 2024-01-11 00:59:39 +02:00
3bf6826451 Disable ULPI clock during sleep on stm32f7 when using internal phy 2024-01-10 10:27:21 +01:00
e7e19f5627 [OHCI] Allow more than 16 devices 2024-01-10 16:03:43 +10:30
0d4b24e56c [STM32 FSDEV] Fix ISR race conditions 2024-01-10 05:43:20 +02:00
91f65a36bf [CDC] host: moved acm_open to other acm prototypes 2024-01-09 09:53:54 +01:00
d39d06e6d9 [HUB] Prevent status request to invalid ep_num 2024-01-09 16:36:32 +10:30
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
9a1559a356 add __ARM_ARCH_8_1M_MAIN__ for M55 2023-12-28 00:28:24 +08:00
c2bbcc9f60 initial support of CH34x CDC device 2023-12-26 20:14:03 +01:00
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
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
17a0ce655b Merge branch 'master' into h5 2023-12-15 17:42:25 +07:00