22 #define DBGPIO_START(x) 26 #define MEMCPY_DCACHE_CLEAN(dst, src, size) \ 27 memcpy((void*)(dst), (const void*)(src), (size)); \ 28 DBGPIO_START(DBG_TX_DCACHE_CLEAN_PIN); \ 29 SCB_CLEAN_DCACHE_BY_ADDR_32BYTE_ALIGNED((dst), (size)); \ 30 DBGPIO_END(DBG_TX_DCACHE_CLEAN_PIN); 33 #define MEMCPY_DCACHE_CLEAN_INVALIDATE(dst, src, size) \ 34 memcpy((void*)(dst), (const void*)(src), (size)); \ 35 DBGPIO_START(DBG_TX_DCACHE_CLEAN_PIN); \ 36 SCB_CLEANINVALIDATE_DCACHE_BY_ADDR_32BYTE_ALIGNED((dst), (size)); \ 37 DBGPIO_END(DBG_TX_DCACHE_CLEAN_PIN); 40 #define DCACHE_CLEAN_INVALIDATE_MEMCPY(dst, src, size) \ 41 DBGPIO_START( DBG_RX_DCACHE_CLEAN_PIN ); \ 42 SCB_CLEANINVALIDATE_DCACHE_BY_ADDR_32BYTE_ALIGNED((src), (size)); \ 43 DBGPIO_END( DBG_RX_DCACHE_CLEAN_PIN ); \ 44 memcpy((void*)(dst), (const void*)(src), (size)); 48 #ifdef ENABLE_DMA_INTERRUPTS 49 #define DMA_INT_ENABLE(_ch_) \ 50 xdmac_enable_interrupt(XDMAC, _ch_); \ 51 xdmac_channel_enable_interrupt(XDMAC, _ch_, XDMAC_CIE_BIE); 52 #define DMA_INT_DISABLE(_ch_) \ 53 xdmac_disable_interrupt(XDMAC, _ch_); \ 54 xdmac_channel_disable_interrupt(XDMAC, _ch_, XDMAC_CIE_BIE); 56 #define DMA_INT_ENABLE(_ch_) 57 #define DMA_INT_DISABLE(_ch_) 58 #endif // ENABLE_DMA_INTERRUPTS 61 #define XDMAC_PERID_SPI0_TX 1 62 #define XDMAC_PERID_SPI0_RX 2 63 #define XDMAC_PERID_SPI1_TX 3 64 #define XDMAC_PERID_SPI1_RX 4 65 #define XDMAC_PERID_USART0_TX 7 66 #define XDMAC_PERID_USART0_RX 8 67 #define XDMAC_PERID_USART1_TX 9 68 #define XDMAC_PERID_USART1_RX 10 69 #define XDMAC_PERID_USART2_TX 11 70 #define XDMAC_PERID_USART2_RX 12 71 #define XDMAC_PERID_UART0_TX 20 72 #define XDMAC_PERID_UART0_RX 21 73 #define XDMAC_PERID_UART1_TX 22 74 #define XDMAC_PERID_UART1_RX 23 75 #define XDMAC_PERID_UART2_TX 24 76 #define XDMAC_PERID_UART2_RX 25 77 #define XDMAC_PERID_UART3_TX 26 78 #define XDMAC_PERID_UART3_RX 27 79 #define XDMAC_PERID_UART4_TX 28 80 #define XDMAC_PERID_UART4_RX 29 83 #define ALIGN_32B_MASK 0xffffffe0 84 #define IS_32B_ALIGNED(_addr_) !(((uint32_t)(_addr_)) & 0x0000001f) 85 #define ALIGN_32B(_bytes_) ((_bytes_) + (sizeof(uint32_t) - ((_bytes_) % sizeof(uint32_t)))) 142 #endif // __cplusplus
void dma_chan_disable(uint32_t ch)
int dma_transfer_is_complete(uint32_t ch)
int dma_chan_enable(uint32_t ch)
Structure for storing parameters for DMA view1 that can be performed by the DMA Master transfer...
int dma_configure(dma_channel_config_t *hd, lld_view1 *lld)
xdmac_channel_config_t xdmac