From 4f5c747a63639efbcfff2b9e4f61bd2556c007c8 Mon Sep 17 00:00:00 2001 From: mculover666 <2412828003@qq.com> Date: Mon, 6 Jun 2022 20:33:33 +0800 Subject: [PATCH] board_perf:add support for kv and vfs on ch32v307 board --- board/TencentOS_Tiny_CH32V307_EVB/.cproject | 9 +- board/TencentOS_Tiny_CH32V307_EVB/.project | 65 +-- board/TencentOS_Tiny_CH32V307_EVB/User/main.c | 125 +++--- board/TencentOS_Tiny_CH32V307_EVB/User/sdio.h | 11 +- .../User/spi_flash.c | 34 ++ .../User/spi_flash.h | 8 +- .../User/spi_flash_kv.c | 35 ++ .../examples/fatfs_through_vfs_sample.c | 84 ++++ .../examples/kv_sample.c | 84 ++++ .../{User => examples}/mqtt_iot_explorer.c | 16 +- components/fs/fatfs/wrapper/include/ff.h | 406 ++++++++++++++++++ components/fs/fatfs/wrapper/include/ffconf.h | 288 +++++++++++++ components/fs/kv/tos_kv.c | 22 +- components/fs/vfs/tos_vfs_fs.c | 4 +- platform/hal/wch/ch32v30xx/src/tos_hal_sd.c | 126 ++++++ 15 files changed, 1199 insertions(+), 118 deletions(-) create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/User/spi_flash_kv.c create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/examples/fatfs_through_vfs_sample.c create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/examples/kv_sample.c rename board/TencentOS_Tiny_CH32V307_EVB/{User => examples}/mqtt_iot_explorer.c (97%) create mode 100644 components/fs/fatfs/wrapper/include/ff.h create mode 100644 components/fs/fatfs/wrapper/include/ffconf.h create mode 100644 platform/hal/wch/ch32v30xx/src/tos_hal_sd.c diff --git a/board/TencentOS_Tiny_CH32V307_EVB/.cproject b/board/TencentOS_Tiny_CH32V307_EVB/.cproject index d9d977c8..e27e9c7c 100644 --- a/board/TencentOS_Tiny_CH32V307_EVB/.cproject +++ b/board/TencentOS_Tiny_CH32V307_EVB/.cproject @@ -70,10 +70,12 @@ - + + +