mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
23 lines
570 B
C++
23 lines
570 B
C++
#include "SdCard.h"
|
|
|
|
#include <Tactility/lvgl/LvglSync.h>
|
|
#include <Tactility/hal/sdcard/SdmmcDevice.h>
|
|
|
|
using tt::hal::sdcard::SdmmcDevice;
|
|
|
|
std::shared_ptr<SdCardDevice> createSdCard() {
|
|
auto configuration = std::make_unique<SdmmcDevice::Config>(
|
|
GPIO_NUM_36, //CLK
|
|
GPIO_NUM_35, //CMD
|
|
GPIO_NUM_37, //D0
|
|
GPIO_NUM_33, //D1
|
|
GPIO_NUM_38, //D2
|
|
GPIO_NUM_34, //D3
|
|
SdCardDevice::MountBehaviour::AtBoot
|
|
);
|
|
|
|
return std::make_shared<SdmmcDevice>(
|
|
std::move(configuration)
|
|
);
|
|
}
|