Skip to content

Commit 8214f0f

Browse files
committed
clean up
1 parent c10f52b commit 8214f0f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/class/cdc/cdc_host.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@
3333

3434
#include "cdc_host.h"
3535

36-
#if CFG_TUH_CDC_FTDI
37-
#include "serial/ftdi_sio.h"
38-
#endif
39-
40-
#if CFG_TUH_CDC_CP210X
41-
#include "serial/cp210x.h"
42-
#endif
43-
4436
// Debug level, TUSB_CFG_DEBUG must be at least this level for debug message
4537
#define CDCH_DEBUG 2
4638

@@ -145,6 +137,8 @@ static void cdch_internal_control_complete(tuh_xfer_t* xfer);
145137

146138
//------------- FTDI prototypes -------------//
147139
#if CFG_TUH_CDC_FTDI
140+
#include "serial/ftdi_sio.h"
141+
148142
static uint16_t const ftdi_pids[] = { TU_FTDI_PID_LIST };
149143
enum {
150144
FTDI_PID_COUNT = sizeof(ftdi_pids) / sizeof(ftdi_pids[0])
@@ -159,6 +153,8 @@ static bool ftdi_sio_set_baudrate(cdch_interface_t* p_cdc, uint32_t baudrate, tu
159153

160154
//------------- CP210X prototypes -------------//
161155
#if CFG_TUH_CDC_CP210X
156+
#include "serial/cp210x.h"
157+
162158
static uint16_t const cp210x_pids[] = { TU_CP210X_PID_LIST };
163159
enum {
164160
CP210X_PID_COUNT = sizeof(cp210x_pids) / sizeof(cp210x_pids[0])

0 commit comments

Comments
 (0)