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
Oliver Larsson
c4e04d3db4
Add configuration option CFG_TUH_CDC_CP210X_PID_LIST to tusb_option.h
2023-11-25 08:34:52 +01: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
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
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
hathach
aedc92f2d3
fix typo in cdc line coding enum
2023-11-22 11:25:55 +07:00
Antonio Vázquez Blanco
8bac68db84
Add historical EP compatibility to bth class
2023-11-07 17:38:26 +01:00
Mengsk
d3fa3cdf48
Adjsut blackout time.
2023-10-18 17:05:35 +02: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
hathach
277852afc1
fix esp32 msc example
2023-09-28 10:56:38 +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
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
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
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
18646179d0
fix host msc get maxlun not using aligned section memory
2023-08-07 20:48:08 +07:00
Ha Thach
1b04db2a77
Merge branch 'master' into master
2023-08-04 11:48:04 +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
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
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
Lars Pötter
0693462eba
made line ends consistent.
2023-07-02 09:02:24 +02: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
50e61e0e16
Merge pull request #2101 from eustas/patch-1
...
Fix typos
2023-06-21 15:51:03 +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
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
Eugene Kliuchnikov
0833806980
Fix typos
2023-06-08 15:38:30 +02:00
gitlab
acfaa4494f
Fixes bug in tuh_msc_ready
2023-05-28 15:40:01 +01: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
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
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
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
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