furi-hal-sd.h 420 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @file furi-hal-sd.h
  3. * SD Card HAL API
  4. */
  5. #include <stdint.h>
  6. #include <stdbool.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /** Init SD card detect
  11. */
  12. void hal_sd_detect_init(void);
  13. /** Set SD card detect pin to low
  14. */
  15. void hal_sd_detect_set_low(void);
  16. /** Get SD card status
  17. *
  18. * @return true if SD card present, false if SD card not present
  19. */
  20. bool hal_sd_detect(void);
  21. #ifdef __cplusplus
  22. }
  23. #endif