summaryrefslogtreecommitdiff
path: root/tinyusb/tusb_option.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-17 16:46:11 +0700
committerhathach <[email protected]>2014-03-17 16:46:11 +0700
commiteaf2e888ab3025b01bf5b8e5b548337dd5bc63ff (patch)
tree67f83e9244d79d6084c059b7bd499e59210f34a4 /tinyusb/tusb_option.h
parentd1d4ddd85626567ddd0369387276ccf9680673d6 (diff)
doxygening
Diffstat (limited to 'tinyusb/tusb_option.h')
-rw-r--r--tinyusb/tusb_option.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h
index 4bd720b2b..39ab00ded 100644
--- a/tinyusb/tusb_option.h
+++ b/tinyusb/tusb_option.h
@@ -48,7 +48,7 @@
#define TUSB_VERSION_NAME "alpha"
#define TUSB_VERSION XSTRING_(TUSB_VERSION_YEAR) "." XSTRING_(TUSB_VERSION_MONTH)
-/** \defgroup MCU_ MCU Selection
+/** \defgroup config_mcu_selection MCU Selection
* \brief TUSB_CFG_MCU must be defined to one of these
* @{ */
#define MCU_LPC13UXX 1 ///< NXP LPC13xx 12 bit ADC family with USB on-chip Rom Driver (not supported yet)
@@ -79,6 +79,14 @@
#define TUSB_MODE_NONE 0x00 ///< Disabled
/** @} */
+#ifndef TUSB_CFG_CONTROLLER_0_MODE
+ #define TUSB_CFG_CONTROLLER_0_MODE TUSB_MODE_NONE
+#endif
+
+#ifndef TUSB_CFG_CONTROLLER_1_MODE
+ #define TUSB_CFG_CONTROLLER_1_MODE TUSB_MODE_NONE
+#endif
+
#define CONTROLLER_HOST_NUMBER (\
((TUSB_CFG_CONTROLLER_0_MODE & TUSB_MODE_HOST) ? 1 : 0) + \
((TUSB_CFG_CONTROLLER_1_MODE & TUSB_MODE_HOST) ? 1 : 0))
@@ -123,9 +131,6 @@
#endif
#endif
-/**
- * Maximum number of supported USB's configuration (currently only support only 1)
- */
//#ifndef TUSB_CFG_CONFIGURATION_MAX
// #define TUSB_CFG_CONFIGURATION_MAX 1
// #warning TUSB_CFG_CONFIGURATION_MAX is not defined, default value is 1