rename CFG_TUD_CUSTOM_CLASS to CFG_TUD_VENDOR

This commit is contained in:
hathach
2019-07-19 16:23:56 +07:00
parent 83f7aacbb1
commit b0678e1050
12 changed files with 57 additions and 57 deletions

View File

@@ -26,7 +26,7 @@
#include "tusb_option.h"
#if (TUSB_OPT_DEVICE_ENABLED && CFG_TUD_CUSTOM_CLASS)
#if (TUSB_OPT_DEVICE_ENABLED && CFG_TUD_VENDOR)
#include "common/tusb_common.h"
#include "custom_device.h"

View File

@@ -130,7 +130,7 @@ static usbd_class_driver_t const usbd_class_drivers[] =
},
#endif
#if CFG_TUD_CUSTOM_CLASS
#if CFG_TUD_VENDOR
{
.class_code = TUSB_CLASS_VENDOR_SPECIFIC,
.init = cusd_init,

View File

@@ -80,7 +80,7 @@
#include "class/midi/midi_device.h"
#endif
#if CFG_TUD_CUSTOM_CLASS
#if CFG_TUD_VENDOR
#include "class/custom/custom_device.h"
#endif
#endif

View File

@@ -161,8 +161,8 @@
#define CFG_TUD_MIDI 0
#endif
#ifndef CFG_TUD_CUSTOM_CLASS
#define CFG_TUD_CUSTOM_CLASS 0
#ifndef CFG_TUD_VENDOR
#define CFG_TUD_VENDOR 0
#endif