[OpenBIOS] r743 - dev/usb2/device/serial

svn at openbios.org svn at openbios.org
Sun Dec 2 03:41:50 CET 2007


Author: wmb
Date: 2007-12-02 03:41:50 +0100 (Sun, 02 Dec 2007)
New Revision: 743

Modified:
   dev/usb2/device/serial/belkin.fth
   dev/usb2/device/serial/mct_u232.fth
   dev/usb2/device/serial/pl2303.fth
Log:
USB serial drivers - Changed the default baud rate to 115200 because
nobody uses 9600 anymore.


Modified: dev/usb2/device/serial/belkin.fth
===================================================================
--- dev/usb2/device/serial/belkin.fth	2007-11-30 19:38:32 UTC (rev 742)
+++ dev/usb2/device/serial/belkin.fth	2007-12-02 02:41:50 UTC (rev 743)
@@ -20,7 +20,7 @@
 
 : belkin-set-baud  ( -- )
    belkin-rts-dtr-on
-   d# 00 ( SET_BAUDRATE_REQUEST ) d# 230400 d# 9600 / belkin-cmd
+   d# 00 ( SET_BAUDRATE_REQUEST ) d# 230400 d# 115200 / belkin-cmd
    d# 03 ( SET_PARITY_REQUEST ) 0 ( PARITY_NONE ) belkin-cmd
    d# 02 ( SET_DATA_BITS_REQUEST ) 8 5 - belkin-cmd
    d# 01 ( SET_STOP_BITS_REQUEST ) 1 1 - belkin-cmd

Modified: dev/usb2/device/serial/mct_u232.fth
===================================================================
--- dev/usb2/device/serial/mct_u232.fth	2007-11-30 19:38:32 UTC (rev 742)
+++ dev/usb2/device/serial/mct_u232.fth	2007-12-02 02:41:50 UTC (rev 743)
@@ -15,7 +15,8 @@
    1 0 0  DR_OUT DR_VENDOR or d# 10 ( SET_MODEM_CTRL_REQUEST ) control-set  drop
 ;
 : mct-set-baud  ( -- )
-   mct-buf 8 over le-l!			\ 9600 baud rate
+   \ 300:1 600:2 1200:3 2400:4 4800:6 9600:8 19200:9 38400:a 57600:b 115200:c
+   mct-buf h# c over le-l!			\ 115200 baud rate
    4 0 0  DR_OUT DR_VENDOR or 5 ( SET_BAUD_RATE_REQUEST ) control-set  drop
 ;
 : mct-rts-dtr-off  ( -- )  8     mct-set-modem-ctrl  ;

Modified: dev/usb2/device/serial/pl2303.fth
===================================================================
--- dev/usb2/device/serial/pl2303.fth	2007-11-30 19:38:32 UTC (rev 742)
+++ dev/usb2/device/serial/pl2303.fth	2007-12-02 02:41:50 UTC (rev 743)
@@ -33,7 +33,7 @@
 
    0 0 1 0 pl2303-vendor-write
 
-   d# 9600 pl2303-buf le-l!	\ Baud rate = 9600
+   d# 115200 pl2303-buf le-l!	\ Baud rate = 115200
    0 pl2303-buf 4 ca+ c!	\ # stop bits = 1 (0=1, 1=1.5, 2=2)
    0 pl2303-buf 5 ca+ c!	\ parity = none
 				\ (0=none, 1=odd, 2=even, 3=mark, 4=space)




More information about the OpenBIOS mailing list