Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
caf42e0c
Commit
caf42e0c
authored
Feb 08, 2018
by
bencefr
Browse files
Version dependent typedef for boost asio service
parent
7fe2c02f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/common/internal/transport/uart_boost.h
View file @
caf42e0c
...
...
@@ -50,6 +50,12 @@
#include <stdint.h>
#if BOOST_VERSION >= 106600
typedef
boost
::
asio
::
io_context
asio_io_context
;
#else
typedef
boost
::
asio
::
io_service
asio_io_context
;
#endif
/**
* @brief The UartBoost class opens, reads and writes a serial port using the boost asio library
*/
...
...
@@ -97,9 +103,9 @@ private:
*/
void
asyncWrite
();
boost
::
asio
::
io_
service
ioService
;
asio
_
io_
context
ioService
;
boost
::
asio
::
serial_port
serialPort
;
boost
::
asio
::
io_
service
::
work
workNotifier
;
asio
_
io_
context
::
work
workNotifier
;
boost
::
thread
ioWorkThread
;
boost
::
array
<
uint8_t
,
BUFFER_SIZE
>
readBuffer
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment