From 6d8f4bca47d31ba4d114aa216042913031c56f1a Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 12 Apr 2018 13:35:45 +0700 Subject: [PATCH] clean up --- examples/obsolete/device/src/tusb_config.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/obsolete/device/src/tusb_config.h b/examples/obsolete/device/src/tusb_config.h index 35101ff9..e2bd75ba 100644 --- a/examples/obsolete/device/src/tusb_config.h +++ b/examples/obsolete/device/src/tusb_config.h @@ -66,11 +66,23 @@ //--------------------------------------------------------------------+ // COMMON CONFIGURATION //--------------------------------------------------------------------+ -#define CFG_TUSB_DEBUG 2 +#define CFG_TUSB_DEBUG 2 //#define CFG_TUSB_OS OPT_OS_NONE // be passed from IDE/command line for easy project switching //#define CFG_TUSB_OS_TASK_PRIO 0 // be passed from IDE/command line for easy project switching + +/*------------------------------------------------------------------*/ +/* CLASS + *------------------------------------------------------------------*/ + +// FIFO size of CDC TX and RX +#define CFG_TUD_CDC_BUFSIZE 128 + +// TX is sent automatically in Start of Frame event. +// If not enabled, application must call tud_cdc_flush() periodically +#define CFG_TUD_CDC_FLUSH_ON_SOF 1 + //--------------------------------------------------------------------+ // USB RAM PLACEMENT //--------------------------------------------------------------------+