rename CFG_TUSB_HOST_CUSTOM_CLASS to CFG_TUH_VENDOR

This commit is contained in:
hathach 2019-07-19 16:31:51 +07:00
parent b0678e1050
commit 6a076d8aae
4 changed files with 7 additions and 21 deletions

View File

@ -67,7 +67,7 @@
#endif #endif
//-------------------------------------------------------------------- //--------------------------------------------------------------------
// DEVICE CONFIGURATION // CONFIGURATION
//-------------------------------------------------------------------- //--------------------------------------------------------------------
#define CFG_TUH_HUB 1 #define CFG_TUH_HUB 1
@ -82,30 +82,16 @@
//------------- CLASS -------------// //------------- CLASS -------------//
#define CFG_TUD_CDC 0 #define CFG_TUD_CDC 0
#define CFG_TUD_MSC 0 #define CFG_TUD_MSC 0
#define CFG_TUD_VENDOR 0
#define CFG_TUD_HID 0 #define CFG_TUD_HID 0
#define CFG_TUD_HID_KEYBOARD 0 #define CFG_TUD_VENDOR 0
#define CFG_TUD_HID_MOUSE 0
//-------------------------------------------------------------------- // CDC FIFO size of TX and RX
// CDC
//--------------------------------------------------------------------
// FIFO size of CDC TX and RX
#define CFG_TUD_CDC_RX_BUFSIZE 64 #define CFG_TUD_CDC_RX_BUFSIZE 64
#define CFG_TUD_CDC_TX_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 #define CFG_TUD_MSC_BUFSIZE 512
//--------------------------------------------------------------------
// HID
//--------------------------------------------------------------------
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

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

View File

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

View File

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