drv_dma.h 788 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2020, Huada Semiconductor Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-10-30 CDT first version
  9. */
  10. #ifndef __DRV_DMA_H__
  11. #define __DRV_DMA_H__
  12. /*******************************************************************************
  13. * Include files
  14. ******************************************************************************/
  15. #include <rtthread.h>
  16. #include "hc32_ddl.h"
  17. #include "drv_irq.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. struct dma_config {
  22. M4_DMA_TypeDef *Instance;
  23. rt_uint32_t channel;
  24. en_event_src_t trigger_evt_src;
  25. struct hc32_irq_config irq_config;
  26. };
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* __DRV_DMA_H__ */