summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-30 10:24:36 +0700
committerGitHub <[email protected]>2019-07-30 10:24:36 +0700
commit1e7f1de4d766e846ec43d5b345a7dc545d98335b (patch)
treee09333dd599e92d0686ca5e2bcf928b1cf60165a /examples/host
parent1ee9ef4f2b7c6acfab6c398a4f57ca22036958f7 (diff)
parent00a9e492cdf04ea17379218996d2713bcaaaff51 (diff)
Merge pull request #89 from hathach/develop
resolve #35 (vendor class), implement #86 (webusb)
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/src/tusb_config.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h
index 9662223b1..7a18c692b 100644
--- a/examples/host/cdc_msc_hid/src/tusb_config.h
+++ b/examples/host/cdc_msc_hid/src/tusb_config.h
@@ -63,11 +63,11 @@
#endif
#ifndef CFG_TUSB_MEM_ALIGN
-#define CFG_TUSB_MEM_ALIGN TU_ATTR_ALIGNED(4)
+#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
#endif
//--------------------------------------------------------------------
-// DEVICE CONFIGURATION
+// CONFIGURATION
//--------------------------------------------------------------------
#define CFG_TUH_HUB 1
@@ -82,30 +82,16 @@
//------------- CLASS -------------//
#define CFG_TUD_CDC 0
#define CFG_TUD_MSC 0
-#define CFG_TUD_CUSTOM_CLASS 0
-
#define CFG_TUD_HID 0
-#define CFG_TUD_HID_KEYBOARD 0
-#define CFG_TUD_HID_MOUSE 0
+#define CFG_TUD_VENDOR 0
-//--------------------------------------------------------------------
-// CDC
-//--------------------------------------------------------------------
-
-// FIFO size of CDC TX and RX
+// CDC FIFO size of TX and RX
#define CFG_TUD_CDC_RX_BUFSIZE 64
#define CFG_TUD_CDC_TX_BUFSIZE 64
-//--------------------------------------------------------------------
-// MSC
-//--------------------------------------------------------------------
-
-// Buffer size of Device Mass storage
+// MSC Buffer size of Device Mass storage
#define CFG_TUD_MSC_BUFSIZE 512
-//--------------------------------------------------------------------
-// HID
-//--------------------------------------------------------------------
#ifdef __cplusplus
}