Defines | |
| #define | DMA_TRANSFER(_dst, _src, count, ch, mode) |
| General purpose DMA transfer macro. | |
Functions | |
| INLINE void | dma_cpy (void *dst, const void *src, uint count, uint ch, u32 mode) |
| Generic DMA copy routine. | |
| INLINE void | dma_fill (void *dst, volatile u32 src, uint count, uint ch, u32 mode) |
| Generic DMA fill routine. | |
| INLINE void | dma3_cpy (void *dst, const void *src, uint size) |
| Specific DMA copier, using channel 3, word transfers. | |
| INLINE void | dma3_fill (void *dst, volatile u32 src, uint size) |
| Specific DMA filler, using channel 3, word transfers. | |
| #define DMA_TRANSFER | ( | _dst, | |||
| _src, | |||||
| count, | |||||
| ch, | |||||
| mode | ) |
Value:
do { \ REG_DMA[ch].cnt= 0; \ REG_DMA[ch].src= (const void*)(_src); \ REG_DMA[ch].dst= (void*)(_dst); \ REG_DMA[ch].cnt= (count) | (mode); \ } while(0)
| _dst | Destination address. | |
| _src | Source address. | |
| count | Number of transfers. | |
| ch | DMA channel. | |
| mode | DMA mode. |
| INLINE void dma3_cpy | ( | void * | dst, | |
| const void * | src, | |||
| uint | size | |||
| ) |
Specific DMA copier, using channel 3, word transfers.
| dst | Destination address. | |
| src | Source address. | |
| size | Number of bytes to copy |
| INLINE void dma3_fill | ( | void * | dst, | |
| volatile u32 | src, | |||
| uint | size | |||
| ) |
Specific DMA filler, using channel 3, word transfers.
| dst | Destination address. | |
| src | Source value. | |
| size | Number of bytes to copy |
| INLINE void dma_cpy | ( | void * | dst, | |
| const void * | src, | |||
| uint | count, | |||
| uint | ch, | |||
| u32 | mode | |||
| ) |
Generic DMA copy routine.
| dst | Destination address. | |
| src | Source address. | |
| count | Number of copies to perform. | |
| ch | DMA channel. | |
| mode | DMA transfer mode. |
| INLINE void dma_fill | ( | void * | dst, | |
| volatile u32 | src, | |||
| uint | count, | |||
| uint | ch, | |||
| u32 | mode | |||
| ) |
Generic DMA fill routine.
| dst | Destination address. | |
| src | Source value. | |
| count | Number of copies to perform. | |
| ch | DMA channel. | |
| mode | DMA transfer mode. |
1.5.3