Welcome to mirror list, hosted at ThFree Co, Russian Federation.

furi-hal-sd.h « furi-hal-include « targets « firmware - github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9399726e12c8b717d515a13782212c5c83841a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * @file furi-hal-sd.h
 * SD Card HAL API
 */

#include <stdint.h>
#include <stdbool.h>
#include <furi-hal-spi-types.h>

#ifdef __cplusplus
extern "C" {
#endif

/** Init SD card detect
 */
void hal_sd_detect_init(void);

/** Set SD card detect pin to low
 */
void hal_sd_detect_set_low(void);

/** Get SD card status
 *
 * @return     true if SD card present, false if SD card not present
 */
bool hal_sd_detect(void);

/** Pointer to currently used SPI Handle */
extern FuriHalSpiBusHandle* furi_hal_sd_spi_handle;

#ifdef __cplusplus
}
#endif