From 85f804213fb03e339da025c8c422df7d87273d00 Mon Sep 17 00:00:00 2001 From: Supowang <54426333+Supowang1989@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:25:22 +0800 Subject: [PATCH] board_perf:add kv and vfs for risc-v board_perf:add kv and vfs for risc-v --- board/TencentOS_Tiny_CH32V307_EVB/.cproject | 9 +- board/TencentOS_Tiny_CH32V307_EVB/.project | 53 ++- 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 +- .../esp8266_tencent_firmware.c | 7 +- .../tencent_firmware_mqtt_iot_explorer.c | 2 +- platform/hal/wch/ch32v30xx/src/tos_hal_sd.c | 126 ++++++ platform/hal/wch/ch32v30xx/src/tos_hal_uart.c | 2 +- 18 files changed, 1199 insertions(+), 117 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..5985e0dc 100644 --- a/board/TencentOS_Tiny_CH32V307_EVB/.cproject +++ b/board/TencentOS_Tiny_CH32V307_EVB/.cproject @@ -62,6 +62,9 @@