📄 chain_dma0-config.c
字号:
/*********************************************************************************
Copyright(c) 2004 Analog Devices, Inc. All Rights Reserved.
This software is proprietary and confidential. By using this software you agree
to the terms of the associated Analog Devices License Agreement.
***********************************************************************************
Description:
This example performs a 1-dimensional DMA operation from memory to memory (without
using the memory-to-memory system services API). This differs from normal peripheral
DMA operations because memory DMA operations require 2 channels (one to get the
source memory and one to place into the destination memory).
Memory is copied from one location in SDRAM to another SDRAM location using a chain
of buffer descriptors. Chaining buffers this way is a common method of doing DMA.
When the DMA completes successfully, the LEDs will cycle slowly. If there is an
error anywhere, all the LEDs will light up.
You can adjust the number of BUFFERS, the number of ELEMENTS in each buffer, and the
number of BYTES_PER_ELEMENT below. Keep in mind that you can easily go beyond
the amount of SDRAM memory in the EZ-Kit.
NOTE: IN NORMAL DMA OPERATIONS, YOU WILL ONLY USE ONE CHANNEL. WE USE 2 CHANNELS
HERE BECAUSE IT'S NEEDED FOR MEMORY-TO-MEMORY DMA. There is a separate (and much
simpler) API for doing memory-to-memory DMA. This is just an example.
$RCSfile: chained_DMA.c,v $
$Revision: 1.4 $
$Data: $
Revision History:
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -