idf_component_register(SRCS "sd_card_test_main.c"
                       INCLUDE_DIRS "."
                       REQUIRES
                           fatfs
                           sdmmc
                           esp_driver_sdmmc
                           esp_timer
                           esp_psram
                           spi_flash
                           esp_hw_support)

if(NOT CONFIG_SOC_SDMMC_HOST_SUPPORTED)
    fail_at_build_time(sd_card_test
        "This target does not support the SDMMC host peripheral.")
endif()
