summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-19 16:23:56 +0700
committerhathach <[email protected]>2019-07-19 16:23:56 +0700
commitb0678e1050a8f64116194c2a75d5e8c3fbf03be6 (patch)
treea011f417b03d81bdbb77cf0863298a227012c4f0 /src
parent83f7aacbb1f3335b968da02c1e3b554bb9f35c86 (diff)
rename CFG_TUD_CUSTOM_CLASS to CFG_TUD_VENDOR
Diffstat (limited to 'src')
-rw-r--r--src/class/custom/custom_device.c2
-rw-r--r--src/device/usbd.c2
-rw-r--r--src/tusb.h2
-rw-r--r--src/tusb_option.h4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/class/custom/custom_device.c b/src/class/custom/custom_device.c
index 02a711621..cf9aa3b3f 100644
--- a/src/class/custom/custom_device.c
+++ b/src/class/custom/custom_device.c
@@ -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"
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 6f2a72143..54fd070b8 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -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,
diff --git a/src/tusb.h b/src/tusb.h
index 30642c00d..6072218de 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -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
diff --git a/src/tusb_option.h b/src/tusb_option.h
index da9bc70fa..a1c5b757d 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -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