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  * 2018-12-13     BalanceTWK   first version
9  */
10 
11 #ifndef __SDIO_CONFIG_H__
12 #define __SDIO_CONFIG_H__
13 
14 #include <rtthread.h>
15 #include "stm32f2xx_hal.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #ifdef BSP_USING_SDIO
22 #define SDIO_BUS_CONFIG                                  \
23     {                                                    \
24         .Instance = SDIO,                                \
25         .dma_rx.dma_rcc = RCC_AHB1ENR_DMA2EN,            \
26         .dma_tx.dma_rcc = RCC_AHB1ENR_DMA2EN,            \
27         .dma_rx.Instance = DMA2_Stream3,                 \
28         .dma_rx.channel = DMA_CHANNEL_4,                 \
29         .dma_rx.dma_irq = DMA2_Stream3_IRQn,             \
30         .dma_tx.Instance = DMA2_Stream6,                 \
31         .dma_tx.channel = DMA_CHANNEL_4,                 \
32         .dma_tx.dma_irq = DMA2_Stream6_IRQn,             \
33     }
34 
35 #endif
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /*__SDIO_CONFIG_H__ */
42 
43 
44 
45