diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-28 15:42:23 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-28 15:42:23 +0200 |
commit | 33dbfeb049d5366bc56ef3bb89f08559f5024b61 (patch) | |
tree | e1d9419409da882854d5efd3bc1c1edd4fab4227 /nuttx/arch/arm/src | |
parent | 33e468836de7cacbab8987384760cb96e89508b2 (diff) | |
download | px4-nuttx-33dbfeb049d5366bc56ef3bb89f08559f5024b61.tar.gz px4-nuttx-33dbfeb049d5366bc56ef3bb89f08559f5024b61.tar.bz2 px4-nuttx-33dbfeb049d5366bc56ef3bb89f08559f5024b61.zip |
Fixed serial init for non-reordering case
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_serial.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_serial.c b/nuttx/arch/arm/src/stm32/stm32_serial.c index ff4cd7549..d751b0f36 100644 --- a/nuttx/arch/arm/src/stm32/stm32_serial.c +++ b/nuttx/arch/arm/src/stm32/stm32_serial.c @@ -2440,9 +2440,16 @@ void up_serialinit(void) 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 /* 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; } |