summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-04-27 17:40:08 +0700
committerhathach <[email protected]>2023-04-27 17:40:08 +0700
commit8214f0f497271116d07e874f2e5f764f1e8ebd47 (patch)
tree7cadbedad06d44da3bf4a0d0e8c9c7970c85dd42 /src/class
parentc10f52b2375de8cca153beffb7852877d4cd7e58 (diff)
clean up
Diffstat (limited to 'src/class')
-rw-r--r--src/class/cdc/cdc_host.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index f47ac4f10..ab1a10427 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -33,14 +33,6 @@
#include "cdc_host.h"
-#if CFG_TUH_CDC_FTDI
- #include "serial/ftdi_sio.h"
-#endif
-
-#if CFG_TUH_CDC_CP210X
- #include "serial/cp210x.h"
-#endif
-
// Debug level, TUSB_CFG_DEBUG must be at least this level for debug message
#define CDCH_DEBUG 2
@@ -145,6 +137,8 @@ static void cdch_internal_control_complete(tuh_xfer_t* xfer);
//------------- FTDI prototypes -------------//
#if CFG_TUH_CDC_FTDI
+#include "serial/ftdi_sio.h"
+
static uint16_t const ftdi_pids[] = { TU_FTDI_PID_LIST };
enum {
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
//------------- CP210X prototypes -------------//
#if CFG_TUH_CDC_CP210X
+#include "serial/cp210x.h"
+
static uint16_t const cp210x_pids[] = { TU_CP210X_PID_LIST };
enum {
CP210X_PID_COUNT = sizeof(cp210x_pids) / sizeof(cp210x_pids[0])