ba5e47bc77
1. 应用界面增加了返回主页的按钮 2. 修复了gif渲染内存泄漏的严重bug 3. 将PetDao当中的cJSON API替换为cpp_json,完美通过测试 4. 整合已经实现的各种上层建筑,实现了一个宠物对话基本业务应用,用于样品测试展示用 5. 重构了音频播放类,使其更modern,更加便于移植和拓展
46 lines
1.0 KiB
C
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, const char *data, const char *type);
|
|
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 |