summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWilliam D. Jones <[email protected]>2019-09-23 23:11:47 -0400
committerWilliam D. Jones <[email protected]>2019-09-23 23:11:47 -0400
commit742f1f23c56c6c7ed9b65fac4269aa37e6881aa1 (patch)
tree2c2bf9c90f18f4d4e2b3e87be65443a4ac9f7734 /examples
parent950614a841a69f09ffd8b97205183e1c85b09443 (diff)
examples: Allow user to override EP0 size.
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc/src/tusb_config.h3
-rw-r--r--examples/device/cdc_msc_hid_freertos/src/tusb_config.h4
-rw-r--r--examples/device/hid_composite/src/tusb_config.h4
-rw-r--r--examples/device/hid_generic_inout/src/tusb_config.h4
-rw-r--r--examples/device/midi_test/src/tusb_config.h4
-rw-r--r--examples/device/msc_dual_lun/src/tusb_config.h4
-rw-r--r--examples/device/webusb_serial/src/tusb_config.h4
7 files changed, 20 insertions, 7 deletions
diff --git a/examples/device/cdc_msc/src/tusb_config.h b/examples/device/cdc_msc/src/tusb_config.h
index ff7fafd8f..e307870ed 100644
--- a/examples/device/cdc_msc/src/tusb_config.h
+++ b/examples/device/cdc_msc/src/tusb_config.h
@@ -68,8 +68,9 @@
//--------------------------------------------------------------------
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
-
+#ifndef CFG_TUD_ENDOINT0_SIZE
#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 1
diff --git a/examples/device/cdc_msc_hid_freertos/src/tusb_config.h b/examples/device/cdc_msc_hid_freertos/src/tusb_config.h
index bb31eac06..7869e24cc 100644
--- a/examples/device/cdc_msc_hid_freertos/src/tusb_config.h
+++ b/examples/device/cdc_msc_hid_freertos/src/tusb_config.h
@@ -1,4 +1,4 @@
-/*
+/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ha Thach (tinyusb.org)
@@ -69,7 +69,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
+#ifndef CFG_TUD_ENDOINT0_SIZE
#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 1
diff --git a/examples/device/hid_composite/src/tusb_config.h b/examples/device/hid_composite/src/tusb_config.h
index 57fcbd595..13ecfa415 100644
--- a/examples/device/hid_composite/src/tusb_config.h
+++ b/examples/device/hid_composite/src/tusb_config.h
@@ -69,7 +69,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
-#define CFG_TUD_ENDOINT0_SIZE 64
+#ifndef CFG_TUD_ENDOINT0_SIZE
+#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_HID 1
diff --git a/examples/device/hid_generic_inout/src/tusb_config.h b/examples/device/hid_generic_inout/src/tusb_config.h
index c55529fcb..c82588c2f 100644
--- a/examples/device/hid_generic_inout/src/tusb_config.h
+++ b/examples/device/hid_generic_inout/src/tusb_config.h
@@ -69,7 +69,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
-#define CFG_TUD_ENDOINT0_SIZE 64
+#ifndef CFG_TUD_ENDOINT0_SIZE
+#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 0
diff --git a/examples/device/midi_test/src/tusb_config.h b/examples/device/midi_test/src/tusb_config.h
index d588b4df9..4a84812c5 100644
--- a/examples/device/midi_test/src/tusb_config.h
+++ b/examples/device/midi_test/src/tusb_config.h
@@ -69,7 +69,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
-#define CFG_TUD_ENDOINT0_SIZE 64
+#ifndef CFG_TUD_ENDOINT0_SIZE
+#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 0
diff --git a/examples/device/msc_dual_lun/src/tusb_config.h b/examples/device/msc_dual_lun/src/tusb_config.h
index 2e40b9e86..073e2379f 100644
--- a/examples/device/msc_dual_lun/src/tusb_config.h
+++ b/examples/device/msc_dual_lun/src/tusb_config.h
@@ -69,7 +69,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
-#define CFG_TUD_ENDOINT0_SIZE 64
+#ifndef CFG_TUD_ENDOINT0_SIZE
+#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 0
diff --git a/examples/device/webusb_serial/src/tusb_config.h b/examples/device/webusb_serial/src/tusb_config.h
index ffedb997d..b2f09cac0 100644
--- a/examples/device/webusb_serial/src/tusb_config.h
+++ b/examples/device/webusb_serial/src/tusb_config.h
@@ -69,7 +69,9 @@
// DEVICE CONFIGURATION
//--------------------------------------------------------------------
-#define CFG_TUD_ENDOINT0_SIZE 64
+#ifndef CFG_TUD_ENDOINT0_SIZE
+#define CFG_TUD_ENDOINT0_SIZE 64
+#endif
//------------- CLASS -------------//
#define CFG_TUD_CDC 1