add note for openocd with wch, also add wch-riscv.cfg

This commit is contained in:
hathach
2023-01-12 10:25:48 +07:00
parent a7e1de1e83
commit 3cc6cece07
3 changed files with 32 additions and 5 deletions

View File

@@ -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
#endif