diff options
| author | hathach <[email protected]> | 2019-05-15 22:51:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-15 22:51:49 +0700 |
| commit | bcf9718f9a0278fd4c5e6332183ed995e7a527bf (patch) | |
| tree | a0b3d2ef5937bdb30f66bd5ab09e8d1438f0b540 /src | |
| parent | 6e9324e29c3c2cc7ae36c0d7cbdb037e92ec9614 (diff) | |
clean up
Diffstat (limited to 'src')
| -rw-r--r-- | src/tusb_option.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 0f87ce663..694191406 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -131,33 +131,32 @@ #endif
#ifndef CFG_TUSB_MEM_ALIGN
-#define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4)
+#define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4)
#endif
#ifndef CFG_TUSB_OS
-#define CFG_TUSB_OS OPT_OS_NONE
+#define CFG_TUSB_OS OPT_OS_NONE
#endif
//--------------------------------------------------------------------
// DEVICE OPTIONS
//--------------------------------------------------------------------
-#if TUSB_OPT_DEVICE_ENABLED
- #ifndef CFG_TUD_ENDOINT0_SIZE
- #define CFG_TUD_ENDOINT0_SIZE 64
- #endif
+#ifndef CFG_TUD_ENDOINT0_SIZE
+ #define CFG_TUD_ENDOINT0_SIZE 64
+#endif
- #ifndef CFG_TUD_CTRL_BUFSIZE
- #define CFG_TUD_CTRL_BUFSIZE 256
- #endif
+#ifndef CFG_TUD_CDC
+ #define CFG_TUD_CDC 0
+#endif
- #ifndef CFG_TUD_CDC
- #define CFG_TUD_CDC 0
- #endif
+#ifndef CFG_TUD_MSC
+ #define CFG_TUD_MSC 0
+#endif
- #ifndef CFG_TUD_MSC
- #define CFG_TUD_MSC 0
- #endif
+#ifndef CFG_TUD_HID
+ #define CFG_TUD_HID 0
+#endif
#ifndef CFG_TUD_MIDI
#define CFG_TUD_MIDI 0
@@ -167,7 +166,6 @@ #define CFG_TUD_CUSTOM_CLASS 0
#endif
-#endif // TUSB_OPT_DEVICE_ENABLED
//--------------------------------------------------------------------
// HOST OPTIONS
|
