ZDMA: Modified ZDMA simple transfer example
Hardcoded address for pointers are changed to arrays. Signed-off-by: VNSL Durga <vnsldurg@xilinx.com> Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
This commit is contained in:
parent
5e98df225c
commit
c1cecfadc7
1 changed files with 3 additions and 2 deletions
|
@ -43,6 +43,7 @@
|
|||
* Ver Who Date Changes
|
||||
* ----- ------ -------- ------------------------------------------------------
|
||||
* 1.0 vns 2/27/15 First release
|
||||
* vns 10/13/15 Declared static array rather than hard code memory.
|
||||
* </pre>
|
||||
*
|
||||
******************************************************************************/
|
||||
|
@ -84,8 +85,8 @@ static void DoneHandler(void *CallBackRef);
|
|||
XZDma ZDma; /**<Instance of the ZDMA Device */
|
||||
XScuGic Intc; /**< XIntc Instance */
|
||||
|
||||
u32 *DstBuf = (u32 *)0x3C000000; /**< Pointer to destination buffer */
|
||||
u32 *SrcBuf = (u32 *)0x00200000; /**< Pointer to source buffer */
|
||||
u8 DstBuf[SIZE] __attribute__ ((aligned (64))); /**< Destination buffer */
|
||||
u8 SrcBuf[SIZE] __attribute__ ((aligned (64))); /**< Source buffer */
|
||||
|
||||
u8 Done = 0; /**< Done flag */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue