diff --git a/XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c b/XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c index 20bb8423..131b1b5e 100755 --- a/XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c +++ b/XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c @@ -228,7 +228,7 @@ int UartPsIntrExample(XScuGic *IntcInstPtr, XUartPs *UartInstPtr, * a pointer to the UART driver instance as the callback reference * so the handlers are able to access the instance data */ - XUartPs_SetHandler(UartInstPtr, Handler, UartInstPtr); + XUartPs_SetHandler(UartInstPtr, (XUartPs_Handler)Handler, UartInstPtr); /* * Enable the interrupt of the UART so interrupts will occur, setup