sd.h 485 B

1234567891011121314151617181920212223
  1. #ifndef _SD_H
  2. #define _SD_H
  3. #include "FreeRTOS.h"
  4. #include "mmcsd_host.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. int mmcsd_send_if_cond(struct mmcsd_host *host, uint32_t ocr);
  9. int mmcsd_send_app_op_cond(struct mmcsd_host *host, uint32_t ocr, uint32_t *rocr);
  10. int mmcsd_get_card_addr(struct mmcsd_host *host, uint32_t *rca);
  11. int32_t mmcsd_get_scr(struct mmcsd_card *card, uint32_t *scr);
  12. int32_t init_sd(struct mmcsd_host *host, uint32_t ocr);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif