M5Stack sdcard cleanup (#72)

This commit is contained in:
Ken Van Hoeylandt 2024-11-07 23:34:45 +01:00 committed by GitHub
parent 67b9fc710a
commit 369180cb5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,14 @@
#include "m5stack_cores3.h"
#include "m5stack_shared.h"
extern const SdCard m5stack_cores3_sdcard;
const HardwareConfig m5stack_cores3 = {
.bootstrap = &m5stack_bootstrap,
.display = {
.set_backlight_duty = NULL
},
.init_graphics = &m5stack_lvgl_init,
.sdcard = &m5stack_sdcard,
.sdcard = &m5stack_cores3_sdcard,
.power = &m5stack_power
};

View File

@ -71,7 +71,7 @@ static bool sdcard_is_mounted(void* context) {
return (data != NULL) && (sdmmc_get_status(data->card) == ESP_OK);
}
const SdCard m5stack_sdcard = {
const SdCard m5stack_cores3_sdcard = {
.mount = &sdcard_mount,
.unmount = &sdcard_unmount,
.is_mounted = &sdcard_is_mounted,

View File

@ -11,7 +11,6 @@ extern bool m5stack_lvgl_init();
extern bool m5stack_bootstrap();
extern Power m5stack_power;
extern const SdCard m5stack_sdcard;
#ifdef __cplusplus
}