summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-18 16:23:23 +0700
committerhathach <[email protected]>2014-03-18 16:23:23 +0700
commite73667c07856de7c4636114e6782359d3634fa38 (patch)
treeafc1864603b9595e867917052cf47f860797d15b /tinyusb
parent2c4a2e5b9e36436280b30cc12529b4027b589fbd (diff)
clean up tusb_descriptors
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/device/usbd.c2
-rw-r--r--tinyusb/tusb_option.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c
index a42a4292f..3530b9967 100644
--- a/tinyusb/device/usbd.c
+++ b/tinyusb/device/usbd.c
@@ -350,7 +350,7 @@ static tusb_error_t get_descriptor(uint8_t coreid, tusb_control_request_t const
{
if ( ! (desc_index < TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNT) ) return TUSB_ERROR_DCD_CONTROL_REQUEST_NOT_SUPPORT;
- (*pp_buffer) = (uint8_t *) desc_str_table[desc_index];
+ (*pp_buffer) = (uint8_t *) tusbd_string_desc_table[desc_index];
(*p_length) = **pp_buffer;
}else
{
diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h
index a7c525105..780547a55 100644
--- a/tinyusb/tusb_option.h
+++ b/tinyusb/tusb_option.h
@@ -39,15 +39,15 @@
#ifndef _TUSB_TUSB_OPTION_H_
#define _TUSB_TUSB_OPTION_H_
-/** \defgroup group_configuration Configuration tusb_config.h
- * @{ */
-
#define TUSB_VERSION_YEAR 00
#define TUSB_VERSION_MONTH 00
#define TUSB_VERSION_WEEK 0
#define TUSB_VERSION_NAME "alpha"
#define TUSB_VERSION XSTRING_(TUSB_VERSION_YEAR) "." XSTRING_(TUSB_VERSION_MONTH)
+/** \defgroup group_configuration Configuration tusb_config.h
+ * @{ */
+
/** \defgroup config_mcu_selection MCU Selection
* \brief TUSB_CFG_MCU must be defined to one of these
* @{ */