1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-23 04:04:54 +08:00

251 Commits

Author SHA1 Message Date
Mike Purvis
79993c0928 Remove secondary credit from unix.cc; just the header is fine 2013-10-15 15:12:13 -04:00
Mike Purvis
82f1d8d294 Merge pull request #1 from wjwwood/clearpathrobotics-timespec-refactor
Changes from William to the timespec work
2013-10-15 12:10:25 -07:00
William Woodall
cb4015705b just use inline, not static or static inline 2013-10-15 12:05:09 -07:00
William Woodall
80a087e606 use pass by reference in operator* for timespec 2013-10-15 12:05:03 -07:00
William Woodall
17e698ce94 use pass by reference in normalize function 2013-10-15 12:04:56 -07:00
William Woodall
282b79efc6 style changes to new/old timespec functions 2013-10-15 12:04:50 -07:00
William Woodall
9f63f4d2b5 move timespec funcs into unix.cc 2013-10-15 12:04:44 -07:00
Mike Purvis
bd616be971 Remove the struct keywords from operator returns, as this is a problem for clang. 2013-10-10 17:18:10 -04:00
Mike Purvis
e0967cd3fc Add time.h include to unix-timespec.h 2013-10-10 16:32:04 -04:00
Mike Purvis
b992bce88f Add early-return possibility for the base read method. 2013-10-10 15:26:49 -04:00
Mike Purvis
88b628ba98 Switch read and write functions to use cached timespec timeouts, new operator functions, and pselect in place of select. 2013-10-06 11:23:22 -04:00
Mike Purvis
452dd3e678 Add a bunch of clarifying comments to those timespec functions which are intended for duration timespecs. 2013-10-06 11:16:55 -04:00
Mike Purvis
b01b47b301 Add a bunch of clarifying comments to those timespec functions which are intended for duration timespecs. 2013-10-06 11:05:06 -04:00
Mike Purvis
4b23d52078 Switch get_time_now to return timespec, rather than operate on reference. 2013-10-06 10:49:25 -04:00
Mike Purvis
7a61d4545b Create key operator/manipulation functions for timespecs, add them to new unix-timespec.h helper header. 2013-10-06 10:35:00 -04:00
Mike Purvis
10f2fc60fb Beginnings of some operator functions for timespec structs 2013-10-06 08:57:19 -04:00
Mike Purvis
8f01d23249 Move stopbits_one_point_five to the end of the enum, so that it doesn't alias with stopbits_two. 2013-10-06 01:24:42 -04:00
William Woodall
0c7a1f59c3 1.1.5 1.1.5 2013-09-23 21:20:33 -07:00
William Woodall
dc9282862c updating changelogs 2013-09-23 21:20:22 -07:00
William Woodall
f1885c60c0 Merge pull request #38 from wmhilton/master
Windows build instructions
2013-08-28 16:30:17 -07:00
William Woodall
bed25fd8a2 Fix license labeling, I put BSD, but the license has always been MIT... 2013-08-28 15:01:13 -07:00
William Hilton
737cf2a04d Added Microsoft Visual Studio 2010 project to make compiling on Windows easier. 2013-08-25 19:22:11 -04:00
William Woodall
ae34a17364 Merge pull request #33 from wjwwood/fix_custom_baudrate_osx
Update how custom baudrates are handled on OS X
2013-08-13 13:53:14 -07:00
William Woodall
a20acb2a00 Merge pull request #35 from daniser/patch-1
Implemented Serial::available() for Windows
2013-08-06 17:38:24 -07:00
daniser
079615f11f Update win.cc 2013-08-06 02:08:22 +03:00
daniser
125c105e3f Implemented Serial::available() for Windows 2013-08-06 01:28:46 +03:00
William Woodall
c455d053bf Fixup unix case for strerror 2013-08-02 14:24:39 -07:00
William Woodall
e11abb04f2 Fix compiler warnings on Windows 2013-08-02 21:20:25 -07:00
William Woodall
3db36faa14 Update how custom baudrates are handled on OS X
This is taken from the example serial program
on Apple's developer website, see:

http://free-pascal-general.1045716.n5.nabble.com/Non-standard-baud-rates-in-OS-X-IOSSIOSPEED-IOCTL-td4699923.html
2013-07-31 16:54:15 -07:00
William Woodall
3292f2b682 Fix up linking on Linux for the tests
Conflicts:
	CMakeLists.txt
	tests/serial_tests.cc
2013-07-31 16:52:19 -07:00
William Woodall
e1138fda9e Merge pull request #32 from wjwwood/fix_timeout_windows
Setting timeout throws an exception on Windows
2013-07-30 16:17:00 -07:00
William Woodall
2143e8d475 Apply the timeout settings with reconfigurePort 2013-07-30 14:08:06 -07:00
William Woodall
a0a586cf5b [style] always use curly braces with if statements 2013-07-30 14:04:30 -07:00
William Woodall
329545b282 Merge pull request #30 from wjwwood/fix_wstring_windows
Fix wide string usage in Windows impl
2013-07-30 11:26:31 -07:00
William Woodall
9d20d1a07f convert wstring into string when printing 2013-07-30 11:06:47 -07:00
William Woodall
7e04501d99 Merge pull request #31 from nbigaouette/fix_doc
Fix a typo in documentation
2013-07-30 11:02:29 -07:00
Nicolas Bigaouette
1e09770d8b Fix typo in documentation 2013-07-30 13:45:47 -04:00
William Woodall
82884ca519 Pass LPCWSTR to CreateFile in Windows impl
This should fix #29
2013-07-30 10:31:15 -07:00
William Woodall
ffc3028289 Use wstring for port_ type in Windows impl 2013-07-30 10:30:46 -07:00
William Woodall
dca4bd163e 1.1.4 1.1.4 2013-06-20 14:10:49 -07:00
William Woodall
7f03d8d804 Fixing up CHANGELOG.rst for 1.1.4 2013-06-20 14:10:38 -07:00
William Woodall
db0947e242 Update package.xml 2013-06-12 00:13:18 -06:00
William Woodall
516a5c7e82 Fixed another Exception misspelling. 2013-06-11 17:05:24 -07:00
William Woodall
308be5b337 Merge pull request #25 from wjwwood/fix_exceptions
fix, by Thomas Hoppe <thomas.hoppe@cesys.com>
2013-06-11 14:40:18 -07:00
William Woodall
4291db0b30 Adding changelog 2013-06-11 14:18:23 -07:00
William Woodall
947f1937d6 Merge pull request #28 from wjwwood/issue_27
Potential timing fix for read and write.
2013-05-23 09:45:13 -07:00
William Woodall
060634bf91 Potential timing fix for read and write.
Fixes #27
2013-05-22 21:45:20 -07:00
William Woodall
4ed3889979 Merge pull request #26 from trainman419/master
Update list of exceptions thrown from constructor.
2013-05-22 11:43:39 -07:00
trainman419
31e07fdb99 Update list of exceptions thrown from constructor. 2013-05-21 00:00:31 -07:00
William Woodall
2b4bafbfd2 fix, by Thomas Hoppe <thomas.hoppe@cesys.com>
For SerialException's:

- The name was misspelled…
- Use std::string's for error messages to prevent corruption of messages on some platforms
2013-05-08 13:52:28 -07:00