sdio_config.h 910 B

12345678910111213141516171819202122232425262728293031323334
  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. #endif
  26. #endif /*__SDIO_CONFIG_H__ */