drv_dma.h 588 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-03-02 FMD-AE first version
  9. */
  10. #ifndef __DRV_DMA_H_
  11. #define __DRV_DMA_H_
  12. #include <rtthread.h>
  13. #include <board.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #if defined(SOC_SERIES_FT32F0)
  18. #define DMA_INSTANCE_TYPE DMA_Channel_TypeDef
  19. #endif
  20. struct dma_config {
  21. DMA_INSTANCE_TYPE *Instance;
  22. rt_uint32_t dma_rcc;
  23. IRQn_Type dma_irq;
  24. };
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /*__DRV_DMA_H_ */