1
0

drv_dma.h 490 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @file drv_dma.h
  3. * @author 100ask development team
  4. * @brief
  5. * @version 0.1
  6. * @date 2022-06-16
  7. *
  8. * @copyright Copyright (c) 2022 Chongqing 100ASK Technology Co., LTD
  9. *
  10. */
  11. #ifndef __DRV_DMA_H_
  12. #define __DRV_DMA_H_
  13. #include <rtthread.h>
  14. #include "drv_common.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. struct dma_config {
  19. DMA_Type *dma_port;
  20. rt_uint32_t dma_req;
  21. IRQn_Type dma_irq;
  22. rt_uint32_t dma_rcc;
  23. };
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /*__DRV_DMA_H_ */