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:
@ -17,7 +17,7 @@
|
||||
#define XUARTPS_IXR_RXOVR 0x00000020U /**< Rx Overrun error interrupt */
|
||||
#define XUARTPS_IXR_RTRIG 0x00000001U /**< RX FIFO trigger interrupt. */
|
||||
|
||||
#define UART_INT_NR XPAR_XUARTPS_0_INTR
|
||||
|
||||
|
||||
// #include <lwip/apps/tftp_server.h>
|
||||
|
||||
@ -195,7 +195,7 @@ void testIp() {
|
||||
|
||||
/* Install the UART Interrupt handler. */
|
||||
BaseType_t xStatus =
|
||||
XScuGic_Connect(&xInterruptController, UART_INT_NR,
|
||||
XScuGic_Connect(&xInterruptController, STDIN_INT_NR,
|
||||
(Xil_ExceptionHandler)handleUARTInt, NULL);
|
||||
configASSERT(xStatus == XST_SUCCESS);
|
||||
(void)xStatus; /* Remove compiler warning if configASSERT() is not defined. */
|
||||
@ -215,7 +215,7 @@ void testIp() {
|
||||
XUartPs_WriteReg(STDIN_BASEADDRESS, XUARTPS_IDR_OFFSET, (~mask));
|
||||
|
||||
/* Enable the interrupt for the UART1 in the interrupt controller. */
|
||||
XScuGic_Enable(&xInterruptController, UART_INT_NR);
|
||||
XScuGic_Enable(&xInterruptController, STDIN_INT_NR);
|
||||
|
||||
// Start lwip task
|
||||
xTaskCreateStatic(
|
||||
|
Reference in New Issue
Block a user