-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKconfig
127 lines (110 loc) · 3.96 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
menuconfig CHERRYUSB
bool "CherryUSB Configuration"
default n
if CHERRYUSB
menuconfig CHERRYUSB_DEVICE
bool "Enable usb device mode"
default n
if CHERRYUSB_DEVICE
choice
prompt "Select usb device speed"
default CHERRYUSB_DEVICE_SPEED_FS
config CHERRYUSB_DEVICE_SPEED_FS
bool "FS"
config CHERRYUSB_DEVICE_SPEED_HS
bool "HS"
config CHERRYUSB_DEVICE_SPEED_AUTO
bool "AUTO"
endchoice
config CHERRYUSB_DEVICE_DCD
string
default "fsdev" if CHERRYUSB_DEVICE_FSDEV
default "dwc2_st" if CHERRYUSB_DEVICE_DWC2_ST
default "dwc2_esp" if CHERRYUSB_DEVICE_DWC2_ESP
default "dwc2_at" if CHERRYUSB_DEVICE_DWC2_AT
default "dwc2_gd" if CHERRYUSB_DEVICE_DWC2_GD
default "dwc2_custom" if CHERRYUSB_DEVICE_DWC2_CUSTOM
default "musb_standard" if CHERRYUSB_DEVICE_MUSB_STANDARD
default "musb_sunxi" if CHERRYUSB_DEVICE_MUSB_SUNXI
default "musb_custom" if CHERRYUSB_DEVICE_MUSB_CUSTOM
default "bouffalo" if CHERRYUSB_DEVICE_BL
default "hpm" if CHERRYUSB_DEVICE_HPM
default "aic" if CHERRYUSB_DEVICE_AIC
default "ch32" if CHERRYUSB_DEVICE_CH32
default "pusb2" if CHERRYUSB_DEVICE_PUSB2
choice
prompt "Select usb device ip, and some ip need config in usb_config.h, please check"
default CHERRYUSB_DEVICE_CUSTOM
config CHERRYUSB_DEVICE_CUSTOM
bool "CUSTOM (Implement it yourself)"
config CHERRYUSB_DEVICE_FSDEV
bool "fsdev"
config CHERRYUSB_DEVICE_DWC2_ST
bool "dwc2_st"
config CHERRYUSB_DEVICE_DWC2_ESP
bool "dwc2_esp"
config CHERRYUSB_DEVICE_DWC2_AT
bool "dwc2_at"
config CHERRYUSB_DEVICE_DWC2_GD
bool "dwc2_gd"
config CHERRYUSB_DEVICE_DWC2_CUSTOM
bool "dwc2_custom"
config CHERRYUSB_DEVICE_MUSB_STANDARD
bool "musb_standard"
config CHERRYUSB_DEVICE_MUSB_SUNXI
bool "musb_sunxi"
config CHERRYUSB_DEVICE_MUSB_CUSTOM
bool "musb_custom"
config CHERRYUSB_DEVICE_BL
bool "bouffalo"
config CHERRYUSB_DEVICE_HPM
bool "hpm"
config CHERRYUSB_DEVICE_AIC
bool "aic"
config CHERRYUSB_DEVICE_CH32
bool "ch32"
config CHERRYUSB_DEVICE_PUSB2
bool "pusb2"
endchoice
config CHERRYUSB_DEVICE_CDC
bool
prompt "Enable usb cdc acm device"
default n
config CHERRYUSB_DEVICE_HID
bool
prompt "Enable usb hid device"
default n
config CHERRYUSB_DEVICE_MSC
bool
prompt "Enable usb msc device"
default n
config CHERRYUSB_DEVICE_WINUSB
bool
prompt "Enable usb winusb20 device"
default n
# config CHERRYUSB_DEVICE_AUDIO
# bool
# prompt "Enable usb audio device"
# default n
# config CHERRYUSB_DEVICE_VIDEO
# bool
# prompt "Enable usb video device"
# default n
# config CHERRYUSB_DEVICE_CDC_RNDIS
# bool
# prompt "Enable usb cdc rndis device"
# default n
# config CHERRYUSB_DEVICE_CDC_ECM
# bool
# prompt "Enable usb cdc ecm device"
# default n
# config CHERRYUSB_DEVICE_CDC_NCM
# bool
# prompt "Enable usb cdc ncm device"
# default n
config CHERRYUSB_DEVICE_DFU
bool
prompt "Enable usb dfu device"
default n
endif # CHERRYUSB_DEVICE
endif # CHERRYUSB