Commit Graph

397 Commits

Author SHA1 Message Date
hathach
41606a533d make notify API and memory configurable with CFG_TUD_CDC_NOTIFY
add tud_cdc_n_notify_conn_speed_change()
add tud_cdc_notify_complete_cb()
2025-07-03 13:42:05 +07:00
hathach
cf3966efd9 Merge branch 'master' into fork/HiFiPhile/dcd_notif 2025-07-02 18:18:52 +07:00
hathach
d86362414e clean up 2025-06-27 21:17:30 +07:00
hathach
0194b8434f use enum buf for process_set_config for ch34x and pl2303 2025-06-27 17:27:09 +07:00
hathach
f4d049e61b update acm and pl2303 to match the rest of drivers 2025-06-27 17:09:11 +07:00
hathach
8b5d703f74 major refactor to generalize cdch serial driver
- add common 2 stage set line coding for driver without direct set_line_coding support e.g ftdi, cp210x, ch34x
- add common cdch_process_line_state_on_enum() to handle cfg line state on enum e.g CFG_TUH_CDC_LINE_CONTROL/CODING_ON_ENUM
- refactor cdch_internal_control_complete and user_complete_cb to be managed by tuh_cdc_ API instead of serial driver
2025-06-27 15:57:18 +07:00
hathach
470e12febc refactor, add cdch_internal_control_complete() 2025-06-20 17:25:58 +07:00
hathach
900d0d974b refactor change signature of serial driver's process_set_config
adding serial driver's request_complete()
2025-06-20 17:04:40 +07:00
hathach
adf6cbfe03 cdch clean up and refactor, add explicit sync() API 2025-06-20 12:52:34 +07:00
hathach
221b5288e4 union ftdi/pl2303/acm data to save memory. 2025-06-19 18:14:24 +07:00
hathach
ce9140a150 rename tuh_cdc_get_local_line_coding to tuh_cdc_get_line_coding_local
add tuh_cdc_get_control_line_state_local()
implement tuh_cdc_get/set_dtr/rts() as inline
2025-06-19 17:57:21 +07:00
hathach
fa3ec44533 revert CFG_TUH_CDC_DTR/RTS_CONTROL_ON_ENUM 2025-06-19 17:22:26 +07:00
hathach
ec1a26251d clean up pl2303 type data 2025-06-19 17:05:21 +07:00
hathach
2adb305ea7 house keeping 2025-06-19 15:30:02 +07:00
hathach
9503883ba7 usbh: add new API tuh_descriptor_get_device_local()
cdc host: remove the local desc_dev and the get_device descriptor call for ftdi and pl2303
2025-06-18 23:44:03 +07:00
hathach
506edc6267 add get_itf_by_xfer() to better determine cdc interface from xfer complete callback 2025-06-18 18:55:31 +07:00
hathach
d4abf43f22 add common cdch_process_set_config() to safely complete set_config() when it failed.
driver_process_set_config() also pass drv index with user_data
2025-06-17 22:16:13 +07:00
hathach
4a44dd5c47 Merge branch 'master' into fork/IngHK/cdch_upgrade
# Conflicts:
#	README.rst
#	docs/reference/index.rst
#	src/class/cdc/cdc_device.c
#	src/class/cdc/cdc_host.c
2025-06-16 11:08:01 +07:00
hathach
baf67539fc fix warnings, minor clean up 2025-05-13 12:16:22 +07:00
hathach
db537861b2 device cdc: rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_t
add tx_overwritabe_if_not_connected for cdc driver configure
2025-03-24 22:58:21 +07:00
hathach
d132044b75 add tuh_midi_mount_cb_t struct for tuh_midi_mount_cb()
change tuh_midi_rx/tx_cb() to have xferred_bytes
rename tuh_midi_get_num_rx/tx_cables() to tuh_midi_get_rx/tx_cable_count()
use default empty callback instead of weak null to be compatible with keil compiler
2025-02-24 16:05:31 +07:00
hathach
bad6cbe489 update midi host to use endpoint stream API 2025-02-13 15:54:31 +07:00
HiFiPhile
f10467e711 Merge branch 'master' into dcd_notif
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-12-01 00:01:33 +01:00
hathach
9e4b855e53 minor clean up 2024-11-27 11:35:21 +07:00
hathach
67e92e6688 add TUH_EPBUF_DEF for cdc host 2024-11-26 22:07:28 +07:00
hathach
090964cd1b apply TUD_EPBUF_DEF for device: bth, dfu, hid, msc 2024-11-22 12:25:37 +07:00
hathach
fa523a5682 make sure usb buffer occupies whole cache line when DCACHE is enabled for msc,cdc,hid
HIL enable device DMA for p4
2024-11-21 10:22:09 +07:00
HiFiPhile
85ff529a31 Merge branch 'master' into dcd_notif
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-10-30 19:47:03 +01:00
Bollen Nico
5d74fb43b3 Extend callback information 2024-10-29 20:41:13 +01:00
hathach
cc816dc9c0 change edpt stream api to take hwid from API to reduce memory footprint 2024-09-10 17:41:20 +07:00
hathach
6fb6602a09 - add tud_cdc_n_ready() though not used
- usbd now change _usbd_dev.cfg_num before calling driver's open()
2024-07-19 18:08:04 +07:00
hathach
be18af8235 revert changes to usbds configuration_reset() (deal with it in separated PR) 2024-07-19 17:10:53 +07:00
HiFiPhile
60b3d14d19 Check tud ready check for OUT xfer. 2024-07-19 17:02:53 +07:00
hathach
0ecf15bc61 follow up to #2253
- rename tud_hid_report_fail_cb() to tud_hid_report_failed_cb() and change its signature
- use default implementation for hid callbacks to be compatible with keil compiler
- code format
2024-07-17 14:35:23 +07:00
hathach
1f590c3628 - add tud_cdc_configure_fifo() to replace CFG_TUD_CDC_PERSISTENT_TX_BUFF
- new line, and code format
2024-07-12 16:53:21 +07:00
Andrew Leech
d01b2cfc0e Add option to make CDC TX buffer persistent. 2024-05-08 19:41:02 +10:00
HiFiPhile
67f32da1b9 cdc: add uart status notification support. 2024-04-26 00:17:50 +02:00
HiFiPhile
8b4ca69e56 cdc_device : save rhport. 2024-04-26 00:17:50 +02:00
hathach
c097c85dcf fix print lu format warnings with clang 2024-04-22 16:17:22 +07:00
hathach
62331f0207 fix nrfx v3 spim freq when init
fix clang build with nrf
2024-04-22 15:55:50 +07:00
hathach
c3c0648456 add class driver deinit 2024-04-08 22:07:56 +07:00
IngHK
68602e4add small change process config complete 2024-04-04 14:16:02 +02:00
IngHK
e02a309f1d disable PL2303 flow control config 2024-04-04 14:14:41 +02:00
IngHK
a1b1c1f552 foxed FTDI flow control config 2024-04-04 14:13:24 +02:00
IngHK
e07ee4a7b1 CP210x removed baudrate check, fixed data bits check 2024-04-04 14:12:14 +02:00
IngHK
5e67b92b8c fixed compile warnings 2024-04-04 14:10:31 +02:00
IngHK
e2a5630811 Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade 2024-04-04 14:07:32 +02:00
hathach
e84c9f3e22 implement tuh_init()
change usbh driver init() return type from void to bool
2024-03-22 16:12:57 +07:00
hathach
74bd264758 adding deinit() stub for usbh/hcd class driver
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-03-22 11:42:33 +07:00
IngHK
cb69ed0d04 code style and clean up CDC serial header files 2024-03-21 08:29:28 +01:00