# HG changeset patch # User Jeandet Alexis # Date 2014-01-13 20:01:11 # Node ID a68a89f1a369addc6957cb8de663042cbbf6c6e2 # Parent 21b605b21a3e3b77c6a345dd0a218060a003e729 added 3Mbaud for win32 diff --git a/src/RS232_win.c b/src/RS232_win.c --- a/src/RS232_win.c +++ b/src/RS232_win.c @@ -92,8 +92,29 @@ rs232speed_t rs232cfspeed(unsigned int B if(BaudeRate<172800) return (rs232speed_t)CBR_115200; + + if(BaudeRate<345600) + return (rs232speed_t)230400; + + if(BaudeRate<345600) + return (rs232speed_t)460800; + + if(BaudeRate<748800) + return (rs232speed_t)576000; + + if(BaudeRate<1210800) + return (rs232speed_t)921600; + + if(BaudeRate<1750000) + return (rs232speed_t)1500000; + + if(BaudeRate<2250000) + return (rs232speed_t)2000000; + + if(BaudeRate<2750000) + return (rs232speed_t)2500000; else - return (rs232speed_t)CBR_256000; + return (rs232speed_t)3000000; }