Initial Commit

This commit is contained in:
me-no-dev
2020-05-09 19:11:30 +03:00
parent ebe0d9a6cb
commit 0a262244e6
4324 changed files with 645232 additions and 253864 deletions

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "SD_MMC.h"
#ifndef CONFIG_IDF_TARGET_ESP32S2 //SDMMC does not work on ESP32S2
#include "vfs_api.h"
extern "C" {
@ -24,7 +26,6 @@ extern "C" {
#include "sdmmc_cmd.h"
}
#include "ff.h"
#include "SD_MMC.h"
using namespace fs;
/*
@ -145,3 +146,4 @@ uint64_t SDMMCFS::usedBytes()
}
SDMMCFS SD_MMC = SDMMCFS(FSImplPtr(new VFSImpl()));
#endif /* CONFIG_IDF_TARGET_ESP32 */

View File

@ -14,6 +14,9 @@
#ifndef _SDMMC_H_
#define _SDMMC_H_
#include "sdkconfig.h"
#ifndef CONFIG_IDF_TARGET_ESP32S2
#include "FS.h"
#include "driver/sdmmc_types.h"
#include "sd_defines.h"
@ -40,4 +43,5 @@ public:
extern fs::SDMMCFS SD_MMC;
#endif /* CONFIG_IDF_TARGET_ESP32S2 */
#endif /* _SDMMC_H_ */