summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorIngHK <[email protected]>2024-01-09 09:53:54 +0100
committerIngHK <[email protected]>2024-01-09 09:53:54 +0100
commit91f65a36bfb1d4516c39306e77fb15d4e1c2fc0b (patch)
treee6d036e24643c9d977659b5198ac824071394e21 /src/class
parentae364b1460b91153cd94b4b0303eeda6419ff1d1 (diff)
[CDC] host: moved acm_open to other acm prototypes
Diffstat (limited to 'src/class')
-rw-r--r--src/class/cdc/cdc_host.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index a6dfb45ae..b20da3723 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -80,6 +80,7 @@ static cdch_interface_t cdch_data[CFG_TUH_CDC];
//--------------------------------------------------------------------+
//------------- ACM prototypes -------------//
+static bool acm_open(uint8_t daddr, tusb_desc_interface_t const *itf_desc, uint16_t max_len);
static void acm_process_config(tuh_xfer_t* xfer);
static bool acm_set_line_coding(cdch_interface_t* p_cdc, cdc_line_coding_t const* line_coding, tuh_xfer_cb_t complete_cb, uintptr_t user_data);
@@ -605,8 +606,6 @@ bool cdch_xfer_cb(uint8_t daddr, uint8_t ep_addr, xfer_result_t event, uint32_t
// Enumeration
//--------------------------------------------------------------------+
-static bool acm_open(uint8_t daddr, tusb_desc_interface_t const *itf_desc, uint16_t max_len);
-
static bool open_ep_stream_pair(cdch_interface_t* p_cdc, tusb_desc_endpoint_t const *desc_ep)
{
for(size_t i=0; i<2; i++)