rename CFG_TUD_CUSTOM_CLASS to CFG_TUD_VENDOR
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user