add CH32V20x USB OTG/FS driver

This commit is contained in:
Matthew Tran
2023-11-19 18:26:40 -08:00
committed by hathach
parent cf532d1479
commit db60fa1c63
28 changed files with 2215 additions and 5 deletions

View File

@@ -4,6 +4,9 @@
# Toolchain from https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack
CROSS_COMPILE ?= riscv-none-embed-
# Toolchain from https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack
#CROSS_COMPILE ?= riscv-none-elf-
# Submodules
CH32V307_SDK = hw/mcu/wch/ch32v307
@@ -13,6 +16,8 @@ CH32V307_SDK_SRC = $(CH32V307_SDK)/EVT/EXAM/SRC
include $(TOP)/$(BOARD_PATH)/board.mk
CPU_CORE ?= rv32imac-ilp32
# -march=rv32imac_zicsr
CFLAGS += \
-flto \
-msmall-data-limit=8 \