|
|
@@ -140,48 +140,86 @@ if PKG_USING_CHERRYUSB
|
|
|
default n
|
|
|
|
|
|
choice
|
|
|
- prompt "Select usb device template"
|
|
|
+ prompt "Select usb device template, please select class driver first"
|
|
|
default PKG_CHERRYUSB_DEVICE_TEMPLATE_NONE
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_NONE
|
|
|
- bool "none (Implement it yourself)"
|
|
|
+ bool
|
|
|
+ prompt "none (Implement it yourself)"
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM
|
|
|
- bool "cdc_acm"
|
|
|
+ bool
|
|
|
+ prompt "cdc_acm"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC
|
|
|
- bool "msc_ram"
|
|
|
+ bool
|
|
|
+ prompt "msc_ram"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_MSC
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
|
|
|
- bool "msc_blkdev"
|
|
|
+ bool
|
|
|
+ prompt "msc_blkdev"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_MSC
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_KEYBOARD
|
|
|
- bool "hid_keyboard"
|
|
|
+ bool
|
|
|
+ prompt "hid_keyboard"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_HID
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_MOUSE
|
|
|
- bool "hid_mouse"
|
|
|
+ bool
|
|
|
+ prompt "hid_mouse"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_HID
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_CUSTOM
|
|
|
- bool "hid_custom"
|
|
|
+ bool
|
|
|
+ prompt "hid_custom"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_HID
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_VIDEO
|
|
|
- bool "video"
|
|
|
+ bool
|
|
|
+ prompt "video"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_VIDEO
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_AUDIO_V1_MIC_SPEAKER
|
|
|
- bool "audio_v1_mic_speaker_multichan"
|
|
|
+ bool
|
|
|
+ prompt "audio_v1_mic_speaker_multichan"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_AUDIO
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_AUDIO_V2_MIC_SPEAKER
|
|
|
- bool "audio_v2_mic_speaker_multichan"
|
|
|
+ bool
|
|
|
+ prompt "audio_v2_mic_speaker_multichan"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_AUDIO
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_RNDIS
|
|
|
- bool "cdc_rndis"
|
|
|
+ bool
|
|
|
+ prompt "cdc_rndis"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_RNDIS
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ECM
|
|
|
- bool "cdc_ecm"
|
|
|
+ bool
|
|
|
+ prompt "cdc_ecm"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_ECM
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_NCM
|
|
|
- bool "cdc_ncm"
|
|
|
+ bool
|
|
|
+ prompt "cdc_ncm"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_NCM
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC
|
|
|
- bool "cdc_acm_msc"
|
|
|
+ bool
|
|
|
+ prompt "cdc_acm_msc"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM && PKG_CHERRYUSB_DEVICE_MSC
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC_HID
|
|
|
- bool "cdc_acm_msc_hid"
|
|
|
+ bool
|
|
|
+ prompt "cdc_acm_msc_hid"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM && PKG_CHERRYUSB_DEVICE_MSC && PKG_CHERRYUSB_DEVICE_HID
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV1
|
|
|
- bool "winusbv1"
|
|
|
+ bool
|
|
|
+ prompt "winusbv1"
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV2_CDC
|
|
|
- bool "winusbv2_cdc"
|
|
|
+ bool
|
|
|
+ prompt "winusbv2_cdc"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV2_HID
|
|
|
- bool "winusbv2_hid"
|
|
|
+ bool
|
|
|
+ prompt "winusbv2_hid"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_HID
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_ADB
|
|
|
- bool "adb"
|
|
|
+ bool
|
|
|
+ prompt "adb"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_ADB
|
|
|
config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_CHARDEV
|
|
|
- bool "cdc_acm_chardev"
|
|
|
+ bool
|
|
|
+ prompt "cdc_acm_chardev"
|
|
|
+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM_CHARDEV
|
|
|
endchoice
|
|
|
|
|
|
config CONFIG_USBDEV_MSC_BLOCK_DEV_NAME
|
|
|
@@ -355,23 +393,23 @@ if PKG_USING_CHERRYUSB
|
|
|
depends on RT_CHERRYUSB_HOST_MSC
|
|
|
default "/"
|
|
|
|
|
|
- config PKG_CHERRYUSB_HOST_TEMPLATE
|
|
|
- bool
|
|
|
- prompt "Use usb host template"
|
|
|
- default n
|
|
|
-
|
|
|
- if PKG_CHERRYUSB_HOST_TEMPLATE
|
|
|
- config TEST_USBH_CDC_ACM
|
|
|
+ menu "Select USB host template, please select class driver first"
|
|
|
+ config CONFIG_TEST_USBH_CDC_ACM
|
|
|
int
|
|
|
prompt "demo for test cdc acm"
|
|
|
default 0
|
|
|
depends on PKG_CHERRYUSB_HOST_CDC_ACM
|
|
|
- config TEST_USBH_HID
|
|
|
+ config CONFIG_TEST_USBH_HID
|
|
|
int
|
|
|
prompt "demo for test hid"
|
|
|
default 0
|
|
|
depends on PKG_CHERRYUSB_HOST_HID
|
|
|
- endif
|
|
|
+ config CONFIG_TEST_USBH_MSC
|
|
|
+ int
|
|
|
+ prompt "demo for test msc"
|
|
|
+ default 0
|
|
|
+ depends on PKG_CHERRYUSB_HOST_MSC
|
|
|
+ endmenu
|
|
|
endif
|
|
|
|
|
|
config PKG_CHERRYUSB_PATH
|