switch gd32 and stm32f4 to use new dwc2 driver

This commit is contained in:
hathach
2021-10-25 00:06:57 +07:00
parent 06de6b725c
commit 32742571da
5 changed files with 1516 additions and 1374 deletions

View File

@@ -32,9 +32,10 @@
#define __NOP() __asm volatile ("nop")
// These numbers are the same for the whole GD32VF103 family.
#define OTG_FS_IRQn 86
#define EP_MAX_FS 4
#define EP_FIFO_SIZE_FS 1280
#define RHPORT_IRQn 86
#define EP_MAX 4
#define EP_FIFO_SIZE 1280
#define DWC2_REG_BASE 0x50000000UL
// The GD32VF103 is a RISC-V MCU, which implements the ECLIC Core-Local
// Interrupt Controller by Nuclei. It is nearly API compatible to the