Skip to content

Commit f65a5e2

Browse files
committed
Merge pull request #10 from Robertof/various-fixes
Update to v0.3.3: support for installing the library, README.md fixups and additions
2 parents 885c48f + 47a4071 commit f65a5e2

File tree

4 files changed

+52
-9
lines changed

4 files changed

+52
-9
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Change Log
22
==========
33

4+
v0.3.3
5+
------
6+
- Added the "install" target to Makefile.
7+
- Small fixups and additions to README.md
8+
49
v0.3.2
510
------
611
- Fixed issue #8 - added memset to clear transfer struct.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,8 @@ interrupt_example: interrupt_example.c
4747
gcc -o interrupt_example interrupt_example.c -Isrc/ -L. -lmcp23s17
4848

4949
clean:
50-
rm -f $(OBJECTS)
50+
rm -f $(OBJECTS)
51+
52+
install: $(BINARY)
53+
install src/mcp23s17.h /usr/local/include
54+
install $(BINARY) /usr/local/lib

README.md

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,54 @@
11
libmcp23s17
22
===========
3-
A simple library for accessing the MCP23S17 port expander through SPI. See
4-
`example.c` for ideas on how to use.
3+
4+
A simple library for accessing the [MCP23S17](http://www.microchip.com/MCP23S17)
5+
port expander through SPI.
6+
7+
Building
8+
--------
9+
10+
To build the library, use:
11+
12+
$ make
13+
14+
Install the library to `/usr/local` using:
15+
16+
$ make install
17+
18+
To test the library, compile and execute the example program:
19+
20+
$ make example
21+
$ ./example
22+
23+
Another example program, using interrupts, is available. Build with:
24+
25+
$ make interrupt_example
26+
$ ./interrupt_example
27+
28+
Usage
29+
-----
30+
31+
See `example.c` and `interrupt_example.c` for ideas on how to use.
32+
33+
Compile your software with the following flag:
34+
35+
-lmcp23s17
36+
37+
You can specify the path of the library manually, using:
38+
39+
-I/path/to/headers -L/path/to/libmcp23s17 -lmcp23s17
540

641
Documentation
742
-------------
843

9-
[http://piface.github.io/libmcp23s17](http://piface.github.io/libmcp23s17)
44+
An online version of the documentation is available at http://piface.github.io/libmcp23s17.
1045

11-
Build the docs with:
46+
Build it with (assuming that you are in the directory of the cloned repository):
1247

13-
$ git clone https://github.com/piface/libmcp23s17.git
14-
$ cd libmcp23s17/docs/
48+
$ cd docs/
1549
$ doxygen libmcp23s17-doc.conf
1650

17-
To view as HTML, point your browser to `libmcp23s17/docs/html/index.html`.
51+
To view as HTML, point your browser to `docs/html/index.html`.
1852

1953
To view as PDF:
2054

docs/libmcp23s17-doc.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PROJECT_NAME = libmcp23s17
3232
# This could be handy for archiving the generated documentation or
3333
# if some version control system is used.
3434

35-
PROJECT_NUMBER = 0.3.0
35+
PROJECT_NUMBER = 0.3.3
3636

3737
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3838
# for a project that appears at the top of each page and should give viewer

0 commit comments

Comments
 (0)