Skip to content

Commit 2a97c68

Browse files
Manikanta GuntupalliSiva Addepalli
authored andcommitted
uartps: Fix xuartps_intr_example compilation errors in SDT flow
Add SDT checks in xuartps_intr_example to fix compilation errors in SDT flow. Signed-off-by: Manikanta Guntupalli <[email protected]> Acked-by: Srinivas Goud <[email protected]>
1 parent 0c8b60b commit 2a97c68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@
5050
#include "xinterrupt_wrap.h"
5151
#endif
5252

53+
#ifndef SDT
5354
#ifdef XPAR_INTC_0_DEVICE_ID
5455
#include "xintc.h"
5556
#else
5657
#include "xscugic.h"
5758
#endif
59+
#endif
5860
/************************** Constant Definitions **************************/
5961

6062
/*
@@ -68,6 +70,7 @@
6870
#define XUARTPS_BASEADDRESS XPAR_XUARTPS_0_BASEADDR
6971
#endif
7072

73+
#ifndef SDT
7174
#ifdef XPAR_INTC_0_DEVICE_ID
7275
#define INTC XIntc
7376

@@ -78,6 +81,7 @@
7881
#define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
7982
#define UART_INT_IRQ_ID XPAR_XUARTPS_1_INTR
8083
#endif
84+
#endif
8185
/*
8286
* The following constant controls the length of the buffers to be sent
8387
* and received with the UART,
@@ -108,7 +112,9 @@ void Handler(void *CallBackRef, u32 Event, unsigned int EventData);
108112
/************************** Variable Definitions ***************************/
109113

110114
XUartPs UartPs ; /* Instance of the UART Device */
115+
#ifndef SDT
111116
INTC InterruptController; /* Instance of the Interrupt Controller */
117+
#endif
112118

113119
/*
114120
* The following buffers are used in this example to send and receive data

0 commit comments

Comments
 (0)