summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 7e486bff0..393940282 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -110,11 +110,13 @@
// Allow to use command line to change the config name/location
-#ifndef CFG_TUSB_CONFIG_FILE
- #define CFG_TUSB_CONFIG_FILE "tusb_config.h"
+#ifdef CFG_TUSB_CONFIG_FILE
+ #include CFG_TUSB_CONFIG_FILE
+#else
+ #include "tusb_config.h"
#endif
-#include CFG_TUSB_CONFIG_FILE
+
/** \addtogroup group_configuration
* @{ */
@@ -207,6 +209,10 @@
#define CFG_TUD_HID 0
#endif
+#ifndef CFG_TUD_AUDIO
+ #define CFG_TUD_AUDIO 0
+#endif
+
#ifndef CFG_TUD_MIDI
#define CFG_TUD_MIDI 0
#endif