snipplets.dev/snipplets/code/C/libserialport
Alexander Popov c2ef252c14
update folders
2023-08-05 22:45:06 +03:00
..
Board update folders 2023-08-05 22:45:06 +03:00
.editorconfig update folders 2023-08-05 22:45:06 +03:00
.gitignore update folders 2023-08-05 22:45:06 +03:00
README.md update folders 2023-08-05 22:45:06 +03:00
build_gcc update folders 2023-08-05 22:45:06 +03:00
build_tcc update folders 2023-08-05 22:45:06 +03:00
clear update folders 2023-08-05 22:45:06 +03:00
format-code update folders 2023-08-05 22:45:06 +03:00
listen.c update folders 2023-08-05 22:45:06 +03:00

README.md

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.