forked from ROMEO/obsw
CMake Update
- Project name is now romeo-obsw - ZYNQ_UART selects which Zynq PS UART is used for stdio
This commit is contained in:
@ -23,9 +23,16 @@
|
||||
|
||||
#include "xparameters_ps.h"
|
||||
|
||||
|
||||
// Default is for Zedboard
|
||||
#ifndef ZYNQ_USE_UART0
|
||||
#define STDIN_BASEADDRESS XPS_UART1_BASEADDR
|
||||
#define STDIN_INT_NR XPAR_XUARTPS_1_INTR
|
||||
#define STDOUT_BASEADDRESS XPS_UART1_BASEADDR
|
||||
#else
|
||||
#define STDIN_BASEADDRESS XPS_UART0_BASEADDR
|
||||
#define STDIN_INT_NR XPAR_XUARTPS_0_INTR
|
||||
#define STDOUT_BASEADDRESS XPS_UART0_BASEADDR
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************/
|
||||
|
Reference in New Issue
Block a user