TB2026-YDS Firmware
Toggle main menu visibility
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
42
esp_err_t
sdcard_mount
(
void
);
43
53
esp_err_t
sdcard_unmount
(
void
);
54
63
bool
sdcard_present
(
void
);
64
73
int
sdcard_freq_khz
(
void
);
74
sdcard_present
bool sdcard_present(void)
Report whether a card is physically inserted (synchronous read of PIN_SD_DETECT).
Definition
sdcard.c:104
sdcard_freq_khz
int sdcard_freq_khz(void)
Actual SPI clock negotiated with the card by the host, in kHz.
Definition
sdcard.c:99
sdcard_mount
esp_err_t sdcard_mount(void)
Initialize SPI3, attach the card via sdspi, and mount the FAT volume.
Definition
sdcard.c:35
sdcard_unmount
esp_err_t sdcard_unmount(void)
Unmount the FAT volume and detach the sdspi device.
Definition
sdcard.c:88
components
drivers
sdcard
sdcard.h
Generated by
1.17.0