Files
Bionic_sphere/Lib/SD_Card/SD_MMC.h
T
Misaki 5d79f88918 1. 进一步拓展了语音识别,目前可以从sd卡导入模型,避免了model文件占用flash分区大小
2. 进一步修改了语音识别,关闭了关键词唤醒功能,只保留了指令识别功能
3. 构建了业务层的基本框架(增加了底层驱动对于的C++兼容),业务代码采用C++编写,启用了RTTI(运行时类型识别)
2025-09-03 00:19:14 +08:00

46 lines
1.0 KiB
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <string.h>
#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_vfs_fat.h"
#include "dirent.h"
#include "sdmmc_cmd.h"
#include "driver/sdmmc_host.h"
#include "esp_log.h"
#include <errno.h>
#include "esp_flash.h"
#define CONFIG_EXAMPLE_PIN_CLK 14
#define CONFIG_EXAMPLE_PIN_CMD 17
#define CONFIG_EXAMPLE_PIN_D0 16
#define CONFIG_EXAMPLE_PIN_D1 -1
#define CONFIG_EXAMPLE_PIN_D2 -1
#define CONFIG_EXAMPLE_PIN_D3 -1
#define CONFIG_SD_Card_D3 21
#define MOUNT_POINT "/sdcard"
esp_err_t SD_Card_CS_EN(void);
esp_err_t SD_Card_CS_Dis(void);
esp_err_t s_example_write_file(const char *path, char *data);
esp_err_t s_example_read_file(const char *path);
extern uint32_t SDCard_Size;
extern uint32_t Flash_Size;
void SD_Init(void);
void Flash_Searching(void);
FILE* Open_File(const char *file_path);
uint16_t Folder_retrieval(const char* directory, const char* fileExtension, char File_Name[][100],uint16_t maxFiles);
#ifdef __cplusplus
}
#endif