From ddb37a743a944a8081d1d60cdd98192b30056a47 Mon Sep 17 00:00:00 2001 From: Supowang <54426333+Supowang1989@users.noreply.github.com> Date: Thu, 2 Jun 2022 17:35:16 +0800 Subject: [PATCH] add spi flash and sd for ch32v307 add spi flash and sd for ch32v307 --- board/TencentOS_Tiny_CH32V307_EVB/.cproject | 1 + board/TencentOS_Tiny_CH32V307_EVB/.launch | 110 +- board/TencentOS_Tiny_CH32V307_EVB/.project | 12 +- .../User/ch32v30x_it.c | 2 - board/TencentOS_Tiny_CH32V307_EVB/User/main.c | 219 +- board/TencentOS_Tiny_CH32V307_EVB/User/sdio.c | 1795 +++++++++++++++++ board/TencentOS_Tiny_CH32V307_EVB/User/sdio.h | 357 ++++ .../User/spi_flash.c | 434 ++++ .../User/spi_flash.h | 63 + 9 files changed, 2914 insertions(+), 79 deletions(-) create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/User/sdio.c create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/User/sdio.h create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/User/spi_flash.c create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/User/spi_flash.h diff --git a/board/TencentOS_Tiny_CH32V307_EVB/.cproject b/board/TencentOS_Tiny_CH32V307_EVB/.cproject index e89af0de..d9d977c8 100644 --- a/board/TencentOS_Tiny_CH32V307_EVB/.cproject +++ b/board/TencentOS_Tiny_CH32V307_EVB/.cproject @@ -91,6 +91,7 @@