-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced features #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
…ADME, CI, and examples
… updating example and tests accordingly
… collecting USB device information and updating the callback mechanism; remove redundant implementation from serial.cpp
…o examples, and usage guidelines
… enable position-independent code, link libraries statically, and update build steps in CI to use a container image.
…ng installation and build steps into a single command for improved efficiency.
…container for enhanced build capabilities.
…ontainer for improved build compatibility.
c36c1e2
to
bb2e1ce
Compare
…and error handling; remove legacy serial and status_codes headers, and adjust CMake configuration to link cpp_core for improved modularity.
…criptions, error handling examples, and new convenience functions for serial communication, enhancing clarity and usability for developers.
name: libcpp_unix_bindings | ||
path: build/libcpp_unix_bindings.so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: libcpp_unix_bindings | |
path: build/libcpp_unix_bindings.so | |
name: bindings_linux | |
path: build/bindings_linux.so |
retention-days: 14 | ||
|
||
- name: Attach library to release | ||
if: github.event_name == 'release' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/libCPP-Unix-Bindings.so | ||
files: build/libcpp_unix_bindings.so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
files: build/libcpp_unix_bindings.so | |
files: build/bindings_linux.so |
set(VERSION_PATCH 0) | ||
|
||
set(PROJECT_N CPP-Unix-Bindings) | ||
set(PROJECT_N cpp_unix_bindings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set(PROJECT_N cpp_unix_bindings) | |
set(PROJECT_N cpp_bindings_linux) |
@@ -1,7 +1,7 @@ | |||
# CPP-Unix-Bindings | |||
# cpp_unix_bindings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# cpp_unix_bindings | |
# C++ Bindings Linux |
|
||
A compact C++23 library for talking to serial devices on Linux (e.g. Arduino). | ||
The project builds a **shared library `libCPP-Unix-Bindings.so`** that can be used via | ||
The project builds a **shared library `libcpp_unix_bindings.so`** that can be used via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project builds a **shared library `libcpp_unix_bindings.so`** that can be used via | |
The project builds a **shared library `bindings_linux.so`** that can be used via |
@@ -21,7 +21,7 @@ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | |||
cmake --build build -j | |||
|
|||
# The resulting library will be located at | |||
# build/libCPP-Unix-Bindings.so | |||
# build/libcpp_unix_bindings.so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# build/libcpp_unix_bindings.so | |
# build/bindings_linux.so |
@@ -36,7 +36,7 @@ Deno ships with a first-class FFI API. | |||
|
|||
```ts | |||
// serial_deno.ts | |||
const lib = Deno.dlopen('./build/libCPP-Unix-Bindings.so', { | |||
const lib = Deno.dlopen('./build/libcpp_unix_bindings.so', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const lib = Deno.dlopen('./build/libcpp_unix_bindings.so', { | |
const lib = Deno.dlopen('./build/bindings_linux.so', { |
…dular functions for serial communication, including read, write, and buffer management. Update CMake configuration to exclude serial.cpp and enhance project structure for improved maintainability.
…m 'function' to 'callback_fn' for improved clarity and consistency in naming conventions.
Introduce std::lock_guard to ensure thread-safe access to shared resources in serial communication functions, including buffer management and read/write operations. This change enhances the robustness of the API by preventing data races during concurrent access.
No description provided.