1. 完成了SDMMC的超频,从20MHz提升到40MHz,测试通过
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user