api-hal-sd.h 413 B

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