summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-24 17:16:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-24 17:16:25 +0000
commite81a336112145a051b354124d4fbf5c7ee73b7f3 (patch)
tree6a6b125c6652cae62e66ca6c93c2c3a4e5b7ed87 /nuttx/arch/arm/src/stm32
parentb51d76029acee653de9e181de45228f4cd6e9c4c (diff)
downloadpx4-nuttx-e81a336112145a051b354124d4fbf5c7ee73b7f3.tar.gz
px4-nuttx-e81a336112145a051b354124d4fbf5c7ee73b7f3.tar.bz2
px4-nuttx-e81a336112145a051b354124d4fbf5c7ee73b7f3.zip
Ooops.. c_speed is now read-only
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4974 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_serial.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_serial.c b/nuttx/arch/arm/src/stm32/stm32_serial.c
index 0546bb7ff..5572ee662 100644
--- a/nuttx/arch/arm/src/stm32/stm32_serial.c
+++ b/nuttx/arch/arm/src/stm32/stm32_serial.c
@@ -1248,9 +1248,12 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
break;
}
- /* TODO: Other termios fields are not yet returned. */
+ /* TODO: Other termios fields are not yet returned.
+ * Note that only cfsetospeed is not necessary because we have
+ * knowledge that only one speed is supported.
+ */
- termiosp->c_speed = priv->baud;
+ cfsetispeed(termiosp, priv->baud);
}
break;