summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-03-12 16:52:27 +0700
committerhathach <[email protected]>2026-03-12 16:52:27 +0700
commit0e23ccd7df3e8e4119f4dd29236314fe1aed0ae5 (patch)
tree70cc8648138538f43c114bcf41478dc99391d98d
parent79bbea855915048945ba2198b64bd788fbc36aad (diff)
refactor(cdc): remove deprecated runtime CDC configuration, add backward compatibility with no-op macros
-rw-r--r--src/class/cdc/cdc_device.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_device.h b/src/class/cdc/cdc_device.h
index e44d425b9..9ac6bc58a 100644
--- a/src/class/cdc/cdc_device.h
+++ b/src/class/cdc/cdc_device.h
@@ -85,6 +85,18 @@
#define CFG_TUD_CDC_TX_OVERWRITABLE_IF_NOT_CONNECTED 1
#endif
+// Backward compatible: tud_cdc_configure_t and tud_cdc_configure() are no longer used.
+// Configuration is now done via compile-time macros above.
+typedef struct {
+ bool rx_persistent;
+ bool tx_persistent;
+ bool tx_overwritabe_if_not_connected;
+} tud_cdc_configure_t;
+
+#define tud_cdc_configure(_cfg) ((void)(_cfg))
+#define tud_cdc_configure_fifo_t tud_cdc_configure_t
+#define tud_cdc_configure_fifo(_cfg) ((void)(_cfg))
+
//--------------------------------------------------------------------+
// Application API (Multiple Ports) i.e. CFG_TUD_CDC > 1
//--------------------------------------------------------------------+