##// END OF EJS Templates
added 3Mbaud for win32
Jeandet Alexis -
r42:a68a89f1a369 alexis
parent child
Show More
@@ -92,8 +92,29 rs232speed_t rs232cfspeed(unsigned int B
92 92
93 93 if(BaudeRate<172800)
94 94 return (rs232speed_t)CBR_115200;
95
96 if(BaudeRate<345600)
97 return (rs232speed_t)230400;
98
99 if(BaudeRate<345600)
100 return (rs232speed_t)460800;
101
102 if(BaudeRate<748800)
103 return (rs232speed_t)576000;
104
105 if(BaudeRate<1210800)
106 return (rs232speed_t)921600;
107
108 if(BaudeRate<1750000)
109 return (rs232speed_t)1500000;
110
111 if(BaudeRate<2250000)
112 return (rs232speed_t)2000000;
113
114 if(BaudeRate<2750000)
115 return (rs232speed_t)2500000;
95 116 else
96 return (rs232speed_t)CBR_256000;
117 return (rs232speed_t)3000000;
97 118 }
98 119
99 120
General Comments 0
You need to be logged in to leave comments. Login now