diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-24 22:56:36 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-24 22:56:36 +0000 |
commit | d7280d43821c750e6d8aa35ac6f26f811cc6890b (patch) | |
tree | f9293a2385b426204e0e8b9125660c6b22885755 /nuttx/arch/arm/src/lpc43xx/lpc43_serial.c | |
parent | ac6f7a722bd9bdb35e738b7fbbd1cd32d68b2373 (diff) | |
download | px4-firmware-d7280d43821c750e6d8aa35ac6f26f811cc6890b.tar.gz px4-firmware-d7280d43821c750e6d8aa35ac6f26f811cc6890b.tar.bz2 px4-firmware-d7280d43821c750e6d8aa35ac6f26f811cc6890b.zip |
Combine cfset[o|i]speed to cfsetspeed; combine cfget[o|i]speed for cfgetspeed
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4975 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/lpc43xx/lpc43_serial.c')
-rw-r--r-- | nuttx/arch/arm/src/lpc43xx/lpc43_serial.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c index c125660e1..525cad01d 100644 --- a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c +++ b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c @@ -1125,9 +1125,12 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) break; } - /* TODO: Handle other termios settings. */ + /* TODO: Handle other termios settings. + * Note that only cfgetispeed is used besued we have knowledge + * that only one speed is supported. + */ - priv->baud = termiosp->c_speed; + priv->baud = cfgetispeed(termiosp); lpc43_setbaud(priv->uartbase, priv->basefreq, priv->baud); } break; |