Răsfoiți Sursa

rename CFG_TUSB_HOST_CUSTOM_CLASS to CFG_TUH_VENDOR

hathach 6 ani în urmă
părinte
comite
6a076d8aae

+ 4 - 18
examples/host/cdc_msc_hid/src/tusb_config.h

@@ -67,7 +67,7 @@
 #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_VENDOR        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
  }

+ 1 - 1
src/class/custom/custom_host.c

@@ -26,7 +26,7 @@
 
 #include "tusb_option.h"
 
-#if (TUSB_OPT_HOST_ENABLED && CFG_TUSB_HOST_CUSTOM_CLASS)
+#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_VENDOR)
 
 //--------------------------------------------------------------------+
 // INCLUDE

+ 1 - 1
src/host/usbh.c

@@ -84,7 +84,7 @@ static host_class_driver_t const usbh_class_drivers[] =
     },
   #endif
 
-  #if CFG_TUSB_HOST_CUSTOM_CLASS
+  #if CFG_TUH_VENDOR
     {
       .class_code = TUSB_CLASS_VENDOR_SPECIFIC,
       .init       = cush_init,

+ 1 - 1
src/tusb.h

@@ -54,7 +54,7 @@
     #include "class/cdc/cdc_host.h"
   #endif
 
-  #if CFG_TUSB_HOST_CUSTOM_CLASS
+  #if CFG_TUH_VENDOR
     #include "class/custom_host.h"
   #endif