drv_dma.h 551 B

12345678910111213141516171819202122232425262728293031323334
  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-02-22 airm2m 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. #define DMA_INSTANCE_TYPE DMA_Channel_TypeDef
  18. struct dma_config {
  19. DMA_INSTANCE_TYPE *Instance;
  20. rt_uint32_t dma_rcc;
  21. IRQn_Type dma_irq;
  22. };
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /*__DRV_DMA_H_ */