2021-03-09 11:53:33 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-03-24 09:35:33 +00:00
|
|
|
/** Init SD card detect */
|
2021-03-09 11:53:33 +00:00
|
|
|
void hal_sd_detect_init(void);
|
|
|
|
|
2021-03-24 09:35:33 +00:00
|
|
|
/** Set SD card detect pin to low */
|
2021-03-09 11:53:33 +00:00
|
|
|
void hal_sd_detect_set_low(void);
|
|
|
|
|
|
|
|
/**
|
2021-03-24 09:35:33 +00:00
|
|
|
* Get SD card status
|
2021-03-09 11:53:33 +00:00
|
|
|
* @return true if SD card present
|
|
|
|
* @return false if SD card not present
|
|
|
|
*/
|
|
|
|
bool hal_sd_detect(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|