rename CFG_TUSB_HOST_CUSTOM_CLASS to CFG_TUH_VENDOR
This commit is contained in:
parent
b0678e1050
commit
6a076d8aae
|
@ -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_HID 0
|
||||||
#define CFG_TUD_VENDOR 0
|
#define CFG_TUD_VENDOR 0
|
||||||
|
|
||||||
#define CFG_TUD_HID 0
|
// CDC FIFO size of TX and RX
|
||||||
#define CFG_TUD_HID_KEYBOARD 0
|
|
||||||
#define CFG_TUD_HID_MOUSE 0
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
|
||||||
// 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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue