diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-25 13:35:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-25 13:35:36 +0000 |
commit | f5ab5978905faf5b9bd81c2c2463a25cd75325ae (patch) | |
tree | 4db514dfbab62d4ddf161d71cf1c409646cdedb7 /nuttx/lib | |
parent | 79a649dfb7f8673a4150bfdabcf32826619de326 (diff) | |
download | px4-nuttx-f5ab5978905faf5b9bd81c2c2463a25cd75325ae.tar.gz px4-nuttx-f5ab5978905faf5b9bd81c2c2463a25cd75325ae.tar.bz2 px4-nuttx-f5ab5978905faf5b9bd81c2c2463a25cd75325ae.zip |
Add PM support for the STM32F4Discovery -- still a work in progress
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4976 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/termios/lib_cfsetspeed.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nuttx/lib/termios/lib_cfsetspeed.c b/nuttx/lib/termios/lib_cfsetspeed.c index f2e11f577..bf9e66064 100644 --- a/nuttx/lib/termios/lib_cfsetspeed.c +++ b/nuttx/lib/termios/lib_cfsetspeed.c @@ -74,6 +74,15 @@ * NOTE 1: NuttX does not control input/output baud independently. Both * must be the same. The POSIX standard interfaces, cfisetispeed() and * cfisetospeed() are defined to be cfsetspeed() in termios.h. + * + * NOTE 3: A consequence of NOTE 1 is that you should never attempt to + * set the input and output baud to different values. + * + * Also, the following POSIX requirement cannot be supported: "If the input + * baud rate stored in the termios structure pointed to by termios_p is 0, + * the input baud rate given to the hardware will be the same as the output + * baud rate stored in the termios structure." + * * NOTE 2. In Nuttx, the speed_t is defined to be uint32_t and the baud * encodings of termios.h are the actual baud values themselves. Therefore, * any baud value can be provided as the speed argument here. However, if @@ -87,7 +96,7 @@ * termiosp->c_ispeed = baud; * * cfsetospeed(termiosp, BOTHER); - * termiosp->c_ospeed = baud; + * termiosp->c_ospeed = baud; * * Input Parameters: * termiosp - The termiosp argument is a pointer to a termios structure. |