From 8387de40a66a0b854ef85e2c27d118ad2ecac2d9 Mon Sep 17 00:00:00 2001 From: VNSL Durga Date: Fri, 30 Jan 2015 13:00:35 +0530 Subject: [PATCH] csudma_v1_0: Modified macros Moacros are modified according to xparameters.h and added index.html file in examples folder. Signed-off-by: VNSL Durga --- .../drivers/csudma/examples/index.html | 23 +++++++++++++++++++ .../csudma/examples/xcsudma_intr_example.c | 2 +- .../csudma/examples/xcsudma_polled_example.c | 2 +- .../examples/xcsudma_selftest_example.c | 2 +- 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 XilinxProcessorIPLib/drivers/csudma/examples/index.html diff --git a/XilinxProcessorIPLib/drivers/csudma/examples/index.html b/XilinxProcessorIPLib/drivers/csudma/examples/index.html new file mode 100644 index 00000000..5c7bd5d1 --- /dev/null +++ b/XilinxProcessorIPLib/drivers/csudma/examples/index.html @@ -0,0 +1,23 @@ + + + + + +Driver example applications + + + +

Example Applications for the driver csudma_v1_0

+
+ + + +

Copyright � 1995-2014 Xilinx, Inc. All rights reserved.

+ + diff --git a/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_intr_example.c b/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_intr_example.c index 168d8da2..cd05a671 100644 --- a/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_intr_example.c +++ b/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_intr_example.c @@ -67,7 +67,7 @@ * xparameters.h file. They are defined here such that a user can easily * change all the needed parameters in one place. */ -#define CSUDMA_DEVICE_ID 0//XPAR_XCSUDMA_0_DEVICE_ID /* CSU DMA device Id */ +#define CSUDMA_DEVICE_ID XPAR_XCSUDMA_0_DEVICE_ID /* CSU DMA device Id */ #define INTG_INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID #define INTG_CSUDMA_INTR_DEVICE_ID 102+32 /**< Interrupt device ID * of CSU DMA device ID */ diff --git a/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_polled_example.c b/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_polled_example.c index 58795b48..73025b76 100644 --- a/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_polled_example.c +++ b/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_polled_example.c @@ -62,7 +62,7 @@ * xparameters.h file. They are defined here such that a user can easily * change all the needed parameters in one place. */ -#define CSUDMA_DEVICE_ID 0//XPAR_XCSUDMA_0_DEVICE_ID /* CSU DMA device Id */ +#define CSUDMA_DEVICE_ID XPAR_XCSUDMA_0_DEVICE_ID /* CSU DMA device Id */ #define CSU_SSS_CONFIG_OFFSET 0x008 /**< CSU SSS_CFG Offset */ #define CSUDMA_LOOPBACK_CFG 0x00000050 /**< LOOP BACK configuration * macro */ diff --git a/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_selftest_example.c b/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_selftest_example.c index d6b3d172..92e7f3bf 100644 --- a/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_selftest_example.c +++ b/XilinxProcessorIPLib/drivers/csudma/examples/xcsudma_selftest_example.c @@ -60,7 +60,7 @@ * xparameters.h file. They are defined here such that a user can easily * change all the needed parameters in one place. */ -#define CSUDMA_DEVICE_ID 0//XPAR_XCSUDMA_0_DEVICE_ID /* CSU DMA device Id */ +#define CSUDMA_DEVICE_ID XPAR_XCSUDMA_0_DEVICE_ID /* CSU DMA device Id */ /**************************** Type Definitions *******************************/