summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-10-05 16:32:37 +0700
committerhathach <[email protected]>2021-10-05 16:32:37 +0700
commit431650fb7df9d797406c492eac924c8df545253e (patch)
treeae8c5c6ecad18460da63293c38d5e8cfd0278c88
parent6fd62c8902915b987d600cd17e70383cbef78802 (diff)
parent3158b323d8d701f70b80dca986f8b0e8e60eba97 (diff)
Merge branch 'j4cbo-ncm' into majbthrd-add_ncm
-rw-r--r--src/device/usbd.h4
-rw-r--r--src/tusb.h6
-rw-r--r--src/tusb_option.h4
3 files changed, 8 insertions, 6 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index f39ef2839..7575ef42c 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -809,7 +809,9 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
TUD_BTH_PRI_ITF(_itfnum, _stridx, _ep_evt, _ep_evt_size, _ep_evt_interval, _ep_in, _ep_out, _ep_size) \
TUD_BTH_ISO_ITFS(_itfnum + 1, _ep_in + 1, _ep_out + 1, __VA_ARGS__)
-//------------- CDC-NCM -------------//
+//--------------------------------------------------------------------+
+// CDC-NCM Descriptor Templates
+//--------------------------------------------------------------------+
// Length of template descriptor
#define TUD_CDC_NCM_DESC_LEN (8+9+5+5+13+6+7+9+9+7+7)
diff --git a/src/tusb.h b/src/tusb.h
index 2e1b7a43d..bdfcb5be6 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -76,9 +76,9 @@
#include "class/msc/msc_device.h"
#endif
-#if CFG_TUD_AUDIO
- #include "class/audio/audio_device.h"
-#endif
+ #if CFG_TUD_AUDIO
+ #include "class/audio/audio_device.h"
+ #endif
#if CFG_TUD_MIDI
#include "class/midi/midi_device.h"
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 369c35e2d..057bc61c2 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -284,10 +284,10 @@
#ifndef CFG_TUH_ENUMERATION_BUFSIZE
#define CFG_TUH_ENUMERATION_BUFSIZE 256
#endif
-
- //------------- CLASS -------------//
#endif // TUSB_OPT_HOST_ENABLED
+//------------- CLASS -------------//
+
#ifndef CFG_TUH_HUB
#define CFG_TUH_HUB 0
#endif