Un essai pour faire causer les CG10/20/50 via le port serial 3-pins
Go to file
Sylvain PILLOT 05f6aa30e8 Mise à jour de 'README.md' 2022-07-09 18:03:56 +02:00
include first commit 2022-05-11 12:58:14 +02:00
src first commit 2022-05-11 12:58:14 +02:00
.gitignore add a GiteaPC build system 2022-07-09 12:55:52 +01:00
Makefile also install the header 2022-07-09 13:00:56 +01:00
README.md Mise à jour de 'README.md' 2022-07-09 18:03:56 +02:00
giteapc.make add a GiteaPC build system 2022-07-09 12:55:52 +01:00

README.md

Sources for compiling a lib devoted to use Serial port 3-pins of CG10/20/50

% giteapc install Slyvtt/libSerial

to get the library, and then just #include <serial.h> and -lserial to use it.

just run make in the root directory of the project. it will produce the library libserial.a

So you need to copy libserial.a in the lib folder of sh-elf-gcc compiler and the file include/serial.h into the include directory

make install will install the lib and the header files in the right directories.

make clean cleans all the .o and the library from the sources folders.

In order to use the lib, then just #include <serial.h> and -lserial to use it.