#include "YellowSdCard.h" #include "YellowConstants.h" #include #include using tt::hal::sdcard::SpiSdCardDevice; std::shared_ptr createYellowSdCard() { auto* configuration = new SpiSdCardDevice::Config( SDCARD_PIN_CS, GPIO_NUM_NC, GPIO_NUM_NC, GPIO_NUM_NC, SdCardDevice::MountBehaviour::AtBoot, std::make_shared(), std::vector(), SDCARD_SPI_HOST ); auto* sdcard = (SdCardDevice*) new SpiSdCardDevice( std::unique_ptr(configuration) ); return std::shared_ptr(sdcard); }