diff options
| author | hathach <[email protected]> | 2023-01-12 10:25:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-01-12 10:25:48 +0700 |
| commit | 3cc6cece0783e893d9fadc868f7fb58c81625fe0 (patch) | |
| tree | a5246063c7cac6dfb0bdfbc762f1d6bb53c0ba7d /src | |
| parent | a7e1de1e837961b33021a8ae4ca63571fbf1f4a2 (diff) | |
add note for openocd with wch, also add wch-riscv.cfg
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/wch/ch32v307/usb_dc_usbhs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/wch/ch32v307/usb_dc_usbhs.c b/src/portable/wch/ch32v307/usb_dc_usbhs.c index e647389ee..39fd41392 100644 --- a/src/portable/wch/ch32v307/usb_dc_usbhs.c +++ b/src/portable/wch/ch32v307/usb_dc_usbhs.c @@ -70,7 +70,7 @@ void dcd_init(uint8_t rhport) { USBHSD->CONTROL = 0; -#if (BOARD_DEVICE_RHPORT_SPEED == OPT_MODE_HIGH_SPEED) +#if TUD_OPT_HIGH_SPEED USBHSD->CONTROL = USBHS_DMA_EN | USBHS_INT_BUSY_EN | USBHS_HIGH_SPEED; #else #error OPT_MODE_FULL_SPEED not currently supported on CH32V307 @@ -383,4 +383,4 @@ void dcd_int_handler(uint8_t rhport) { } } -#endif
\ No newline at end of file +#endif |
