xref: /nrf52832-nimble/rt-thread/components/drivers/include/drivers/sd.h (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, 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 
11 #ifndef __SD_H__
12 #define __SD_H__
13 
14 #include <rtthread.h>
15 #include <drivers/mmcsd_host.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 rt_err_t mmcsd_send_if_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr);
22 rt_err_t mmcsd_send_app_op_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr, rt_uint32_t *rocr);
23 
24 rt_err_t mmcsd_get_card_addr(struct rt_mmcsd_host *host, rt_uint32_t *rca);
25 rt_int32_t mmcsd_get_scr(struct rt_mmcsd_card *card, rt_uint32_t *scr);
26 
27 rt_int32_t init_sd(struct rt_mmcsd_host *host, rt_uint32_t ocr);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif
34