Explorar o código

tinyusb: fix typo naming of ACM

jiangguangming %!s(int64=3) %!d(string=hai) anos
pai
achega
e147629a02

+ 1 - 1
components/tinyusb/additions/include/tusb_cdc_acm.h

@@ -88,7 +88,7 @@ typedef void(*tusb_cdcacm_callback_t)(int itf, cdcacm_event_t *event);
 typedef struct {
     tinyusb_usbdev_t usb_dev; /*!< Usb device to set up */
     tinyusb_cdcacm_itf_t cdc_port;  /*!< CDC port */
-    size_t rx_unread_buf_sz; /*!< Amount of data that can be passed to the AMC at once */
+    size_t rx_unread_buf_sz; /*!< Amount of data that can be passed to the ACM at once */
     tusb_cdcacm_callback_t callback_rx;  /*!< Pointer to the function with the `tusb_cdcacm_callback_t` type that will be handled as a callback */
     tusb_cdcacm_callback_t callback_rx_wanted_char; /*!< Pointer to the function with the `tusb_cdcacm_callback_t` type that will be handled as a callback */
     tusb_cdcacm_callback_t callback_line_state_changed; /*!< Pointer to the function with the `tusb_cdcacm_callback_t` type that will be handled as a callback */

+ 2 - 2
components/tinyusb/additions/include_private/cdc.h

@@ -32,7 +32,7 @@ typedef struct {
     tinyusb_usbdev_t usb_dev;                           /*!< USB device to set up */
     tusb_class_code_t cdc_class;                 /*!< CDC device class : Communications or Data device */
     union {
-        cdc_comm_sublcass_type_t comm_subclass; /*!< Communications device subclasses: AMC, ECM, etc. */
+        cdc_comm_sublcass_type_t comm_subclass; /*!< Communications device subclasses: ACM, ECM, etc. */
         cdc_data_sublcass_type_t data_subclass; /*!< Data device has only one subclass.*/
     } cdc_subclass;                                     /*!< CDC device subclass according to Class Definitions for Communications Devices the CDC v.1.20 */
 } tinyusb_config_cdc_t;                                 /*!< Main configuration structure of a CDC device */
@@ -41,7 +41,7 @@ typedef struct {
     tinyusb_usbdev_t usb_dev;                           /*!< USB device used for the instance */
     tusb_class_code_t type;
     union {
-        cdc_comm_sublcass_type_t comm_subclass; /*!< Communications device subclasses: AMC, ECM, etc. */
+        cdc_comm_sublcass_type_t comm_subclass; /*!< Communications device subclasses: ACM, ECM, etc. */
         cdc_data_sublcass_type_t data_subclass; /*!< Data device has only one subclass.*/
     } cdc_subclass;                                     /*!< CDC device subclass according to Class Definitions for Communications Devices the CDC v.1.20 */
     void *subclass_obj;  /*!< Dynamically allocated subclass specific object */

+ 1 - 1
components/tinyusb/additions/src/tusb_cdc_acm.c

@@ -30,7 +30,7 @@ typedef struct {
     tusb_cdcacm_callback_t callback_rx_wanted_char;
     tusb_cdcacm_callback_t callback_line_state_changed;
     tusb_cdcacm_callback_t callback_line_coding_changed;
-} esp_tusb_cdcacm_t; /*!< CDC_AMC object */
+} esp_tusb_cdcacm_t; /*!< CDC_ACM object */
 
 static const char *TAG = "tusb_cdc_acm";