Added screenshot mode config and updated copyright docs (#126)
This commit is contained in:
committed by
GitHub
parent
07f45b8fb0
commit
100c24f6a3
@@ -0,0 +1,26 @@
|
||||
#include "Tactility.h"
|
||||
#include "hal/sdcard/Sdcard.h"
|
||||
|
||||
static uint32_t fake_handle = 0;
|
||||
|
||||
static void* _Nullable sdcard_mount(TT_UNUSED const char* mount_point) {
|
||||
return &fake_handle;
|
||||
}
|
||||
|
||||
static void* sdcard_init_and_mount(TT_UNUSED const char* mount_point) {
|
||||
return &fake_handle;
|
||||
}
|
||||
|
||||
static void sdcard_unmount(TT_UNUSED void* context) {
|
||||
}
|
||||
|
||||
static bool sdcard_is_mounted(TT_UNUSED void* context) {
|
||||
return TT_SCREENSHOT_MODE;
|
||||
}
|
||||
|
||||
extern const tt::hal::sdcard::SdCard simulatorSdcard = {
|
||||
.mount = &sdcard_init_and_mount,
|
||||
.unmount = &sdcard_unmount,
|
||||
.is_mounted = &sdcard_is_mounted,
|
||||
.mount_behaviour = tt::hal::sdcard::MountBehaviourAtBoot
|
||||
};
|
||||
Reference in New Issue
Block a user