diff options
| author | hathach <[email protected]> | 2013-06-29 21:00:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-29 21:00:33 +0700 |
| commit | a943cce99110eabeaea98a390a41842a15de715f (patch) | |
| tree | 8b6a99e5f33ba0593f342ffc8cd31ba4756bdde5 /tinyusb | |
| parent | 9e607f6deec487ae3da5f94547753070687ca2e7 (diff) | |
test refractor
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/class/cdc.h | 6 | ||||
| -rw-r--r-- | tinyusb/core/tusb_types.h | 23 | ||||
| -rw-r--r-- | tinyusb/osal/osal.h | 10 | ||||
| -rw-r--r-- | tinyusb/tusb_option.h | 7 |
4 files changed, 26 insertions, 20 deletions
diff --git a/tinyusb/class/cdc.h b/tinyusb/class/cdc.h index cd1341e25..0835dfbd9 100644 --- a/tinyusb/class/cdc.h +++ b/tinyusb/class/cdc.h @@ -77,7 +77,7 @@ enum { }; enum { - CDC_COMM_PROTOCOL_ATCOMMAND_ITU_V250 = 0x01 , // ITU-T V2.50 + CDC_COMM_PROTOCOL_ATCOMMAND = 0x01 , // ITU-T V2.50 CDC_COMM_PROTOCOL_ATCOMMAND_PCCA_101 , CDC_COMM_PROTOCOL_ATCOMMAND_PCCA_101_AND_ANNEXO , CDC_COMM_PROTOCOL_ATCOMMAND_GSM_707 , @@ -217,8 +217,8 @@ typedef ATTR_PACKED_STRUCT(struct) { uint8_t bLength ; ///< Size of this descriptor in bytes. uint8_t bDescriptorType ; ///< Descriptor Type, must be Class-Specific uint8_t bDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_ - uint8_t bControlInterface ; ///< Interface number of Data Interface (zero-based) - uint8_t bSubordinateInterface[0] ; ///< Variable length array + uint8_t bControlInterface ; ///< Interface number of Communication Interface + uint8_t bSubordinateInterface[0] ; ///< Interface number of Data Interface }tusb_cdc_func_union_t; typedef ATTR_PACKED_STRUCT(struct) { diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index ceabb6484..1197edfec 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -79,17 +79,18 @@ typedef enum { /// USB Descriptor Types (section 9.4 table 9-5) typedef enum { - TUSB_DESC_TYPE_DEVICE =1 , ///< 1 - TUSB_DESC_TYPE_CONFIGURATION , ///< 2 - TUSB_DESC_TYPE_STRING , ///< 3 - TUSB_DESC_TYPE_INTERFACE , ///< 4 - TUSB_DESC_TYPE_ENDPOINT , ///< 5 - TUSB_DESC_TYPE_DEVICE_QUALIFIER , ///< 6 - TUSB_DESC_TYPE_OTHER_SPEED_CONFIGURATION , ///< 7 - TUSB_DESC_TYPE_INTERFACE_POWER , ///< 8 - TUSB_DESC_TYPE_OTG , ///< 9 - TUSB_DESC_TYPE_DEBUG , ///< 10 - TUSB_DESC_TYPE_INTERFACE_ASSOCIATION ///< 11 + TUSB_DESC_TYPE_DEVICE = 0x01 , + TUSB_DESC_TYPE_CONFIGURATION = 0x02 , + TUSB_DESC_TYPE_STRING = 0x03 , + TUSB_DESC_TYPE_INTERFACE = 0x04 , + TUSB_DESC_TYPE_ENDPOINT = 0x05 , + TUSB_DESC_TYPE_DEVICE_QUALIFIER = 0x06 , + TUSB_DESC_TYPE_OTHER_SPEED_CONFIGURATION = 0x07 , + TUSB_DESC_TYPE_INTERFACE_POWER = 0x08 , + TUSB_DESC_TYPE_OTG = 0x09 , + TUSB_DESC_TYPE_DEBUG = 0x0A , + TUSB_DESC_TYPE_INTERFACE_ASSOCIATION = 0x0B , + TUSB_DESC_TYPE_INTERFACE_CLASS_SPECIFIC = 0x24 }tusb_std_descriptor_type_t; typedef enum { diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 01609cae2..7f61731bb 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -160,11 +160,11 @@ void osal_mutex_reset(osal_mutex_handle_t mutex_hdl); // QUEUE API //--------------------------------------------------------------------+ typedef struct{ - uint32_t * const buffer ; ///< buffer pointer - uint8_t const depth ; ///< buffer size - volatile uint8_t count ; ///< bytes in fifo - volatile uint8_t wr_idx ; ///< write pointer - volatile uint8_t rd_idx ; ///< read pointer + uint32_t * const buffer ; ///< buffer pointer + uint8_t const depth ; ///< buffer size + volatile uint8_t count ; ///< bytes in fifo + volatile uint8_t wr_idx ; ///< write pointer + volatile uint8_t rd_idx ; ///< read pointer } osal_queue_t; typedef osal_queue_t * osal_queue_handle_t; diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h index 025d3a0af..ba1ebf1e1 100644 --- a/tinyusb/tusb_option.h +++ b/tinyusb/tusb_option.h @@ -68,7 +68,12 @@ /// define this symbol will make tinyusb look for external configure file #include "mcu_capacity.h" -#include "tusb_config.h" + +#ifdef TUSB_CFG_CONFIG_FILE + #include TUSB_CFG_CONFIG_FILE +#else + #include "tusb_config.h" +#endif //--------------------------------------------------------------------+ // CONTROLLER |
