sd.h 761 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2011-07-25 weety first version
  9. */
  10. #ifndef __SD_H__
  11. #define __SD_H__
  12. #include <rtthread.h>
  13. #include <drivers/mmcsd_host.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. rt_err_t mmcsd_send_if_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr);
  18. rt_err_t mmcsd_send_app_op_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr, rt_uint32_t *rocr);
  19. rt_err_t mmcsd_get_card_addr(struct rt_mmcsd_host *host, rt_uint32_t *rca);
  20. rt_int32_t mmcsd_get_scr(struct rt_mmcsd_card *card, rt_uint32_t *scr);
  21. rt_int32_t init_sd(struct rt_mmcsd_host *host, rt_uint32_t ocr);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif