diff options
| author | hathach <[email protected]> | 2018-04-19 16:26:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-04-19 16:26:18 +0700 |
| commit | 3742d6fabcf1a28d17179509cdeaa730705c512d (patch) | |
| tree | afbd6458deec1a6210f33aa30925b40786e02ef2 /tinyusb/tusb_option.h | |
| parent | c7e924b4be6554c92dc87774c813dcf9573c18ba (diff) | |
clean up msc device driver
Diffstat (limited to 'tinyusb/tusb_option.h')
| -rw-r--r-- | tinyusb/tusb_option.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h index 85f828843..755413c2e 100644 --- a/tinyusb/tusb_option.h +++ b/tinyusb/tusb_option.h @@ -134,14 +134,6 @@ #define CFG_TUSB_OS OPT_OS_NONE
#endif
-#if (CFG_TUSB_OS != OPT_OS_NONE) && !defined (CFG_TUD_TASK_PRIO)
- #error CFG_TUD_TASK_PRIO need to be defined (hint: use the highest if possible)
-#endif
-
-//#ifndef CFG_TUSB_CONFIGURATION_MAX
-// #define CFG_TUSB_CONFIGURATION_MAX 1
-// #warning CFG_TUSB_CONFIGURATION_MAX is not defined, default value is 1
-//#endif
#ifndef tu_malloc
#include <stdlib.h>
@@ -163,11 +155,6 @@ #define CFG_TUD_ENDOINT0_SIZE 64
#endif
-
- #if CFG_TUD_ENDOINT0_SIZE > 64
- #error Control Endpoint Max Package Size cannot larger than 64
- #endif
-
#ifndef CFG_TUD_ENUM_BUFFER_SIZE
#define CFG_TUD_ENUM_BUFFER_SIZE 256
#endif
@@ -201,6 +188,26 @@ //------------- CLASS -------------//
#endif // MODE_HOST_SUPPORTED
+
+/*------------------------------------------------------------------*/
+/* Config Verification
+ *------------------------------------------------------------------*/
+
+#if (CFG_TUSB_OS != OPT_OS_NONE) && !defined (CFG_TUD_TASK_PRIO)
+ #error CFG_TUD_TASK_PRIO need to be defined (hint: use the highest if possible)
+#endif
+
+#if CFG_TUD_ENDOINT0_SIZE > 64
+ #error Control Endpoint Max Package Size cannot larger than 64
+#endif
+
+#if CFG_TUD_MSC_MAXLUN == 0 || CFG_TUD_MSC_MAXLUN > 16
+ #error MSC Device: Incorrect setting of MAX LUN
+#endif
+
+//#if CFG_TUD_MSC_BUFSIZE
+
+
#endif /* _TUSB_OPTION_H_ */
/** @} */
|
