summaryrefslogtreecommitdiff
path: root/examples/device/video_capture
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-10-25 17:04:03 +0700
committerhathach <[email protected]>2021-10-25 17:04:03 +0700
commitdbd31895bc234ff6d76d3fe736dc613890ab7acb (patch)
tree9793b3b14156eccc9ed3bdd7963ac6630aa23061 /examples/device/video_capture
parent85e18b9172b266f26ace35c825a9da0f3a32db0b (diff)
change usage of TU_CHECK_MCU() to prevent macro conflict
Diffstat (limited to 'examples/device/video_capture')
-rw-r--r--examples/device/video_capture/src/usb_descriptors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/video_capture/src/usb_descriptors.c b/examples/device/video_capture/src/usb_descriptors.c
index 404ffe070..da8ec8e89 100644
--- a/examples/device/video_capture/src/usb_descriptors.c
+++ b/examples/device/video_capture/src/usb_descriptors.c
@@ -77,12 +77,12 @@ uint8_t const * tud_descriptor_device_cb(void)
#define CONFIG_TOTAL_LEN (TUD_CONFIG_DESC_LEN + TUD_VIDEO_CAPTURE_DESC_LEN)
-#if TU_CHECK_MCU(LPC175X_6X) || TU_CHECK_MCU(LPC177X_8X) || TU_CHECK_MCU(LPC40XX)
+#if TU_CHECK_MCU(OPT_MCU_LPC175X_6X, OPT_MCU_LPC177X_8X, OPT_MCU_LPC40XX)
// LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number
// 0 control, 1 In, 2 Bulk, 3 Iso, 4 In, 5 Bulk etc ...
#define EPNUM_VIDEO_IN 0x83
-#elif TU_CHECK_MCU(NRF5X)
+#elif TU_CHECK_MCU(OPT_MCU_NRF5X)
// nRF5x ISO can only be endpoint 8
#define EPNUM_VIDEO_IN 0x88