snipplets.dev/code/C/libserialport
2023-09-26 22:05:13 +03:00
..
Board move dirs 2023-09-26 22:05:13 +03:00
.editorconfig move dirs 2023-09-26 22:05:13 +03:00
.gitignore move dirs 2023-09-26 22:05:13 +03:00
build_gcc move dirs 2023-09-26 22:05:13 +03:00
build_tcc move dirs 2023-09-26 22:05:13 +03:00
clear move dirs 2023-09-26 22:05:13 +03:00
format-code move dirs 2023-09-26 22:05:13 +03:00
listen.c move dirs 2023-09-26 22:05:13 +03:00
README.md move dirs 2023-09-26 22:05:13 +03:00

Download libserialport library.

git clone git://sigrok.org/libserialport

For build code use build script or build files manually.

Example:

export C_INCLUDE_PATH=<path/to/libserialport>
export LIBRARY_PATH=<path/to/libserialport/.libs>

gcc -static -Wall -O3 -o <output_filename> <file.c> -lserialport

Arduino example project store in Board folder.