#include <sys/unistd.h>
#include <sys/stat.h>
#include <dirent.h>
#include "esp_vfs_fat.h"
#include "sdmmc_cmd.h"
#include "driver/i2c.h"
#include "sd_pwr_ctrl_by_on_chip_ldo.h"
#include "tinyusb.h"
#include "tinyusb_msc.h"
#include <string.h>
#include "bsp/esp32_p4_nano.h"
#include "kest_int.h"
Go to the source code of this file.
◆ MAX_PARALLEL_FILES
| #define MAX_PARALLEL_FILES 12 |
◆ init_sd_card()
◆ kest_sd_mode_local()
| int kest_sd_mode_local |
( |
| ) |
|
◆ kest_sd_mode_msc()
◆ kest_sd_toggle_msc()
| int kest_sd_toggle_msc |
( |
| ) |
|
◆ card
| sdmmc_card_t* card = &card_obj |
◆ host
| sdmmc_host_t host = SDMMC_HOST_DEFAULT() |
◆ mount_config
| esp_vfs_fat_sdmmc_mount_config_t mount_config |
Initial value:= {
.format_if_mount_failed = false,
.max_files = 5,
.allocation_unit_size = 16 * 1024
}
Definition at line 29 of file kest_sd.c.
◆ mount_point
◆ mount_point_strlen
◆ msc_drv_cfg
| tinyusb_msc_driver_config_t msc_drv_cfg |
Initial value:= {
.user_flags.auto_mount_off = 1,
}
Definition at line 46 of file kest_sd.c.
◆ sd_msc_mode
◆ sd_mutex
| SemaphoreHandle_t sd_mutex |
◆ slot_config
| sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT() |
◆ storage_cfg
| tinyusb_msc_storage_config_t storage_cfg |
Initial value:= {
.mount_point = TINYUSB_MSC_STORAGE_MOUNT_APP,
}
Definition at line 50 of file kest_sd.c.
◆ storage_handle
| tinyusb_msc_storage_handle_t storage_handle |
◆ tusb_cfg
| tinyusb_config_t tusb_cfg |
Initial value:= {
.task = {
.size = 4096,
.priority = 5,
.xCoreID = 0,
},
}
Definition at line 38 of file kest_sd.c.