ESP32-P4 OBC Firmware
ESP-IDF firmware for Plant-B CubeSat OBC
 
Loading...
Searching...
No Matches
sd_card_utils.h
Go to the documentation of this file.
1
27
28#ifndef __SD_CARD_UTILS_H__
29#define __SD_CARD_UTILS_H__
30
31#include "sd_pwr_ctrl_by_on_chip_ldo.h"
32#include "sd_protocol_defs.h"
33#include "driver/sdmmc_host.h"
34#include "sdmmc_cmd.h"
35#include "esp_littlefs.h"
36#include "pal_log.h"
37#include "pal_err.h"
38
49
53#define SD_PWR_CTRL_LDO_IO_ID (4)
54#define GPIO_UNUSED (-1)
55#define SD_CARD_MOUNT_PATH ("/littlefs")
56#define SD_CARD_BUS_WIDTH (4)
57#define BYTE_DIV (8)
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
64
91
111void sd_card_log_info(const sdmmc_card_t* card);
112
125
126#ifdef __cplusplus
127}
128#endif
129 // end of sd_card_utils group
131
132#endif // __SD_CARD_UTILS_H__
133
pal_err_t unmount_sd_card(void)
Unmount the SD card and release associated resources.
Definition sd_card_utils.c:226
pal_err_t mount_sd_card(void)
Mount the SD card with LittleFS.
Definition sd_card_utils.c:35
void sd_card_log_info(const sdmmc_card_t *card)
Log information about a mounted SD card.
int pal_err_t
Definition pal_err.h:9