I am using two uarts on the Zynq Processing system. In my hardware design, One of the UARTs "UART1" is connected to MIO for debugging purpose. The other UART "UART0" is connected to MicroBlaze UART via EMIO. My problem is when I am looking the UART0 in the xparameters.h file, there is no device ID for the UART0. The following is a xparameters.h file inside for UARTs.
/* Definitions for driver UARTPS */
#define XPAR_XUARTPS_NUM_INSTANCES 1
/* Definitions for peripheral PS7_UART_1 */
#define XPAR_PS7_UART_1_DEVICE_ID 0
#define XPAR_PS7_UART_1_BASEADDR 0xE0001000
#define XPAR_PS7_UART_1_HIGHADDR 0xE0001FFF
#define XPAR_PS7_UART_1_UART_CLK_FREQ_HZ 50000000
#define XPAR_PS7_UART_1_HAS_MODEM 0
/******************************************************************/
/* Canonical definitions for peripheral PS7_UART_1 */
#define XPAR_XUARTPS_0_DEVICE_ID XPAR_PS7_UART_1_DEVICE_ID
#define XPAR_XUARTPS_0_BASEADDR 0xE0001000
#define XPAR_XUARTPS_0_HIGHADDR 0xE0001FFF
#define XPAR_XUARTPS_0_UART_CLK_FREQ_HZ 50000000
#define XPAR_XUARTPS_0_HAS_MODEM 0
The device ID is only defined for the UART1. I am little confused from the output, could anybody tell me, which device ID, I have to use in writing application function for uart0.
Any help is highly appreciated.
Regards
Fayyaz