diff options
| author | hathach <[email protected]> | 2023-04-27 11:08:42 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-04-27 11:08:42 +0700 |
| commit | 293a6222f81ac1085f8b34730f1907f899ce17cf (patch) | |
| tree | 917425970b19ee376b90b5c3456adc23cfcfda14 /src/class | |
| parent | cf95b4400167f6e523d8e5d1762a78744f63e2a9 (diff) | |
rename ftdi_host to ftdi_sio
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 2 | ||||
| -rw-r--r-- | src/class/cdc/serial/ftdi_sio.h (renamed from src/class/cdc/serial/ftdi_host.h) | 15 |
2 files changed, 4 insertions, 13 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 7949ff8d3..d33f31f1a 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -34,7 +34,7 @@ #include "cdc_host.h" #if CFG_TUH_CDC_FTDI - #include "serial/ftdi_host.h" + #include "serial/ftdi_sio.h" #endif diff --git a/src/class/cdc/serial/ftdi_host.h b/src/class/cdc/serial/ftdi_sio.h index 4276d374e..6916e4031 100644 --- a/src/class/cdc/serial/ftdi_host.h +++ b/src/class/cdc/serial/ftdi_sio.h @@ -22,8 +22,8 @@ * THE SOFTWARE. */ -#ifndef TUSB_FTDI_HOST_H -#define TUSB_FTDI_HOST_H +#ifndef TUSB_FTDI_SIO_H +#define TUSB_FTDI_SIO_H // VID/PID for matching FTDI devices #define TU_FTDI_VID 0x0403 @@ -246,13 +246,4 @@ #define FTDI_RS_TEMT (1<<6) #define FTDI_RS_FIFO (1<<7) -//--------------------------------------------------------------------+ -// Internal Class Driver API -//--------------------------------------------------------------------+ -void ftdih_init (void); -bool ftdih_open (uint8_t daddr, tusb_desc_interface_t const *itf_desc, uint16_t max_len); -bool ftdih_set_config (uint8_t daddr, uint8_t itf_num); -bool ftdih_xfer_cb (uint8_t daddr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes); -void ftdih_close (uint8_t daddr); - -#endif //TUSB_FTDI_HOST_H +#endif //TUSB_FTDI_SIO_H |
