STM32: Fix STM32 serial init for non-reordered serial ports. From Lorenz Meier
This commit is contained in:
parent
544185c683
commit
054468d151
@ -2441,10 +2441,17 @@ void up_serialinit(void)
|
|||||||
|
|
||||||
for (i = 0; i < STM32_NUSART; i++)
|
for (i = 0; i < STM32_NUSART; i++)
|
||||||
{
|
{
|
||||||
|
/* Don't create a device for non-configured ports. */
|
||||||
|
|
||||||
|
if (uart_devs[i] == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_SERIAL_DISABLE_REORDERING
|
#ifndef CONFIG_SERIAL_DISABLE_REORDERING
|
||||||
/* Don't create a device for the console - we did that above */
|
/* Don't create a device for the console - we did that above */
|
||||||
|
|
||||||
if ((uart_devs[i] == 0) || (uart_devs[i]->dev.isconsole))
|
if (uart_devs[i]->dev.isconsole)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user