drv_sd.h 803 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-07-19 Magicoe The first version for LPC55S6x
  9. */
  10. #ifndef __DRV_SD_H__
  11. #define __DRV_SD_H__
  12. #include <rtthread.h>
  13. #include "rtdef.h"
  14. struct mci_device
  15. {
  16. struct rt_device parent; /**< RT-Thread device struct */
  17. struct rt_device_blk_geometry geometry; /**< sector size, sector count */
  18. sd_card_t card; /**< Card descriptor */
  19. rt_event_t finish_event; /**< data send finish event*/
  20. rt_bool_t data_error; /**< data send error*/
  21. struct rt_mutex lock;
  22. };
  23. extern int rt_hw_mci_init(void);
  24. #endif // __DRV_SD_H__