mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/common/esp32x: add SDMMC support
This commit is contained in:
parent
92657f5fd2
commit
5646cc02e4
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup boards_common
|
* @ingroup boards_common_esp32x
|
||||||
* @brief Board definitions that are common for all ESP32x boards.
|
* @brief Board definitions that are common for all ESP32x boards.
|
||||||
*
|
*
|
||||||
* This file contains board configurations that are valid for all ESP32.
|
* This file contains board configurations that are valid for all ESP32.
|
||||||
@ -103,17 +103,30 @@ extern "C" {
|
|||||||
|
|
||||||
#if MODULE_MTD_SDCARD_DEFAULT || DOXYGEN
|
#if MODULE_MTD_SDCARD_DEFAULT || DOXYGEN
|
||||||
#define MTD_1 mtd_dev_get(1) /**< MTD device for the SD Card */
|
#define MTD_1 mtd_dev_get(1) /**< MTD device for the SD Card */
|
||||||
|
#elif MODULE_MTD_SDMMC_DEFAULT
|
||||||
|
#define MTD_1 mtd_dev_get(1) /**< MTD device for the SD/MMC Card */
|
||||||
#endif /* MODULE_MTD_SDCARD_DEFAULT || DOXYGEN */
|
#endif /* MODULE_MTD_SDCARD_DEFAULT || DOXYGEN */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief MTD offset for SD Card interfaces
|
* @brief Default MTD offset for SPI SD Card interfaces
|
||||||
*
|
*
|
||||||
* MTD_1 is used for SD Card.
|
* mtd1 is used for SPI SD Cards by default if module `mtd_sdcard_default`
|
||||||
|
* is used.
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_SDCARD_GENERIC_MTD_OFFSET
|
#ifndef CONFIG_SDCARD_GENERIC_MTD_OFFSET
|
||||||
#define CONFIG_SDCARD_GENERIC_MTD_OFFSET 1
|
#define CONFIG_SDCARD_GENERIC_MTD_OFFSET 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Default MTD offset for SD/MMC interfaces
|
||||||
|
*
|
||||||
|
* mtd1 is used for SD/MMCs by default if module `mtd_sdmmc_default`
|
||||||
|
* is used.
|
||||||
|
*/
|
||||||
|
#ifndef CONFIG_SDMMC_GENERIC_MTD_OFFSET
|
||||||
|
#define CONFIG_SDMMC_GENERIC_MTD_OFFSET 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* MODULE_MTD || DOXYGEN */
|
#endif /* MODULE_MTD || DOXYGEN */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user