summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-23 12:42:30 +0700
committerhathach <[email protected]>2018-03-23 12:42:30 +0700
commit3e5e1f70bfc320b1940a2ab0771b1dd23e6744f3 (patch)
tree52c0db749eec3a85542ddcd4513b98cec352d533 /tinyusb
parent5f26c57b286ecdc555856c1e3e486923a43f4d04 (diff)
more shorten name
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/class/cdc/cdc.h2
-rw-r--r--tinyusb/class/cdc/cdc_device.c2
-rw-r--r--tinyusb/class/cdc/cdc_host.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/cdc/cdc.h b/tinyusb/class/cdc/cdc.h
index 6eb00e040..653704a78 100644
--- a/tinyusb/class/cdc/cdc.h
+++ b/tinyusb/class/cdc/cdc.h
@@ -310,7 +310,7 @@ typedef struct ATTR_PACKED
uint8_t bDescriptorType ; ///< Descriptor Type, must be Class-Specific
uint8_t bDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_
cdc_acm_capability_t bmCapabilities ;
-}cdc_desc_func_abstract_control_management_t;
+}cdc_desc_func_acm_t;
/// \brief Direct Line Management Functional Descriptor
/// \details This functional descriptor describes the commands supported by the Communications Class interface with SubClass code of \ref CDC_FUNC_DESC_DIRECT_LINE_MANAGEMENT
diff --git a/tinyusb/class/cdc/cdc_device.c b/tinyusb/class/cdc/cdc_device.c
index c1662eb4f..66e76ad77 100644
--- a/tinyusb/class/cdc/cdc_device.c
+++ b/tinyusb/class/cdc/cdc_device.c
@@ -150,7 +150,7 @@ tusb_error_t cdcd_open(uint8_t rhport, tusb_desc_interface_t const * p_interface
{ // Communication Functional Descriptors
if ( CDC_FUNC_DESC_ABSTRACT_CONTROL_MANAGEMENT == cdc_functional_desc_typeof(p_desc) )
{ // save ACM bmCapabilities
- p_cdc->acm_capability = ((cdc_desc_func_abstract_control_management_t const *) p_desc)->bmCapabilities;
+ p_cdc->acm_capability = ((cdc_desc_func_acm_t const *) p_desc)->bmCapabilities;
}
(*p_length) += p_desc[DESCRIPTOR_OFFSET_LENGTH];
diff --git a/tinyusb/class/cdc/cdc_host.c b/tinyusb/class/cdc/cdc_host.c
index 9188bb274..9b2c8816a 100644
--- a/tinyusb/class/cdc/cdc_host.c
+++ b/tinyusb/class/cdc/cdc_host.c
@@ -171,7 +171,7 @@ tusb_error_t cdch_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_
{ // Communication Functional Descriptors
if ( CDC_FUNC_DESC_ABSTRACT_CONTROL_MANAGEMENT == cdc_functional_desc_typeof(p_desc) )
{ // save ACM bmCapabilities
- p_cdc->acm_capability = ((cdc_desc_func_abstract_control_management_t const *) p_desc)->bmCapabilities;
+ p_cdc->acm_capability = ((cdc_desc_func_acm_t const *) p_desc)->bmCapabilities;
}
(*p_length) += p_desc[DESCRIPTOR_OFFSET_LENGTH];