summaryrefslogtreecommitdiff
path: root/examples/device/webusb_serial/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-21 11:26:51 +0700
committerhathach <[email protected]>2026-04-21 11:26:51 +0700
commitf9e79844edd9757243c786c9e901cfba3f281b6b (patch)
tree357b7529f4b9ad393343b66ba5f92f44ba07ce42 /examples/device/webusb_serial/src
parentda2368bc141c7e76e818df2336ffe672b7927748 (diff)
replace `TUD_ENDPOINT_ONE_DIRECTION_ONLY` with `CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY` for improved configuration consistency across examples and core sources
Diffstat (limited to 'examples/device/webusb_serial/src')
-rw-r--r--examples/device/webusb_serial/src/usb_descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/webusb_serial/src/usb_descriptors.c b/examples/device/webusb_serial/src/usb_descriptors.c
index 0ef41a68e..415d2b66a 100644
--- a/examples/device/webusb_serial/src/usb_descriptors.c
+++ b/examples/device/webusb_serial/src/usb_descriptors.c
@@ -104,7 +104,7 @@ enum
#define EPNUM_VENDOR_OUT 0x05
#define EPNUM_VENDOR_IN 0x84
-#elif defined(TUD_ENDPOINT_ONE_DIRECTION_ONLY)
+#elif CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY
// MCUs that don't support a same endpoint number with different direction IN and OUT defined in tusb_mcu.h
// e.g EP1 OUT & EP1 IN cannot exist together
#define EPNUM_CDC_NOTIF 0x81