Skip to content

Commit 0ce8fcf

Browse files
committed
update(cherryusb): update to v1.5.2
Signed-off-by: sakumisu <[email protected]>
1 parent 1c2f927 commit 0ce8fcf

File tree

3 files changed

+3
-47
lines changed

3 files changed

+3
-47
lines changed

lib/cherryusb

Submodule cherryusb updated 261 files

src/rp2_common/cherryusb/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (EXISTS ${PICO_CHERRYUSB_PATH}/${CHERRYUSB_TEST_PATH})
2424
set(CONFIG_CHERRYUSB_DEVICE_MSC 1)
2525
set(CONFIG_CHERRYUSB_DEVICE_AUDIO 1)
2626
set(CONFIG_CHERRYUSB_DEVICE_VIDEO 1)
27-
set(CONFIG_CHERRYUSB_DEVICE_DCD "rp2040")
27+
set(CONFIG_CHERRYUSB_DEVICE_RP2040 1)
2828
include(${PICO_CHERRYUSB_PATH}/cherryusb.cmake)
2929
pico_add_library(cherryusb_device NOFLAG)
3030
target_include_directories(cherryusb_device_headers SYSTEM INTERFACE ${cherryusb_incs})
@@ -35,7 +35,7 @@ if (EXISTS ${PICO_CHERRYUSB_PATH}/${CHERRYUSB_TEST_PATH})
3535
set(CONFIG_CHERRYUSB_HOST_HID 1)
3636
set(CONFIG_CHERRYUSB_HOST_MSC 1)
3737
set(CONFIG_CHERRYUSB_OSAL "freertos")
38-
set(CONFIG_CHERRYUSB_HOST_HCD "rp2040")
38+
set(CONFIG_CHERRYUSB_HOST_RP2040 1)
3939

4040
include(${PICO_CHERRYUSB_PATH}/cherryusb.cmake)
4141
pico_add_library(cherryusb_host NOFLAG)

src/rp2_common/pico_stdio_cherryusb/include/usb_config.h

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -206,32 +206,13 @@
206206
#define CONFIG_USBDEV_MAX_BUS 1 // for now, bus num must be 1 except hpm ip
207207
#endif
208208

209-
#ifndef CONFIG_USBDEV_EP_NUM
210-
#define CONFIG_USBDEV_EP_NUM 16
211-
#endif
212-
213209
/* When your chip hardware supports high-speed and wants to initialize it in high-speed mode, the relevant IP will configure the internal or external high-speed PHY according to CONFIG_USB_HS. */
214210
// #define CONFIG_USB_HS
215211

216212
/* ---------------- FSDEV Configuration ---------------- */
217213
//#define CONFIG_USBDEV_FSDEV_PMA_ACCESS 2 // maybe 1 or 2, many chips may have a difference
218214

219215
/* ---------------- DWC2 Configuration ---------------- */
220-
/* (5 * number of control endpoints + 8) + ((largest USB packet used / 4) + 1 for
221-
* status information) + (2 * number of OUT endpoints) + 1 for Global NAK
222-
*/
223-
// #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4)
224-
/* IN Endpoints Max packet Size / 4 */
225-
// #define CONFIG_USB_DWC2_TX0_FIFO_SIZE (64 / 4)
226-
// #define CONFIG_USB_DWC2_TX1_FIFO_SIZE (1024 / 4)
227-
// #define CONFIG_USB_DWC2_TX2_FIFO_SIZE (64 / 4)
228-
// #define CONFIG_USB_DWC2_TX3_FIFO_SIZE (64 / 4)
229-
// #define CONFIG_USB_DWC2_TX4_FIFO_SIZE (0 / 4)
230-
// #define CONFIG_USB_DWC2_TX5_FIFO_SIZE (0 / 4)
231-
// #define CONFIG_USB_DWC2_TX6_FIFO_SIZE (0 / 4)
232-
// #define CONFIG_USB_DWC2_TX7_FIFO_SIZE (0 / 4)
233-
// #define CONFIG_USB_DWC2_TX8_FIFO_SIZE (0 / 4)
234-
235216
// #define CONFIG_USB_DWC2_DMA_ENABLE
236217

237218
/* ---------------- MUSB Configuration ---------------- */
@@ -242,10 +223,6 @@
242223
#define CONFIG_USBHOST_MAX_BUS 1
243224
#endif
244225

245-
#ifndef CONFIG_USBHOST_PIPE_NUM
246-
#define CONFIG_USBHOST_PIPE_NUM 15
247-
#endif
248-
249226
/* ---------------- EHCI Configuration ---------------- */
250227

251228
#define CONFIG_USB_EHCI_HCCR_OFFSET (0x0)
@@ -265,32 +242,11 @@
265242
#define CONFIG_USB_XHCI_HCCR_OFFSET (0x0)
266243

267244
/* ---------------- DWC2 Configuration ---------------- */
268-
/* largest non-periodic USB packet used / 4 */
269-
// #define CONFIG_USB_DWC2_NPTX_FIFO_SIZE (512 / 4)
270-
/* largest periodic USB packet used / 4 */
271-
// #define CONFIG_USB_DWC2_PTX_FIFO_SIZE (1024 / 4)
272-
/*
273-
* (largest USB packet used / 4) + 1 for status information + 1 transfer complete +
274-
* 1 location each for Bulk/Control endpoint for handling NAK/NYET scenario
275-
*/
276-
// #define CONFIG_USB_DWC2_RX_FIFO_SIZE ((1012 - CONFIG_USB_DWC2_NPTX_FIFO_SIZE - CONFIG_USB_DWC2_PTX_FIFO_SIZE))
277245

278246
/* ---------------- MUSB Configuration ---------------- */
279247
// #define CONFIG_USB_MUSB_SUNXI
280248

281249
/* ================ USB Dcache Configuration ==================*/
282250

283-
#ifdef CONFIG_USB_DCACHE_ENABLE
284-
/* style 1*/
285-
// void usb_dcache_clean(uintptr_t addr, uint32_t size);
286-
// void usb_dcache_invalidate(uintptr_t addr, uint32_t size);
287-
// void usb_dcache_flush(uintptr_t addr, uint32_t size);
288-
289-
/* style 2*/
290-
// #define usb_dcache_clean(addr, size)
291-
// #define usb_dcache_invalidate(addr, size)
292-
// #define usb_dcache_flush(addr, size)
293-
#endif
294-
295251
#define CONFIG_USBDEV_ADVANCE_DESC
296252
#endif

0 commit comments

Comments
 (0)