25 lines
471 B
C
25 lines
471 B
C
#ifndef SD_H
|
|
#define SD_H
|
|
|
|
#include <string.h>
|
|
#include <sys/unistd.h>
|
|
#include <sys/stat.h>
|
|
#include "esp_vfs_fat.h"
|
|
#include "sdmmc_cmd.h"
|
|
#include "driver/sdmmc_host.h"
|
|
|
|
#define MOUNT_POINT "/sdcard"
|
|
|
|
extern sdmmc_card_t *card;
|
|
|
|
#define SD_PIN_CLK GPIO_NUM_48
|
|
#define SD_PIN_CMD GPIO_NUM_45
|
|
#define SD_PIN_D0 GPIO_NUM_47
|
|
#define SD_PIN_D1 GPIO_NUM_21
|
|
#define SD_PIN_D2 GPIO_NUM_39
|
|
#define SD_PIN_D3 GPIO_NUM_38
|
|
|
|
void init_sd();
|
|
void deinit_sd();
|
|
|
|
#endif /* SD_H */ |