Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions system/CherryUSB/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ if PKG_USING_CHERRYUSB
bool "aic"
config PKG_CHERRYUSB_DEVICE_RP2040
bool "rp2040"
config PKG_CHERRYUSB_DEVICE_RENESAS
bool "renesas"
config PKG_CHERRYUSB_DEVICE_CH32
bool "ch32"
config PKG_CHERRYUSB_DEVICE_PUSB2
Expand Down Expand Up @@ -138,11 +140,26 @@ if PKG_USING_CHERRYUSB
prompt "Enable usb dfu device"
default n

config PKG_CHERRYUSB_DEVICE_DISPLAY
bool
prompt "Enable usb display device"
default n

config PKG_CHERRYUSB_DEVICE_CDC_ACM_CHARDEV
bool
prompt "Enable chardev for cdc acm device"
default n

config PKG_CHERRYUSB_DEVICE_MSC_BLKDEV
bool
prompt "Enable blkdev for msc device"
default n

config CONFIG_USBDEV_MSC_BLOCK_DEV_NAME
string "usb device msc block device name"
depends on PKG_CHERRYUSB_DEVICE_MSC_BLKDEV
default "sd0"

config CONFIG_USBDEV_REQUEST_BUFFER_LEN
int
prompt "Set device control transfer max buffer size"
Expand Down Expand Up @@ -183,7 +200,7 @@ if PKG_USING_CHERRYUSB
config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
bool
prompt "msc_blkdev"
depends on PKG_CHERRYUSB_DEVICE_MSC
depends on PKG_CHERRYUSB_DEVICE_MSC && PKG_CHERRYUSB_DEVICE_MSC_BLKDEV
config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_KEYBOARD
bool
prompt "hid_keyboard"
Expand Down Expand Up @@ -220,6 +237,10 @@ if PKG_USING_CHERRYUSB
bool
prompt "cdc_ncm"
depends on PKG_CHERRYUSB_DEVICE_CDC_NCM
config PKG_CHERRYUSB_DEVICE_TEMPLATE_DFU
bool
prompt "dfu"
depends on PKG_CHERRYUSB_DEVICE_DFU
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC
bool
prompt "cdc_acm_msc"
Expand All @@ -242,6 +263,10 @@ if PKG_USING_CHERRYUSB
bool
prompt "webusb_hid"
depends on PKG_CHERRYUSB_DEVICE_HID
config PKG_CHERRYUSB_DEVICE_TEMPLATE_DISPLAY
bool
prompt "display"
depends on PKG_CHERRYUSB_DEVICE_DISPLAY
config PKG_CHERRYUSB_DEVICE_TEMPLATE_ADB
bool
prompt "adb"
Expand All @@ -252,11 +277,6 @@ if PKG_USING_CHERRYUSB
depends on PKG_CHERRYUSB_DEVICE_CDC_ACM_CHARDEV
endchoice

config CONFIG_USBDEV_MSC_BLOCK_DEV_NAME
string "usb device msc block device name"
depends on PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
default "sd0"

endif

menuconfig PKG_CHERRYUSB_HOST
Expand Down
Loading