change log for rtems (2010-10-10)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 11 01:10:34 UTC 2010


 *ccj*:
2010-10-11      Chris Johns <chrisj at rtems.org>

        * console/console.c: Fix the baudrate command line support.

M  1.262  c/src/lib/libbsp/i386/pc386/ChangeLog
M   1.50  c/src/lib/libbsp/i386/pc386/console/console.c

diff -u rtems/c/src/lib/libbsp/i386/pc386/ChangeLog:1.261 rtems/c/src/lib/libbsp/i386/pc386/ChangeLog:1.262
--- rtems/c/src/lib/libbsp/i386/pc386/ChangeLog:1.261	Thu Aug 26 23:38:37 2010
+++ rtems/c/src/lib/libbsp/i386/pc386/ChangeLog	Sun Oct 10 19:36:48 2010
@@ -1,3 +1,7 @@
+2010-10-11	Chris Johns <chrisj at rtems.org>
+
+	* console/console.c: Fix the baudrate command line support.
+	
 2010-08-27	Chris Johns <chrisj at rtems.org>
 
 	* console/console.c: Add baudrate support to the --console command

diff -u rtems/c/src/lib/libbsp/i386/pc386/console/console.c:1.49 rtems/c/src/lib/libbsp/i386/pc386/console/console.c:1.50
--- rtems/c/src/lib/libbsp/i386/pc386/console/console.c:1.49	Thu Aug 26 23:38:37 2010
+++ rtems/c/src/lib/libbsp/i386/pc386/console/console.c	Sun Oct 10 19:36:48 2010
@@ -68,7 +68,8 @@
 int BSPPrintkPort  = BSP_CONSOLE_PORT_CONSOLE;
 #endif
 
-int BSPBaseBaud    = 9600;
+int BSPBaseBaud    = 115200;
+int BSPCmdBaud     = 9600;
 
 extern BSP_polling_getchar_function_type BSP_poll_char;
 extern int getch( void );
@@ -185,17 +186,17 @@
     {
       comma += 1;
       if (strncmp (opt, "115200", sizeof ("115200") - 1) == 0)
-        BSPBaseBaud = 115200;
+        BSPCmdBaud = 115200;
       else if (strncmp (opt, "57600", sizeof ("57600") - 1) == 0)
-        BSPBaseBaud = 57600;
+        BSPCmdBaud = 57600;
       else if (strncmp (opt, "38400", sizeof ("38400") - 1) == 0)
-        BSPBaseBaud = 38400;
+        BSPCmdBaud = 38400;
       else if (strncmp (opt, "19200", sizeof ("19200") - 1) == 0)
-        BSPBaseBaud = 19200;
+        BSPCmdBaud = 19200;
       else if (strncmp (opt, "9600", sizeof ("9600") - 1) == 0)
-        BSPBaseBaud = 9600;
+        BSPCmdBaud = 9600;
       else if (strncmp (opt, "4800", sizeof ("4800") - 1) == 0)
-        BSPBaseBaud = 9600;
+        BSPCmdBaud = 9600;
     }
   }
 
@@ -217,6 +218,7 @@
 
   if(BSPPrintkPort == BSP_UART_COM1)
     {
+      printk("Initializing console on port COM1 %d-8-N-1\n\n", BSPCmdBaud);
       printk("Warning : This will be the last message on console\n");
 
       /*
@@ -287,8 +289,8 @@
       /*
        * Do device-specific initialization
        */
-      /* BSPBaseBaud-8-N-1 */
-      BSP_uart_init(BSPConsolePort, BSPBaseBaud, CHR_8_BITS, 0, 0, 0);
+      /* BSPCmdBaud-8-N-1 */
+      BSP_uart_init(BSPConsolePort, BSPCmdBaud, CHR_8_BITS, 0, 0, 0);
 
       /* Set interrupt handler */
       if(BSPConsolePort == BSP_UART_COM1)
@@ -321,11 +323,11 @@
 
       if(BSPConsolePort == BSP_UART_COM1)
 	{
-	  printk("Initialized console on port COM1 %d-8-N-1\n\n", BSPBaseBaud);
+	  printk("Initialized console on port COM1 %d-8-N-1\n\n", BSPCmdBaud);
 	}
       else
 	{
-	  printk("Initialized console on port COM2 %d-8-N-1\n\n", BSPBaseBaud);
+	  printk("Initialized console on port COM2 %d-8-N-1\n\n", BSPCmdBaud);
 	}
   }
 
@@ -545,7 +547,7 @@
   }
 
   BSP_uart_set_attributes(BSPConsolePort, baud, databits, parity, stopbits);
-
+  
   return 0;
 }
 



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20101010/b60bdecd/attachment.html>


More information about the vc mailing list