sdio_config.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. * 2018-12-13 BalanceTWK first version
  9. */
  10. #ifndef __SDIO_CONFIG_H__
  11. #define __SDIO_CONFIG_H__
  12. #include <rtthread.h>
  13. #include "stm32f7xx_hal.h"
  14. #ifdef BSP_USING_SDIO
  15. #define SDIO_BUS_CONFIG \
  16. { \
  17. .Instance = SDMMC1, \
  18. .dma_rx.dma_rcc = RCC_AHB1ENR_DMA2EN, \
  19. .dma_tx.dma_rcc = RCC_AHB1ENR_DMA2EN, \
  20. .dma_rx.Instance = DMA2_Stream3, \
  21. .dma_rx.channel = DMA_CHANNEL_4, \
  22. .dma_rx.dma_irq = DMA2_Stream3_IRQn, \
  23. .dma_tx.Instance = DMA2_Stream6, \
  24. .dma_tx.channel = DMA_CHANNEL_4, \
  25. .dma_tx.dma_irq = DMA2_Stream6_IRQn, \
  26. }
  27. #endif
  28. #endif /*__SDIO_CONFIG_H__ */