summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngHK <[email protected]>2024-02-24 13:00:46 +0100
committerIngHK <[email protected]>2024-02-24 13:00:46 +0100
commitea175a78aad5bd258954aa61550aae0162bc884b (patch)
treec7558ee5ba1e479f0644daaad33d6548d6d95c86
parentaabee25e189d2a05cb52e5c54329ab1ec875f084 (diff)
updated contribution, readme and some comments
-rw-r--r--CONTRIBUTORS.rst7
-rw-r--r--README.rst2
-rw-r--r--src/class/cdc/cdc_host.c6
3 files changed, 11 insertions, 4 deletions
diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst
index 085f8082a..451ac0783 100644
--- a/CONTRIBUTORS.rst
+++ b/CONTRIBUTORS.rst
@@ -31,6 +31,13 @@ Notable contributors
- Most features development
+`Heiko Kuester <https://github.com/IngHK>`__
+--------------------------------------------
+
+- Add CH34x and PL2303 support (CDC host)
+- Improve FTDI and CP210x support (CDC host)
+
+
`Hristo Gochkov <https://github.com/me-no-dev>`__
-------------------------------------------------
diff --git a/README.rst b/README.rst
index fe2417451..6922c231e 100644
--- a/README.rst
+++ b/README.rst
@@ -77,7 +77,7 @@ Host Stack
- Human Interface Device (HID): Keyboard, Mouse, Generic
- Mass Storage Class (MSC)
- Communication Device Class: CDC-ACM
-- Vendor serial over USB: FTDI, CP210x
+- Vendor serial over USB: FTDI, CP210x, CH34x, PL2303
- Hub with multiple-level support
Similar to the Device Stack, if you have a special requirement, `usbh_app_driver_get_cb()` can be used to write your own class driver without modifying the stack.
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index 429d0a113..b35a8fd93 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -24,7 +24,7 @@
* This file is part of the TinyUSB stack.
*
* Contribution
- * - Heiko Kuester: CH34x support
+ * - Heiko Kuester: add support of CH34x & PL2303, improve support of FTDI & CP210x
*/
#include "tusb_option.h"
@@ -818,12 +818,12 @@ bool cdch_set_config(uint8_t daddr, uint8_t itf_num) {
TU_ASSERT(p_cdc && p_cdc->serial_drid < SERIAL_DRIVER_COUNT);
TU_LOG_P_CDC("set config");
- // fake transfer to kick-off process
+ // fake transfer to kick-off process_set_config()
tuh_xfer_t xfer;
xfer.daddr = daddr;
xfer.result = XFER_RESULT_SUCCESS;
xfer.setup = &request;
- xfer.user_data = 0; // initial state
+ xfer.user_data = 0; // initial state 0
serial_drivers[p_cdc->serial_drid].process_set_config(&xfer);
return true;