mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
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:
@@ -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>
|
2008-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* console/m340uart.c: Eliminate copies of switches to convert termios
|
* console/m340uart.c: Eliminate copies of switches to convert termios
|
||||||
|
|||||||
@@ -486,8 +486,8 @@ SetAttributes (int minor, const struct termios *t)
|
|||||||
isp = (t->c_cflag / (CIBAUD / CBAUD)) & CBAUD;
|
isp = (t->c_cflag / (CIBAUD / CBAUD)) & CBAUD;
|
||||||
|
|
||||||
/* convert it */
|
/* convert it */
|
||||||
ispeed = termios_baud_rates_equivalence(isp);
|
ispeed = termios_baud_to_number(isp);
|
||||||
ospeed = termios_baud_rates_equivalence(osp);
|
ospeed = termios_baud_to_number(osp);
|
||||||
|
|
||||||
if (ispeed || ospeed) {
|
if (ispeed || ospeed) {
|
||||||
/* update config table */
|
/* update config table */
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
* e-mail: g_montel@yahoo.com
|
* e-mail: g_montel@yahoo.com
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* COPYRIGHT (c) 1989-1999.
|
* COPYRIGHT (c) 1989-2008.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* 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 rtems_isr InterruptHandler (rtems_vector_number v);
|
||||||
|
|
||||||
extern float termios_baud_rates_equivalence ( int speed ) ;
|
|
||||||
extern int dbugRead (int minor);
|
extern int dbugRead (int minor);
|
||||||
extern int dbugWrite (int minor, const char *buf, int len);
|
extern int dbugWrite (int minor, const char *buf, int len);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user