Skip to content

Conversation

@mrh1997
Copy link

@mrh1997 mrh1997 commented Jan 21, 2019

With this extensions the library supports parity checking und blocking reads.
Furthermore some minor additions were added.

to avoid, that the source code has to be modified, when more than
64 devices shall be supported, the corresponding defines
(COM_MAXDEVICES) can be optionally set in the makefile now.

This is especially important on WSL (Windows Subsystem for Linux),
which installs 192 serial devices, no matter if there is a real
hardware counterpart on the windows side.
The Linuxversion defined __USE_MISC without checking if it was already
defined in one of the headers. This might result in compiler warnings.

Furthermore the Windowsversion passed size_t types to uint32_t, which
caused compiler warnings on MSVC 64bit
If the corresponding macros are available from the OS up to 4MBit are
now supported.
the comReadBlocking() allows to specify a timeout. It will wait until
'len' bytes are read or 'timeout' expired.
Now also Parity Bits like ODD and EVEN can be enforced.
During Refactoring conditional defines for macOS were removed
accidentially.
In contrary to Windows Linux had XON/XOFF activated, which
caused swallowing of the characters 0x11 (input) and
0x13 (output).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant