test_sdmmc_sdspi_init.cpp 787 B

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