439a379945
2. 修改wifi与蓝牙的驱动代码,并且进行了测试,测试通过 3. 新增分区表,为板载16M的flash作分区规划,预留ota分区 4. 测试了SD卡的驱动,正常读出数据,测试通过 5. 新增了CMake配置,just_monitor(monitor_only.sh),只监视,无编译,无烧录
38 lines
970 B
C
38 lines
970 B
C
|
|
#pragma once
|
|
|
|
#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); |