Skip to content

Commit 5f63ef4

Browse files
committed
clean up
1 parent 0194b84 commit 5f63ef4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/host/cdc_msc_hid/src/tusb_config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
#define CFG_TUH_ENUMERATION_BUFSIZE 256
104104

105105
#define CFG_TUH_HUB 1 // number of supported hubs
106-
#define CFG_TUH_CDC 4 // number of supported CDC devices. also activates CDC ACM
106+
#define CFG_TUH_CDC 2 // number of supported CDC devices. also activates CDC ACM
107107
#define CFG_TUH_CDC_FTDI 1 // FTDI Serial. FTDI is not part of CDC class, only to re-use CDC driver API
108108
#define CFG_TUH_CDC_CP210X 1 // CP210x Serial. CP210X is not part of CDC class, only to re-use CDC driver API
109109
#define CFG_TUH_CDC_CH34X 1 // CH340 or CH341 Serial. CH34X is not part of CDC class, only to re-use CDC driver API
@@ -122,6 +122,7 @@
122122
//------------- CDC -------------//
123123

124124
// Set Line Control state on enumeration/mounted:
125+
// DTR ( bit 0), RTS (bit 1)
125126
#define CFG_TUH_CDC_LINE_CONTROL_ON_ENUM (CDC_CONTROL_LINE_STATE_DTR | CDC_CONTROL_LINE_STATE_RTS)
126127

127128
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t

examples/host/cdc_msc_hid_freertos/src/tusb_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
//------------- CDC -------------//
128128

129129
// Set Line Control state on enumeration/mounted:
130+
// DTR ( bit 0), RTS (bit 1)
130131
#define CFG_TUH_CDC_LINE_CONTROL_ON_ENUM (CDC_CONTROL_LINE_STATE_DTR | CDC_CONTROL_LINE_STATE_RTS)
131132

132133
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t

src/class/cdc/cdc_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
// Level where CFG_TUSB_DEBUG must be at least for this driver is logged
4444
#ifndef CFG_TUH_CDC_LOG_LEVEL
45-
#define CFG_TUH_CDC_LOG_LEVEL 1
45+
#define CFG_TUH_CDC_LOG_LEVEL 2
4646
#endif
4747

4848
#define TU_LOG_DRV(...) TU_LOG(CFG_TUH_CDC_LOG_LEVEL, __VA_ARGS__)

0 commit comments

Comments
 (0)