2020-03-17 22:11:13 +08:00
|
|
|
/*
|
2021-03-08 22:40:39 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2020-03-17 22:11:13 +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 "stm32l1xx_hal.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_SDIO
|
|
|
|
#define SDIO_BUS_CONFIG \
|
|
|
|
{ \
|
|
|
|
.Instance = SDIO, \
|
|
|
|
.dma_rx.dma_rcc = RCC_AHBENR_DMA2EN, \
|
|
|
|
.dma_tx.dma_rcc = RCC_AHBENR_DMA2EN, \
|
|
|
|
.dma_rx.Instance = DMA2_Channel4, \
|
|
|
|
.dma_rx.dma_irq = DMA2_Channel4_IRQn, \
|
|
|
|
.dma_tx.Instance = DMA2_Channel4, \
|
|
|
|
.dma_tx.dma_irq = DMA2_Channel4_IRQn, \
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*__SDIO_CONFIG_H__ */
|
|
|
|
|
|
|
|
|
|
|
|
|