summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-19 16:31:51 +0700
committerhathach <[email protected]>2019-07-19 16:31:51 +0700
commit6a076d8aae25a21a2592f654aa7b86e3e6d072a4 (patch)
tree48d78da2d86b307686ddde0922d19a67fcf23680 /src
parentb0678e1050a8f64116194c2a75d5e8c3fbf03be6 (diff)
rename CFG_TUSB_HOST_CUSTOM_CLASS to CFG_TUH_VENDOR
Diffstat (limited to 'src')
-rw-r--r--src/class/custom/custom_host.c2
-rw-r--r--src/host/usbh.c2
-rw-r--r--src/tusb.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/class/custom/custom_host.c b/src/class/custom/custom_host.c
index a4f04af31..ebe257e61 100644
--- a/src/class/custom/custom_host.c
+++ b/src/class/custom/custom_host.c
@@ -26,7 +26,7 @@
#include "tusb_option.h"
-#if (TUSB_OPT_HOST_ENABLED && CFG_TUSB_HOST_CUSTOM_CLASS)
+#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_VENDOR)
//--------------------------------------------------------------------+
// INCLUDE
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 655e3dd4b..42a99f3d2 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -84,7 +84,7 @@ static host_class_driver_t const usbh_class_drivers[] =
},
#endif
- #if CFG_TUSB_HOST_CUSTOM_CLASS
+ #if CFG_TUH_VENDOR
{
.class_code = TUSB_CLASS_VENDOR_SPECIFIC,
.init = cush_init,
diff --git a/src/tusb.h b/src/tusb.h
index 6072218de..3f6673ae1 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -54,7 +54,7 @@
#include "class/cdc/cdc_host.h"
#endif
- #if CFG_TUSB_HOST_CUSTOM_CLASS
+ #if CFG_TUH_VENDOR
#include "class/custom_host.h"
#endif