[Vm-dev] Serial communications: Linux vs. Windows
bschwab at anest.ufl.edu
Wed Nov 24 19:10:44 UTC 2010
The linux vm codes stop bits as follows: 0=1.5, 1=1, 2=2. I have long seen it (on Windows) expressed as
ONESTOPBIT := 0.
ONE5STOPBITS := 1.
TWOSTOPBITS := 2.
Someone trying to write code that works across platforms will get snagged, at least if using the usual Windows definitions. Is this something that can/should be done better to make the stop bits as platform-neutral as possible? What would you change?
More information about the Vm-dev