1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Release examples as public domain.

This commit is contained in:
Martin Ling 2020-01-05 14:53:09 +00:00 committed by Uwe Hermann
parent ad19d60493
commit ee12a01e52
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# A simple Makefile to build the examples in this directory.
#
# This example file is released to the public domain.
CC = gcc CC = gcc
PKG_CONFIG = pkg-config PKG_CONFIG = pkg-config
CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport) CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)

View File

@ -22,3 +22,5 @@ paths in your environment to suit your system.
You can also build these examples using any other compiler, IDE or build You can also build these examples using any other compiler, IDE or build
system. You just need the libserialport.h header available to compile them, system. You just need the libserialport.h header available to compile them,
and the libserialport library available to link and run them. and the libserialport library available to link and run them.
These example files are hereby released into the public domain by the author.

View File

@ -1,7 +1,9 @@
#include <libserialport.h> #include <libserialport.h>
#include <stdio.h> #include <stdio.h>
/* Example of how to get a list of serial ports on the system. */ /* Example of how to get a list of serial ports on the system.
*
* This example file is released to the public domain. */
int main(int argc, char **argv) int main(int argc, char **argv)
{ {

View File

@ -1,7 +1,9 @@
#include <libserialport.h> #include <libserialport.h>
#include <stdio.h> #include <stdio.h>
/* Example of how to get information about a serial port. */ /* Example of how to get information about a serial port.
*
* This example file is released to the public domain. */
int main(int argc, char **argv) int main(int argc, char **argv)
{ {