From f13bb5a23012a09770976a9f7c178ffc11c042a5 Mon Sep 17 00:00:00 2001 From: Misaki Date: Wed, 27 Aug 2025 22:40:17 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=AE=8C=E6=88=90=E4=BA=86SDMMC=E7=9A=84?= =?UTF-8?q?=E8=B6=85=E9=A2=91=EF=BC=8C=E4=BB=8E20MHz=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E5=88=B040MHz=EF=BC=8C=E6=B5=8B=E8=AF=95=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/SD_Card/SD_MMC.c | 1 + test/gif_displat_test/gif_test.c | 2 +- 项目开发日志.md | 12 +++++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Lib/SD_Card/SD_MMC.c b/Lib/SD_Card/SD_MMC.c index d934034..b6ee1eb 100644 --- a/Lib/SD_Card/SD_MMC.c +++ b/Lib/SD_Card/SD_MMC.c @@ -71,6 +71,7 @@ void SD_Init(void) // For setting a specific frequency, use host.max_freq_khz (range 400kHz - 20MHz for SDSPI) // Example: for fixed frequency of 10MHz, use host.max_freq_khz = 10000; sdmmc_host_t host = SDMMC_HOST_DEFAULT(); + host.max_freq_khz = SDMMC_FREQ_HIGHSPEED; // 设置SD卡读写速度为40MHZ // This initializes the slot without card detect (CD) and write protect (WP) signals. diff --git a/test/gif_displat_test/gif_test.c b/test/gif_displat_test/gif_test.c index c160228..a7213d4 100644 --- a/test/gif_displat_test/gif_test.c +++ b/test/gif_displat_test/gif_test.c @@ -119,7 +119,7 @@ static bool get_gif_wh(const uint8_t *raw, uint32_t *w, uint32_t *h) void red_gif_test(void) { size_t gif_len = 0; - uint8_t *gif_data = get_gif_data("xwzy_m.gif", &gif_len); + uint8_t *gif_data = get_gif_data("sequence02m.gif", &gif_len); ESP_LOGI("GIF", "GIF 文件大小 %zu 字节", gif_len); if (!gif_data) return; diff --git a/项目开发日志.md b/项目开发日志.md index 9b9b437..0b15140 100644 --- a/项目开发日志.md +++ b/项目开发日志.md @@ -153,4 +153,14 @@ - [x] 2. 新增了优雅的C语言错误处理 -- [x] 3. 完成了gif的显示测试(使用lvgl当中的gif解码器),测试通过 \ No newline at end of file +- [x] 3. 完成了gif的显示测试(使用lvgl当中的gif解码器),测试通过 + +#### Day4 2025.8.26 +##### 主要目标:测试开发板官方提供的例程中的驱动能否使用 +实际完成任务: +- [x] 1. 优化了项目结构 + +#### Day4 2025.8.27 +##### 主要目标:测试开发板官方提供的例程中的驱动能否使用 +实际完成任务: +- [x] 1. 完成了SDMMC的超频,从20MHz提升到40MHz,测试通过 \ No newline at end of file