Files
luban-lite/packages/third-party/cherryusb/Kconfig
刘可亮 564e22b32f v0.7.5
2023-08-28 09:48:01 +08:00

264 lines
8.1 KiB
Plaintext

# Kconfig file for package CherryUSB
menuconfig LPKG_USING_CHERRYUSB
bool "CherryUSB: tiny and portable USB host/device stack for embedded system with USB IP"
default n
select RT_USING_LIBC
if LPKG_USING_CHERRYUSB
menuconfig LPKG_CHERRYUSB_DEVICE
bool "Enable usb device mode"
default n
if LPKG_CHERRYUSB_DEVICE
choice
prompt "Select usb device speed"
default LPKG_CHERRYUSB_DEVICE_HS
config LPKG_CHERRYUSB_DEVICE_FS
bool "FS"
config LPKG_CHERRYUSB_DEVICE_HS
bool "HS"
endchoice
choice
prompt "Select usb device ip"
default LPKG_CHERRYUSB_DEVICE_AIC
config LPKG_CHERRYUSB_DEVICE_AIC
bool "AIC"
#config LPKG_CHERRYUSB_DEVICE_BL
# bool "BL"
#config LPKG_CHERRYUSB_DEVICE_CH32
# bool "CH32"
#config LPKG_CHERRYUSB_DEVICE_FSDEV
# bool "FSDEV"
#config LPKG_CHERRYUSB_DEVICE_DWC2
# bool "DWC2"
#config LPKG_CHERRYUSB_DEVICE_MM32
# bool "MM32"
#config LPKG_CHERRYUSB_DEVICE_MUSB
# bool "MUSB"
#config LPKG_CHERRYUSB_DEVICE_NUVOTON
# bool "NUVOTON"
#config LPKG_CHERRYUSB_DEVICE_IMXRT
# bool "IMXRT"
endchoice
if LPKG_CHERRYUSB_DEVICE_CH32
choice
prompt "Select chip with ch32 usb ip to set usb base and irq name,if not set,use default setting"
default LPKG_CHERRYUSB_DEVICE_CH32_CH32V307
config LPKG_CHERRYUSB_DEVICE_CH32_CH32V307
bool "CH32V307"
endchoice
endif
if LPKG_CHERRYUSB_DEVICE_FSDEV
choice
prompt "Select chip with fsdev usb ip to set usb base and irq name,if not set,use default setting"
default LPKG_CHERRYUSB_DEVICE_FSDEV_STM32
config LPKG_CHERRYUSB_DEVICE_FSDEV_STM32
bool "STM32"
endchoice
endif
if LPKG_CHERRYUSB_DEVICE_MUSB
choice
prompt "Select chip with musb usb ip to set usb base and irq name,if not set,use default setting"
default LPKG_CHERRYUSB_DEVICE_MUSB_MSP432
config LPKG_CHERRYUSB_DEVICE_MUSB_MSP432
bool "MSP432"
config LPKG_CHERRYUSB_DEVICE_MUSB_ES32F3
bool "ES32F3"
config LPKG_CHERRYUSB_DEVICE_MUSB_SUNXI
bool "SUNXI"
endchoice
endif
if LPKG_CHERRYUSB_DEVICE_DWC2
choice
prompt "Select chip with dwc2 usb ip to set usb base and irq name,if not set,use default setting"
default LPKG_CHERRYUSB_DEVICE_DWC2_STM32
config LPKG_CHERRYUSB_DEVICE_DWC2_STM32
bool "STM32"
endchoice
choice
prompt "Select dwc2 port"
default LPKG_CHERRYUSB_DEVICE_DWC2_PORT_FS
config LPKG_CHERRYUSB_DEVICE_DWC2_PORT_FS
bool "FS_PORT"
config LPKG_CHERRYUSB_DEVICE_DWC2_PORT_HS
bool "HS_PORT"
endchoice
endif
menuconfig LPKG_CHERRYUSB_DEVICE_CDC
bool
prompt "Enable usb cdc acm device"
default n
if LPKG_CHERRYUSB_DEVICE_CDC
config LPKG_CHERRYUSB_DEVICE_CDC_TEMPLATE
bool
prompt "Use cdc acm template"
default n
endif
menuconfig LPKG_CHERRYUSB_DEVICE_HID
bool
prompt "Enable usb hid device"
default n
if LPKG_CHERRYUSB_DEVICE_HID
choice
prompt "Use hid template"
default LPKG_CHERRYUSB_DEVICE_HID_MOUSE_TEMPLATE
config LPKG_CHERRYUSB_DEVICE_HID_MOUSE_TEMPLATE
bool "mouse"
config LPKG_CHERRYUSB_DEVICE_HID_KEYBOARD_TEMPLATE
bool "keyboard"
endchoice
endif
menuconfig LPKG_CHERRYUSB_DEVICE_MSC
bool
prompt "Enable usb msc device"
default n
if LPKG_CHERRYUSB_DEVICE_MSC
config LPKG_CHERRYUSB_DEVICE_MSC_TEMPLATE
bool
prompt "Use msc ram template"
default n
endif
menuconfig LPKG_CHERRYUSB_DEVICE_AUDIO
bool
prompt "Enable usb audio device"
default n
if LPKG_CHERRYUSB_DEVICE_AUDIO
choice
prompt "Use audio speaker&mic template"
default LPKG_CHERRYUSB_DEVICE_AUDIO_V1_TEMPLATE
config LPKG_CHERRYUSB_DEVICE_AUDIO_V1_TEMPLATE
bool "UAC1.0"
config LPKG_CHERRYUSB_DEVICE_AUDIO_V2_TEMPLATE
bool "UAC2.0"
endchoice
endif
menuconfig LPKG_CHERRYUSB_DEVICE_VIDEO
bool
prompt "Enable usb video device"
default n
if LPKG_CHERRYUSB_DEVICE_VIDEO
config LPKG_CHERRYUSB_DEVICE_VIDEO_TEMPLATE
bool
prompt "Use video static mjpeg template"
default n
endif
menuconfig LPKG_CHERRYUSB_DEVICE_RNDIS
bool
prompt "Enable usb rndis device"
default n
menuconfig LPKG_CHERRYUSB_DEVICE_DFU
bool
prompt "Enable usb dfu device"
default n
menuconfig LPKG_CHERRYUSB_DEVIEC_HUB
bool
prompt "Enable usb hub device"
default n
endif
menuconfig LPKG_CHERRYUSB_HOST
bool "Enable usb host mode"
default n
if LPKG_CHERRYUSB_HOST
choice
prompt "Select usb host ip"
default LPKG_CHERRYUSB_HOST_EHCI
#config LPKG_CHERRYUSB_HOST_MUSB
# bool "MUSB"
#config LPKG_CHERRYUSB_HOST_DWC2
# bool "DWC2"
config LPKG_CHERRYUSB_HOST_EHCI
bool "EHCI"
endchoice
if LPKG_CHERRYUSB_HOST_MUSB
choice
prompt "Select chip with musb usb ip to set usb base and irq name,if not set,use default setting"
default LPKG_CHERRYUSB_HOST_MUSB_ES32F3
config LPKG_CHERRYUSB_HOST_MUSB_MSP432
bool "MSP432"
config LPKG_CHERRYUSB_HOST_MUSB_ES32F3
bool "ES32F3"
config LPKG_CHERRYUSB_HOST_MUSB_SUNXI
bool "SUNXI"
endchoice
endif
if LPKG_CHERRYUSB_HOST_DWC2
choice
prompt "Select chip with dwc2 usb ip to set usb base and irq name,if not set,use default setting.Only support hs usb ip"
default LPKG_CHERRYUSB_HOST_DWC2_STM32
config LPKG_CHERRYUSB_HOST_DWC2_STM32
bool "STM32"
endchoice
endif
config LPKG_CHERRYUSB_HOST_HUB
bool
prompt "Enable usb hub driver"
default n
config LPKG_CHERRYUSB_HOST_CDC
bool
prompt "Enable usb cdc acm driver"
default n
config LPKG_CHERRYUSB_HOST_HID
bool
prompt "Enable usb hid driver"
default n
config LPKG_CHERRYUSB_HOST_MSC
bool
prompt "Enable usb msc driver"
default n
config LPKG_CHERRYUSB_HOST_RNDIS
bool
prompt "Enable usb rndis driver"
default n
config LPKG_CHERRYUSB_HOST_TEMPLATE
bool
prompt "Use usb host template"
default n
config LPKG_CHERRYUSB_HOST_PSC_THREAD_STACK_SIZE
int "Set usb host psc thread stack size"
default 2048
config LPKG_CHERRYUSB_HOST_PSC_THREAD_PRIO
int "Set usb host psc thread prio"
default 5
endif
config LPKG_CHERRYUSB_EXMAPLE
bool
prompt "Enable usb example"
default n
endif