-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tools/test_apps/system/cxx_build_test/main/test_sdmmc_sdspi_init.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 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; | ||
} |