api-hal-sd.h 372 B

1234567891011121314151617181920212223
  1. #include <stdint.h>
  2. #include <stdbool.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /** Init SD card detect */
  7. void hal_sd_detect_init(void);
  8. /** Set SD card detect pin to low */
  9. void hal_sd_detect_set_low(void);
  10. /**
  11. * Get SD card status
  12. * @return true if SD card present
  13. * @return false if SD card not present
  14. */
  15. bool hal_sd_detect(void);
  16. #ifdef __cplusplus
  17. }
  18. #endif