rename ftdi_host to ftdi_sio

This commit is contained in:
hathach 2023-04-27 11:08:42 +07:00
parent cf95b44001
commit 293a6222f8
3 changed files with 5 additions and 14 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.17)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)

View File

@ -34,7 +34,7 @@
#include "cdc_host.h"
#if CFG_TUH_CDC_FTDI
#include "serial/ftdi_host.h"
#include "serial/ftdi_sio.h"
#endif

View File

@ -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