From 83f6fe1f770fab3a0c770ce92e58e6800d11d4f1 Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Mon, 26 Jan 2015 00:00:04 -0800 Subject: [PATCH] dp: rx: example: Set up handlers after core configuration has complete. Since the RX handler initialization functions assert that the core is of type RX, the configuration initialization function must be called prior to the handlers being set. Signed-off-by: Andrei-Liviu Simion --- .../drivers/dp/examples/xdp_rx_intr_timer_example.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/dp/examples/xdp_rx_intr_timer_example.c b/XilinxProcessorIPLib/drivers/dp/examples/xdp_rx_intr_timer_example.c index 8394539c..3183db08 100644 --- a/XilinxProcessorIPLib/drivers/dp/examples/xdp_rx_intr_timer_example.c +++ b/XilinxProcessorIPLib/drivers/dp/examples/xdp_rx_intr_timer_example.c @@ -207,6 +207,11 @@ u32 Dprx_IntrTimerExample(XDp *InstancePtr, u16 DeviceId, INTC *IntcPtr, Dprx_PlatformInit(InstancePtr); /*******************/ + Status = Dprx_SetupExample(InstancePtr, DeviceId); + if (Status != XST_SUCCESS) { + return XST_FAILURE; + } + /* Set a custom timer handler for improved delay accuracy on MicroBlaze * systems since the driver does not assume/have a dependency on the * system having a timer in the FPGA. @@ -223,11 +228,6 @@ u32 Dprx_IntrTimerExample(XDp *InstancePtr, u16 DeviceId, INTC *IntcPtr, return XST_FAILURE; } - Status = Dprx_SetupExample(InstancePtr, DeviceId); - if (Status != XST_SUCCESS) { - return XST_FAILURE; - } - /* Do not return in order to allow interrupt handling to run. */ while (1);