summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWilliam D. Jones <[email protected]>2019-10-04 05:36:51 -0400
committerWilliam D. Jones <[email protected]>2019-10-04 05:36:51 -0400
commite4a88bc826a389b452fa0795292f39456585ed05 (patch)
tree5b6995d6ebe149d2dfc41431b47cb1e88865d57c /examples
parentc5ce4619a388a6409d57f4910ff99ae1f6e9a948 (diff)
examples: Fix #ifndef guard for CFG_TUD_ENDPOINT0_SIZE.
Diffstat (limited to 'examples')
-rw-r--r--examples/device/board_test/src/tusb_config.h2
-rw-r--r--examples/device/usbtmc/src/tusb_config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/device/board_test/src/tusb_config.h b/examples/device/board_test/src/tusb_config.h
index 2f2a4deeb..1a52cc348 100644
--- a/examples/device/board_test/src/tusb_config.h
+++ b/examples/device/board_test/src/tusb_config.h
@@ -64,7 +64,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
+#ifndef CFG_TUD_ENDPOINT0_SIZE
#define CFG_TUD_ENDPOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 0
diff --git a/examples/device/usbtmc/src/tusb_config.h b/examples/device/usbtmc/src/tusb_config.h
index 9141e6a5a..124680ca2 100644
--- a/examples/device/usbtmc/src/tusb_config.h
+++ b/examples/device/usbtmc/src/tusb_config.h
@@ -51,7 +51,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
+#ifndef CFG_TUD_ENDPOINT0_SIZE
#define CFG_TUD_ENDPOINT0_SIZE 64
+#endif
//------------- CLASS -------------//