TB2026-YDS Firmware
Loading...
Searching...
No Matches
sdcard.h
Go to the documentation of this file.
1
17#pragma once
18
19#include "esp_err.h"
20#include <stdbool.h>
21
28
30#define SDCARD_MOUNT_POINT "/sdcard"
31
42esp_err_t sdcard_mount(void);
43
53esp_err_t sdcard_unmount(void);
54
63bool sdcard_present(void);
64
73int sdcard_freq_khz(void);
74
bool sdcard_present(void)
Report whether a card is physically inserted (synchronous read of PIN_SD_DETECT).
Definition sdcard.c:104
int sdcard_freq_khz(void)
Actual SPI clock negotiated with the card by the host, in kHz.
Definition sdcard.c:99
esp_err_t sdcard_mount(void)
Initialize SPI3, attach the card via sdspi, and mount the FAT volume.
Definition sdcard.c:35
esp_err_t sdcard_unmount(void)
Unmount the FAT volume and detach the sdspi device.
Definition sdcard.c:88