1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 03:34:53 +08:00

362 Commits

Author SHA1 Message Date
José Manuel Díez
ce085ce88c Problem: hardware flow control uses RTS_CONTROL_TOGGLE (#132)
RTS_CONTROL_HANDSHAKE raises RTS when there is space in the input
buffer; RTS_CONTROL_TOGGLE only raises RTS when bytes are available for
transmission.

Also replace numeric constants with symbolic constants.
2018-01-13 12:10:11 -08:00
Mike Purvis
d3713af096 Support 500kbps serial ports. (#167) 2018-01-09 07:22:43 -08:00
rhd
827c4a784d Fix issue with write() and a timeout of 0. (#137)
* Fix issue with write() and a timeout of 0.

* fix up style
2017-01-20 17:34:49 -08:00
Stephane Poirier
771e62c220 Update documentation (#140)
* Fix typo and missing dependency in README

* [docs] Update docs: fix deprecation warnings + add missing deps to README
2017-01-20 15:29:03 -08:00
aleksey-sergey
02dfff7883 fixing unix timeouts handling ("timer_tests.short_interval" failure) (#147) 2016-11-28 17:38:53 -08:00
aleksey-sergey
4d69fb2e41 fix timeouts handling on Unix systems (#142)
fixed "singed long" overflow that took place on attempt
to use ~3000ms or bigger timeouts on Unix systems
2016-11-28 14:06:00 -08:00
dontsovcmc
c16faab6ea resource leak if exception in SerialImpl constructor (#146) 2016-11-21 14:48:07 -08:00
Christopher Baker
d76b7d6b7f Const corrections. (#141) 2016-10-17 13:54:11 +09:00
William Woodall
2d416f1560 Merge pull request #118 from Rimco/patch-1
Updated serial.cc for FreeBSD 9 compatibility.
2015-12-02 09:06:25 -08:00
Rimco
22dce33fa4 Updated serial.cc for FreeBSD 9 compatibility. 2015-11-26 22:15:48 +01:00
William Woodall
e12d81eadf Merge pull request #116 from pao/patch-1
Use CLOCK_MONOTONIC (Linux)/SYSTEM_CLOCK (OS X) to time select()
2015-11-10 15:35:05 -08:00
Patrick O'Leary
c5b4bbd181 on OS X, use SYSTEM_CLOCK, not CALENDAR_CLOCK
Analogously to using `CLOCK_MONOTONIC` on Linux to time events in favor of `CLOCK_REALTIME`, `SYSTEM_CLOCK` should be used in favor of `CALENDAR_CLOCK` on OS X.

Ref: http://stackoverflow.com/questions/11680461/monotonic-clock-on-osx
2015-11-10 17:28:45 -06:00
Patrick O'Leary
98f1c31e81 on Linux, use CLOCK_MONOTONIC for clock_gettime()
On Linux systems which are being driven by an external time source (NTP or PTP), it is possible that time appears to slew in reverse under `CLOCK_REALTIME`. Since the timer function is used to time durations of events (calls to `select()`), it is better to use `CLOCK_MONOTONIC`, which isn't subject to slewing.
2015-11-10 09:40:30 -06:00
William Woodall
ef7f77d411 Merge pull request #113 from vladimirgamalian/patch-1
Comment unreferenced formal parameters
2015-09-27 14:14:03 -07:00
Vladimir Gamalian
402657574c Comment unreferenced formal parameter
Fix warning from static analysis tools.
2015-09-27 19:41:56 +07:00
William Woodall
a81087ec85 Merge pull request #112 from linquize/vs2015
Support VS2015
2015-09-23 14:35:04 -07:00
Linquize
9b80fc3fbf Can use the toolsets from Visual Studio 2010, 2012, 2013, 2015 2015-09-22 21:45:43 +08:00
William Woodall
c57285f30a Merge pull request #106 from ramirahikkala/master
AdditionalIncludeDirectories must be relative for project not solution
2015-08-14 10:11:13 -07:00
Rami
cd5053cb32 AdditionalIncludeDirectories must be relative for project not solution
Fixes #105

Signed-off-by: Rami <rami.rahikkala@jotautomation.com>
2015-08-14 08:37:27 +03:00
William Woodall
6144d579af Merge pull request #103 from drummist180/master
Fix include directory paths in Visual Studio projects.
2015-07-21 16:02:36 -07:00
Brandon Morton
1580f10d39 Fix include directory paths in Visual Studio projects.
Remove previously ignored *.user file.
2015-07-16 19:17:52 -07:00
William Woodall
99e57e633c Merge pull request #98 from wjwwood/fix_issue_97
fix warning on Windows
2015-04-27 15:20:05 -07:00
William Woodall
b8320d31a7 fix warning on Windows 2015-04-27 14:44:16 -07:00
William Woodall
10ac4e1c25 1.2.1 1.2.1 2015-04-21 21:50:41 -07:00
William Woodall
03ca3be6a8 Merge pull request #96 from wjwwood/issue_84
fix handling of COM ports over 10 on Windows, fixes #84
2015-04-21 21:38:04 -07:00
William Woodall
52197afbc8 [doc] fixup/clarify some throws documentation 2015-04-21 21:15:51 -07:00
William Woodall
e438077cba [style] whitespace and configs 2015-04-21 21:15:51 -07:00
William Woodall
985c3a5172 fix handling of COM ports over 10 on Windows, fixes #84 2015-04-21 20:43:54 -07:00
William Woodall
1a70b09bb1 Merge pull request #95 from wjwwood/issue_90_refresh
Release io_iterator_t object when finished with it in list_ports_osx.cc.
2015-04-21 20:42:02 -07:00
William Woodall
33bbde42c8 fix typo 2015-04-21 20:07:55 -07:00
William Woodall
3a9e6be834 [style] whitespace 2015-04-21 19:01:59 -07:00
Konstantina Kastanara
42aa78ae98 Release io_iterator_t object when finished with it in list_ports_osx.cc. 2015-04-21 18:59:58 -07:00
William Woodall
d7084ce775 Merge pull request #93 from legath/master
fix for clang build on macosx
2015-04-06 12:04:08 -07:00
Alexander Bulychev
e26a977173 fix for clang build on macosx 2015-04-06 16:53:33 +03:00
William Woodall
5b13be4d7c Merge pull request #92 from DarkDemiurg/master
Fix for mingw32
2015-03-24 16:56:05 -07:00
DarkDemiurg
29cb551c41 Fix for mingw32 2015-03-24 23:19:15 +03:00
William Woodall
e70643380d Merge pull request #91 from wjwwood/fix_osx
travis: fixup os x dep install
2015-03-09 13:04:19 -07:00
William Woodall
32792b3ee1 travis: fixup os x dep install 2015-03-09 11:48:31 -07:00
William Woodall
2473a8770f Merge pull request #86 from avian2/add-57600-baud
Add 576000 baud support for Unix
2015-01-12 10:34:06 -08:00
Tomaz Solc
dda5b6308e Add 576000 baud support for Unix 2015-01-06 15:15:31 +01:00
William Woodall
17da2dea31 Add CI status to README.md 2014-12-29 12:40:54 -08:00
William Woodall
c3d55880c8 Merge pull request #85 from wjwwood/travis_osx2
trying different travis osx settings
2014-12-29 12:37:37 -08:00
William Woodall
bd0980b69a trying different travis osx settings 2014-12-29 11:48:58 -08:00
William Woodall
31fa9c9e34 Merge pull request #83 from wjwwood/travis_osx
trying out osx support in travis
2014-12-29 11:22:22 -08:00
William Woodall
a622105543 trying out osx support in travis 2014-12-29 11:19:57 -08:00
William Woodall
8036553a1e improve error message when mark or space parity are not supported 2014-12-09 13:50:24 -08:00
David Hodo
6f464948f0 Make MARK/SPACE partiy support optional 2014-12-09 14:50:37 -06:00
William Woodall
6e47bdd0ae Merge pull request #81 from achronop/master
Add MARK/SPACE parity bit option
2014-12-07 15:20:49 -08:00
achronop
b376f85fb0 Add MARK/SPACE parity bit option 2014-12-07 21:33:53 +02:00
William Woodall
c19a5a3cc9 Merge pull request #75 from Konstantinacc/master
CloseHanle fd_ if SetCommState fails in function Serial::SerialImpl::reconfigurePort ().
2014-08-19 10:16:54 -07:00