Added new SPI driver helpers.

Changed the gertboard code to use it
and ran more tests on he Gertboard code.
This commit is contained in:
Gordon Henderson
2012-08-27 20:56:14 +01:00
parent 4666573910
commit 99095e3fa0
7 changed files with 331 additions and 100 deletions

View File

@@ -38,12 +38,12 @@ LIBS =
SRC = wiringPi.c wiringPiFace.c wiringSerial.c wiringShift.c \
gertboard.c \
piNes.c \
lcd.c piHiPri.c piThread.c softPwm.c
lcd.c piHiPri.c piThread.c softPwm.c wiringPiSPI.c
OBJ = wiringPi.o wiringPiFace.o wiringSerial.o wiringShift.o \
gertboard.o \
piNes.o \
lcd.o piHiPri.o piThread.o softPwm.o
lcd.o piHiPri.o piThread.o softPwm.o wiringPiSPI.o
all: $(TARGET)
@@ -78,6 +78,7 @@ install: $(TARGET)
install -m 0644 piNes.h /usr/local/include
install -m 0644 softPwm.h /usr/local/include
install -m 0644 lcd.h /usr/local/include
install -m 0644 wiringPiSPI.h /usr/local/include
install -m 0644 libwiringPi.a /usr/local/lib
uninstall: