Mise à jour de 'README.md'
This commit is contained in:
parent
1c4cacffb6
commit
05f6aa30e8
12
README.md
12
README.md
|
@ -1,15 +1,17 @@
|
|||
# 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`
|
||||
|
||||
installation into the right compiler folder is not automatic.
|
||||
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue