2018-12-21 11:17:32 +08:00
|
|
|
/*
|
2021-03-08 22:40:39 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-12-21 11:17:32 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018-12-13 BalanceTWK first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SDIO_CONFIG_H__
|
|
|
|
#define __SDIO_CONFIG_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include "stm32f7xx_hal.h"
|
|
|
|
|
2019-01-09 10:10:39 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-12-21 11:17:32 +08:00
|
|
|
#ifdef BSP_USING_SDIO
|
|
|
|
#define SDIO_BUS_CONFIG \
|
|
|
|
{ \
|
2018-12-21 13:03:37 +08:00
|
|
|
.Instance = SDMMC1, \
|
2018-12-21 11:17:32 +08:00
|
|
|
.dma_rx.dma_rcc = RCC_AHB1ENR_DMA2EN, \
|
|
|
|
.dma_tx.dma_rcc = RCC_AHB1ENR_DMA2EN, \
|
|
|
|
.dma_rx.Instance = DMA2_Stream3, \
|
|
|
|
.dma_rx.channel = DMA_CHANNEL_4, \
|
|
|
|
.dma_rx.dma_irq = DMA2_Stream3_IRQn, \
|
|
|
|
.dma_tx.Instance = DMA2_Stream6, \
|
|
|
|
.dma_tx.channel = DMA_CHANNEL_4, \
|
|
|
|
.dma_tx.dma_irq = DMA2_Stream6_IRQn, \
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2019-01-09 10:10:39 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-12-21 11:17:32 +08:00
|
|
|
#endif /*__SDIO_CONFIG_H__ */
|
|
|
|
|
|
|
|
|
|
|
|
|