2021-05-23 23:06:17 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2019-08-06 09:59:26 +00:00
|
|
|
#include "soc/soc_caps.h"
|
|
|
|
|
|
|
|
#if SOC_SDMMC_HOST_SUPPORTED
|
2018-04-23 06:35:13 +00:00
|
|
|
#include "driver/sdmmc_host.h"
|
2019-08-06 09:59:26 +00:00
|
|
|
#endif
|
|
|
|
|
2018-04-23 06:35:13 +00:00
|
|
|
#include "driver/sdspi_host.h"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Check that C-style designated initializers are valid in C++ file.
|
|
|
|
*/
|
|
|
|
static void test_initializers() __attribute__((unused));
|
|
|
|
|
|
|
|
static void test_initializers()
|
|
|
|
{
|
2019-08-06 09:59:26 +00:00
|
|
|
#if SOC_SDMMC_HOST_SUPPORTED
|
2018-04-23 06:35:13 +00:00
|
|
|
sdmmc_host_t sdmmc_host = SDMMC_HOST_DEFAULT();
|
|
|
|
(void) sdmmc_host;
|
|
|
|
sdmmc_slot_config_t sdmmc_slot = SDMMC_SLOT_CONFIG_DEFAULT();
|
|
|
|
(void) sdmmc_slot;
|
2019-08-06 09:59:26 +00:00
|
|
|
#endif
|
2018-04-23 06:35:13 +00:00
|
|
|
sdmmc_host_t sdspi_host = SDSPI_HOST_DEFAULT();
|
|
|
|
(void) sdspi_host;
|
|
|
|
sdspi_slot_config_t sdspi_slot = SDSPI_SLOT_CONFIG_DEFAULT();
|
|
|
|
(void) sdspi_slot;
|
2018-09-03 15:55:22 +00:00
|
|
|
sdspi_device_config_t sdspi_dev = SDSPI_DEVICE_CONFIG_DEFAULT();
|
|
|
|
(void) sdspi_dev;
|
2018-04-23 06:35:13 +00:00
|
|
|
}
|