@@ -32,38 +32,6 @@ if(BL_SDK_BASE)
32
32
sdk_generate_library (cherryusb )
33
33
sdk_add_include_directories (${cherryusb_incs} )
34
34
sdk_library_add_sources (${cherryusb_srcs} )
35
- elseif (HPM_SDK_BASE )
36
- set (CONFIG_CHERRYUSB_DEVICE_CDC_ACM 1 )
37
- set (CONFIG_CHERRYUSB_DEVICE_HID 1 )
38
- set (CONFIG_CHERRYUSB_DEVICE_MSC 1 )
39
- set (CONFIG_CHERRYUSB_DEVICE_AUDIO 1 )
40
- set (CONFIG_CHERRYUSB_DEVICE_VIDEO 1 )
41
-
42
- set (CONFIG_CHERRYUSB_HOST_CDC_ACM 1 )
43
- set (CONFIG_CHERRYUSB_HOST_CDC_ECM 1 )
44
- set (CONFIG_CHERRYUSB_HOST_CDC_NCM 1 )
45
- set (CONFIG_CHERRYUSB_HOST_HID 1 )
46
- set (CONFIG_CHERRYUSB_HOST_MSC 1 )
47
- set (CONFIG_CHERRYUSB_HOST_VIDEO 1 )
48
- set (CONFIG_CHERRYUSB_HOST_AUDIO 1 )
49
- set (CONFIG_CHERRYUSB_HOST_CDC_RNDIS 1 )
50
- # set(CONFIG_CHERRYUSB_HOST_BLUETOOTH 1)
51
- set (CONFIG_CHERRYUSB_HOST_ASIX 1 )
52
- set (CONFIG_CHERRYUSB_HOST_RTL8152 1 )
53
- set (CONFIG_CHERRYUSB_HOST_CH34X 1 )
54
- set (CONFIG_CHERRYUSB_HOST_CP210X 1 )
55
- set (CONFIG_CHERRYUSB_HOST_FTDI 1 )
56
- set (CONFIG_CHERRYUSB_HOST_PL2303 1 )
57
- set (CONFIG_CHERRYUSB_HOST_BL616 1 )
58
-
59
- set (CONFIG_CHERRYUSB_DEVICE_HPM 1 )
60
- set (CONFIG_CHERRYUSB_HOST_EHCI_HPM 1 )
61
- set (CONFIG_CHERRYUSB_OSAL "freertos" )
62
-
63
- include (${CMAKE_CURRENT_LIST_DIR} /cherryusb.cmake )
64
-
65
- sdk_inc (${cherryusb_incs} )
66
- sdk_src (${cherryusb_srcs} )
67
35
elseif (ESP_PLATFORM )
68
36
set (CONFIG_CHERRYUSB_DEVICE_DWC2_ESP 1 )
69
37
set (CONFIG_CHERRYUSB_HOST_DWC2_ESP 1 )
@@ -171,4 +139,36 @@ elseif(ZEPHYR_BASE)
171
139
if (cherryusb_srcs )
172
140
zephyr_library_sources (${cherryusb_srcs} )
173
141
endif ()
142
+ elseif (HPM_SDK_BASE )
143
+ set (CONFIG_CHERRYUSB_DEVICE_CDC_ACM 1 )
144
+ set (CONFIG_CHERRYUSB_DEVICE_HID 1 )
145
+ set (CONFIG_CHERRYUSB_DEVICE_MSC 1 )
146
+ set (CONFIG_CHERRYUSB_DEVICE_AUDIO 1 )
147
+ set (CONFIG_CHERRYUSB_DEVICE_VIDEO 1 )
148
+
149
+ set (CONFIG_CHERRYUSB_HOST_CDC_ACM 1 )
150
+ set (CONFIG_CHERRYUSB_HOST_CDC_ECM 1 )
151
+ set (CONFIG_CHERRYUSB_HOST_CDC_NCM 1 )
152
+ set (CONFIG_CHERRYUSB_HOST_HID 1 )
153
+ set (CONFIG_CHERRYUSB_HOST_MSC 1 )
154
+ set (CONFIG_CHERRYUSB_HOST_VIDEO 1 )
155
+ set (CONFIG_CHERRYUSB_HOST_AUDIO 1 )
156
+ set (CONFIG_CHERRYUSB_HOST_CDC_RNDIS 1 )
157
+ # set(CONFIG_CHERRYUSB_HOST_BLUETOOTH 1)
158
+ set (CONFIG_CHERRYUSB_HOST_ASIX 1 )
159
+ set (CONFIG_CHERRYUSB_HOST_RTL8152 1 )
160
+ set (CONFIG_CHERRYUSB_HOST_CH34X 1 )
161
+ set (CONFIG_CHERRYUSB_HOST_CP210X 1 )
162
+ set (CONFIG_CHERRYUSB_HOST_FTDI 1 )
163
+ set (CONFIG_CHERRYUSB_HOST_PL2303 1 )
164
+ set (CONFIG_CHERRYUSB_HOST_BL616 1 )
165
+
166
+ set (CONFIG_CHERRYUSB_DEVICE_HPM 1 )
167
+ set (CONFIG_CHERRYUSB_HOST_EHCI_HPM 1 )
168
+ set (CONFIG_CHERRYUSB_OSAL "freertos" )
169
+
170
+ include (${CMAKE_CURRENT_LIST_DIR} /cherryusb.cmake )
171
+
172
+ sdk_inc (${cherryusb_incs} )
173
+ sdk_src (${cherryusb_srcs} )
174
174
endif ()
0 commit comments