We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ddab6f commit dc52890Copy full SHA for dc52890
src/portable/wch/hcd_ch32_usbfs.c
@@ -37,6 +37,10 @@
37
#include "ch32v20x.h"
38
#include "ch32v20x_usb.h"
39
40
+void osal_task_delay(uint32_t msec) {
41
+ unsigned long start = board_millis();
42
+ while (board_millis() - start < msec) {}
43
+}
44
45
#define USBFS_RX_BUF_LEN 64
46
#define USBFS_TX_BUF_LEN 64
@@ -264,9 +268,10 @@ static bool hardware_device_attached(void)
264
268
//--------------------------------------------------------------------+
265
269
// HCD API
266
270
267
-bool hcd_init(uint8_t rhport)
271
+bool hcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init)
272
{
273
(void)rhport;
274
+ (void)rh_init;
275
hardware_init_host(true);
276
277
return true;
0 commit comments