1 /* 2 * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #include "soc/soc_caps.h" 7 8 #if SOC_SDMMC_HOST_SUPPORTED 9 #include "driver/sdmmc_host.h" 10 #endif 11 12 #include "driver/sdspi_host.h" 13 14 15 /** 16 * Check that C-style designated initializers are valid in C++ file. 17 */ 18 static void test_initializers() __attribute__((unused)); 19 test_initializers()20static void test_initializers() 21 { 22 #if SOC_SDMMC_HOST_SUPPORTED 23 sdmmc_host_t sdmmc_host = SDMMC_HOST_DEFAULT(); 24 (void) sdmmc_host; 25 sdmmc_slot_config_t sdmmc_slot = SDMMC_SLOT_CONFIG_DEFAULT(); 26 (void) sdmmc_slot; 27 #endif 28 sdmmc_host_t sdspi_host = SDSPI_HOST_DEFAULT(); 29 (void) sdspi_host; 30 sdspi_slot_config_t sdspi_slot = SDSPI_SLOT_CONFIG_DEFAULT(); 31 (void) sdspi_slot; 32 sdspi_device_config_t sdspi_dev = SDSPI_DEVICE_CONFIG_DEFAULT(); 33 (void) sdspi_dev; 34 } 35