mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 03:33:08 +00:00
30 lines
413 B
C
30 lines
413 B
C
|
#include <stdint.h>
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/**
|
||
|
* @brief Init SD card detect
|
||
|
*
|
||
|
*/
|
||
|
void hal_sd_detect_init(void);
|
||
|
|
||
|
/**
|
||
|
* @brief Set SD card detect pin to low
|
||
|
*
|
||
|
*/
|
||
|
void hal_sd_detect_set_low(void);
|
||
|
|
||
|
/**
|
||
|
* @brief Get SD card status
|
||
|
*
|
||
|
* @return true if SD card present
|
||
|
* @return false if SD card not present
|
||
|
*/
|
||
|
bool hal_sd_detect(void);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|