summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-09-11 00:06:34 +0700
committerGitHub <[email protected]>2019-09-11 00:06:34 +0700
commitf5e58a09adef80a479f0aaa9a92459bfb4bbfd8d (patch)
treef78d47e7bbe7935d07601b3284d3b873ceab04d0 /src/tusb_option.h
parent4fe34c8f9b61ad85ce3bcd54466b03666c4578b8 (diff)
parent4f6bedeac9a683ffd11efded8650f1aa95dc2f5d (diff)
Merge pull request #123 from pigrew/stm32_fsdev
STM32 FS Device Driver
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index fbd48a8fa..dc76ce5f6 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -51,9 +51,13 @@
#define OPT_MCU_SAMD21 200 ///< MicroChip SAMD21
#define OPT_MCU_SAMD51 201 ///< MicroChip SAMD51
+// ST Synopsis OTG devices
#define OPT_MCU_STM32F4 300 ///< ST STM32F4
-#define OPT_MCU_STM32F3 301 ///< ST STM32F3
+#define OPT_MCU_STM32F3 301 ///< ST STM32F0x0
#define OPT_MCU_STM32H7 302 ///< ST STM32H7
+#define OPT_MCU_STM32F0 303 ///< ST STM32F0
+#define OPT_MCU_STM32F1 304 ///< ST STM32F1
+
/** @} */
@@ -145,8 +149,8 @@
// DEVICE OPTIONS
//--------------------------------------------------------------------
-#ifndef CFG_TUD_ENDOINT0_SIZE
- #define CFG_TUD_ENDOINT0_SIZE 64
+#ifndef CFG_TUD_ENDPOINT0_SIZE
+ #define CFG_TUD_ENDPOINT0_SIZE 64
#endif
#ifndef CFG_TUD_CDC
@@ -198,7 +202,7 @@
//------------------------------------------------------------------
// Configuration Validation
//------------------------------------------------------------------
-#if CFG_TUD_ENDOINT0_SIZE > 64
+#if CFG_TUD_ENDPOINT0_SIZE > 64
#error Control Endpoint Max Packet Size cannot be larger than 64
#endif