URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1461 |
Rev 1476 |
Line 585... |
Line 585... |
if(uart->channel)
|
if(uart->channel)
|
channel_close(uart->channel);
|
channel_close(uart->channel);
|
else
|
else
|
uart->channel = channel_init(uart->channel_str);
|
uart->channel = channel_init(uart->channel_str);
|
if(channel_open(uart->channel) < 0) {
|
if(channel_open(uart->channel) < 0) {
|
WARN ("WARNING: UART has problems with channel \"%s\".\n", uart->channel_str);
|
WARN ("WARNING: problem with channel \"%s\" detected.\n", uart->channel_str);
|
} else if (config.sim.verbose)
|
} else if (config.sim.verbose)
|
PRINTF("UART at 0x%"PRIxADDR" uses ", uart->baseaddr);
|
PRINTF("UART at 0x%"PRIxADDR" uses ", uart->baseaddr);
|
} else {
|
} else {
|
WARN ("WARNING: UART at %"PRIxADDR" has no vapi nor channel specified\n", uart->baseaddr);
|
WARN ("WARNING: UART at %"PRIxADDR" has no vapi nor channel specified\n",
|
|
uart->baseaddr);
|
}
|
}
|
|
|
if (uart->uart16550)
|
if (uart->uart16550)
|
uart->fifo_len = 16;
|
uart->fifo_len = 16;
|
else
|
else
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.