2021-10-03 13:36:05 +03:00
|
|
|
/**
|
|
|
|
* @file furi-hal-sd.h
|
|
|
|
* SD Card HAL API
|
|
|
|
*/
|
|
|
|
|
2021-03-09 14:53:33 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-10-03 13:36:05 +03:00
|
|
|
/** Init SD card detect
|
|
|
|
*/
|
2021-03-09 14:53:33 +03:00
|
|
|
void hal_sd_detect_init(void);
|
|
|
|
|
2021-10-03 13:36:05 +03:00
|
|
|
/** Set SD card detect pin to low
|
|
|
|
*/
|
2021-03-09 14:53:33 +03:00
|
|
|
void hal_sd_detect_set_low(void);
|
|
|
|
|
2021-10-03 13:36:05 +03:00
|
|
|
/** Get SD card status
|
|
|
|
*
|
|
|
|
* @return true if SD card present, false if SD card not present
|
2021-03-09 14:53:33 +03:00
|
|
|
*/
|
|
|
|
bool hal_sd_detect(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2021-10-03 13:36:05 +03:00
|
|
|
#endif
|