/* File Name : yc_dma.h Author : Yichip Version : V1.0 Date : 2018/03/27 Description : DMA Mem_TO_Mem Mode encapsulation. If enable DMA interrupt ,enter interrupt after sending data by default,and just one DMA IT Mode. */ #ifndef __YC_DMA_H_ #define __YC_DMA_H_ #include "yc3121.h" #define DMACH_QSPI 0 #define DMA_ENABLE_BIT_Pos 7 #define DMA_ENABLE ((uint8_t)1 << DMA_ENABLE_BIT_Pos) #define DMA_IT_BIT_Pos 1 #define DMA_IT_ENABLE ((uint32_t)1 << DMA_IT_BIT_Pos) /*Peripheral DMA Channel*/ typedef struct { uint32_t DMA_MemorySourceAddr; /*!< Specifies the memory Source address for Channel Mem_to_Mem. */ uint32_t DMA_MemoryDestAddr; /*!