mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 03:56:57 +03:00
* Add files via upload * Update main.cpp * Update main.cpp * Update main.cpp * Update Helper.cpp * Update Helper.h * Update CMakeLists.txt * Update CMakeLists.txt * Update diskio_sdmmc_mh.c * Update diskio_sdmmc_mh.h * Update ff_mh.c * Update vfs_fat_sdmmc_mh.c * Update sdmmc_common_mh.h * Update sdmmc_common_mh.c * Update Helper.cpp * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update ff_mh.c --------- Co-authored-by: CaCO3 <caco3@ruinelli.ch>
44 lines
942 B
C
44 lines
942 B
C
/*
|
|
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "sdmmc_cmd_mh.h"
|
|
|
|
#include "driver/sdmmc_defs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Enable/disable SD card status checking
|
|
*
|
|
* @param pdrv drive number
|
|
* @param enable mock ff_sdmmc_status function (return 0)
|
|
*/
|
|
void ff_sdmmc_set_disk_status_check(BYTE pdrv, bool enable);
|
|
|
|
/**
|
|
* Register SD/MMC diskio driver
|
|
*
|
|
* @param pdrv drive number
|
|
* @param card pointer to sdmmc_card_t structure describing a card; card should be initialized before calling f_mount.
|
|
*/
|
|
void ff_diskio_register_sdmmc(unsigned char pdrv, sdmmc_card_t* card);
|
|
|
|
/**
|
|
* @brief Get the driver number corresponding to a card
|
|
*
|
|
* @param card The card to get its driver
|
|
* @return Driver number to the card
|
|
*/
|
|
BYTE ff_diskio_get_pdrv_card(const sdmmc_card_t* card);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|