mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
384d61f156
add: migration guide documentation
33 lines
787 B
C++
33 lines
787 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#include "soc/soc_caps.h"
|
|
|
|
#if SOC_SDMMC_HOST_SUPPORTED
|
|
#include "driver/sdmmc_host.h"
|
|
#endif
|
|
|
|
#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()
|
|
{
|
|
#if SOC_SDMMC_HOST_SUPPORTED
|
|
sdmmc_host_t sdmmc_host = SDMMC_HOST_DEFAULT();
|
|
(void) sdmmc_host;
|
|
sdmmc_slot_config_t sdmmc_slot = SDMMC_SLOT_CONFIG_DEFAULT();
|
|
(void) sdmmc_slot;
|
|
#endif
|
|
sdmmc_host_t sdspi_host = SDSPI_HOST_DEFAULT();
|
|
(void) sdspi_host;
|
|
sdspi_device_config_t sdspi_dev = SDSPI_DEVICE_CONFIG_DEFAULT();
|
|
(void) sdspi_dev;
|
|
}
|