2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>

* console/console.c, include/m340uart.h: Use new shared
	termios_baud_to_number() routine.
This commit is contained in:
Joel Sherrill
2008-06-05 22:09:39 +00:00
parent 5877cc3af5
commit f176759649
3 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/console.c, include/m340uart.h: Use new shared
termios_baud_to_number() routine.
2008-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/m340uart.c: Eliminate copies of switches to convert termios

View File

@@ -486,8 +486,8 @@ SetAttributes (int minor, const struct termios *t)
isp = (t->c_cflag / (CIBAUD / CBAUD)) & CBAUD;
/* convert it */
ispeed = termios_baud_rates_equivalence(isp);
ospeed = termios_baud_rates_equivalence(osp);
ispeed = termios_baud_to_number(isp);
ospeed = termios_baud_to_number(osp);
if (ispeed || ospeed) {
/* update config table */

View File

@@ -12,7 +12,7 @@
* e-mail: g_montel@yahoo.com
*
*
* COPYRIGHT (c) 1989-1999.
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -80,7 +80,6 @@ Find_Right_m340_UART_Config(float ChannelA_ReceiverBaudRate, float ChannelA_Tran
extern rtems_isr InterruptHandler (rtems_vector_number v);
extern float termios_baud_rates_equivalence ( int speed ) ;
extern int dbugRead (int minor);
extern int dbugWrite (int minor, const char *buf, int len);