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 "stm32f1xx_hal.h"
  14. #ifdef BSP_USING_SDIO
  15. #define SDIO_BUS_CONFIG \
  16. { \
  17. .Instance = SDIO, \
  18. .dma_rx.dma_rcc = RCC_AHBENR_DMA2EN, \
  19. .dma_tx.dma_rcc = RCC_AHBENR_DMA2EN, \
  20. .dma_rx.Instance = DMA2_Channel4, \
  21. .dma_rx.dma_irq = DMA2_Channel4_IRQn, \
  22. .dma_tx.Instance = DMA2_Channel4, \
  23. .dma_tx.dma_irq = DMA2_Channel4_IRQn, \
  24. }
  25. #define SPI1_DMA_RX_IRQHandler DMA2_Channel4_IRQHandler
  26. #define SPI1_DMA_TX_IRQHandler DMA2_Channel4_IRQHandler
  27. #endif
  28. #endif /*__SDIO_CONFIG_H__ */