Skip to content

Commit

Permalink
software/user/litepcie_util: change #ifdef CSR_UART_BASE to #ifdef CS…
Browse files Browse the repository at this point in the history
…R_UART_XOVER_RXTX_ADDR (since test is specific to Crossover UART).
  • Loading branch information
enjoy-digital committed Sep 4, 2020
1 parent 15868f0 commit 00927a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions litepcie/software/user/litepcie_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ void scratch_test(void)
close(fd);
}

#ifdef CSR_UART_BASE
#ifdef CSR_UART_XOVER_RXTX_ADDR
void uart_test(void)
{
int fd;
Expand Down Expand Up @@ -478,7 +478,7 @@ static void help(void)
"info Board information\n"
"dma_test Test DMA (loopback in FPGA)\n"
"scratch_test Test Scratch register\n"
#ifdef CSR_UART_BASE
#ifdef CSR_UART_XOVER_RXTX_ADDR
"uart_test Test CPU Crossover UART\n"
#endif
"\n"
Expand Down Expand Up @@ -532,7 +532,7 @@ int main(int argc, char **argv)
dma_test();
else if (!strcmp(cmd, "scratch_test"))
scratch_test();
#ifdef CSR_UART_BASE
#ifdef CSR_UART_XOVER_RXTX_ADDR
else if (!strcmp(cmd, "uart_test"))
uart_test();
#endif
Expand Down

0 comments on commit 00927a2

Please sign in to comment.