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 11 #ifndef __DRV_DMA_H_ 12 #define __DRV_DMA_H_ 13 14 #include <rtthread.h> 15 #include <board.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 22 #define DMA_INSTANCE_TYPE DMA_Channel_TypeDef 23 24 struct dma_config { 25 DMA_INSTANCE_TYPE *Instance; 26 rt_uint32_t dma_rcc; 27 IRQn_Type dma_irq; 28 }; 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /*__DRV_DMA_H_ */ 35