refactor(serial): add host serial framework
Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
25
Kconfig.rtt
25
Kconfig.rtt
@@ -315,6 +315,7 @@ if RT_USING_CHERRYUSB
|
||||
config RT_CHERRYUSB_HOST_CDC_ACM
|
||||
bool
|
||||
prompt "Enable usb cdc acm driver"
|
||||
select CONFIG_USBHOST_SERIAL
|
||||
default n
|
||||
|
||||
config RT_CHERRYUSB_HOST_HID
|
||||
@@ -382,23 +383,36 @@ if RT_USING_CHERRYUSB
|
||||
config RT_CHERRYUSB_HOST_FTDI
|
||||
bool
|
||||
prompt "Enable usb ftdi driver"
|
||||
select CONFIG_USBHOST_SERIAL
|
||||
default n
|
||||
|
||||
config RT_CHERRYUSB_HOST_CH34X
|
||||
bool
|
||||
prompt "Enable usb ch34x driver"
|
||||
select CONFIG_USBHOST_SERIAL
|
||||
default n
|
||||
|
||||
config RT_CHERRYUSB_HOST_CP210X
|
||||
bool
|
||||
prompt "Enable usb cp210x driver"
|
||||
select CONFIG_USBHOST_SERIAL
|
||||
default n
|
||||
|
||||
config RT_CHERRYUSB_HOST_PL2303
|
||||
bool
|
||||
prompt "Enable usb pl2303 driver"
|
||||
select CONFIG_USBHOST_SERIAL
|
||||
default n
|
||||
|
||||
config RT_CHERRYUSB_HOST_GSM
|
||||
bool
|
||||
prompt "Enable usb gsm driver for 4g module"
|
||||
select CONFIG_USBHOST_SERIAL
|
||||
default n
|
||||
|
||||
config CONFIG_USBHOST_SERIAL
|
||||
bool
|
||||
|
||||
config CONFIG_USBHOST_PLATFORM_CDC_ECM
|
||||
bool
|
||||
|
||||
@@ -434,6 +448,11 @@ if RT_USING_CHERRYUSB
|
||||
prompt "Set host control transfer timeout, unit is ms"
|
||||
default 500
|
||||
|
||||
config CONFIG_USBHOST_SERIAL_RX_SIZE
|
||||
int
|
||||
prompt "Set host serial rx max buffer size"
|
||||
default 2048
|
||||
|
||||
config RT_LWIP_PBUF_POOL_BUFSIZE
|
||||
int "The size of each pbuf in the pbuf pool"
|
||||
range 1500 2000
|
||||
@@ -445,11 +464,11 @@ if RT_USING_CHERRYUSB
|
||||
default "/"
|
||||
|
||||
menu "Select USB host template, please select class driver first"
|
||||
config CONFIG_TEST_USBH_CDC_ACM
|
||||
config CONFIG_TEST_USBH_SERIAL
|
||||
int
|
||||
prompt "demo for test cdc acm, cannot enable this demo, we have used serial framework instead"
|
||||
prompt "demo for test serial, cannot enable this demo, we have used serial framework instead"
|
||||
default 0
|
||||
depends on RT_CHERRYUSB_HOST_CDC_ACM
|
||||
depends on RT_CHERRYUSB_HOST_CDC_ACM || RT_CHERRYUSB_HOST_FTDI || RT_CHERRYUSB_HOST_CH34X || RT_CHERRYUSB_HOST_CP210X || RT_CHERRYUSB_HOST_PL2303
|
||||
config CONFIG_TEST_USBH_HID
|
||||
int
|
||||
prompt "demo for test hid"
|
||||
|
||||
Reference in New Issue
Block a user