Mercurial > nand-ecoscentric
changeset 3036:eb303059b6e5
* src/common/termios.c : Fix tcflush() and tcdrain(). They were
effectively no-op functions.
| author | sergeig |
|---|---|
| date | Thu, 10 Jun 2010 20:46:18 +0000 |
| parents | b4977dbda76c |
| children | 31c9ab39babe |
| files | packages/io/serial/current/ChangeLog packages/io/serial/current/src/common/termios.c |
| diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/serial/current/ChangeLog +++ b/packages/io/serial/current/ChangeLog @@ -1,3 +1,8 @@ +2010-06-02 Jay Foster <jay@systech.com> + + * src/common/termios.c : Fix tcflush() and tcdrain(). They were + effectively no-op functions. + 2008-09-02 Steven Clugston <steven.clugston@ncl.ac.uk> * tests/ser_test_protocol.inl : Add mpc555 generic platform
--- a/packages/io/serial/current/src/common/termios.c +++ b/packages/io/serial/current/src/common/termios.c @@ -263,7 +263,7 @@ tcdrain( int fildes ) ret = fp->f_ops->fo_getinfo( fp, CYG_IO_GET_CONFIG_SERIAL_OUTPUT_DRAIN, - NULL, 0 ); + NULL, 1 ); cyg_fp_free( fp ); if ( ret > 0 ) { @@ -302,17 +302,17 @@ tcflush( int fildes, int queue_sel ) case TCIOFLUSH: ret = fp->f_ops->fo_getinfo( fp, CYG_IO_GET_CONFIG_SERIAL_OUTPUT_FLUSH, - NULL, 0 ); + NULL, 1 ); // fallthrough case TCIFLUSH: ret = fp->f_ops->fo_getinfo( fp, CYG_IO_GET_CONFIG_SERIAL_INPUT_FLUSH, - NULL, 0 ); + NULL, 1 ); break; case TCOFLUSH: ret = fp->f_ops->fo_getinfo( fp, CYG_IO_GET_CONFIG_SERIAL_OUTPUT_FLUSH, - NULL, 0 ); + NULL, 1 ); break; default: ret = EINVAL;
