Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge of https://github.com/WiringPi/WiringPi #5

Open
wants to merge 135 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
2c13e61
Initial Commit
Jul 10, 2012
096ca1f
experimental shiftOutWithDelay
Gadgetoid Jul 10, 2012
d677719
Experimental shiftOutWithDelay
Gadgetoid Jul 10, 2012
d8e44ea
Changed shiftOutWithDelay delay to int
Gadgetoid Jul 10, 2012
43aa862
New LCD library plus -v option for gpio binary
Jul 11, 2012
bf0ad86
Initial move to GIT
Aug 16, 2012
d24a8fc
New timing methods
Aug 17, 2012
0d68cee
Updated wiringPi.c to work with some pullUpDown stuff
Aug 17, 2012
b23cb44
Updated wiringPi.c to work with some pullUpDown stuff
Aug 17, 2012
83214ad
Merge branch 'master' of hermes:git/wiringPi
Aug 18, 2012
21f0472
Cleanup, removed redundant COPYING and serial.* files
Gadgetoid Aug 18, 2012
c213e05
Added some comments about removing the call to pullUpDnControl()
Aug 18, 2012
4bf5e13
Added a description!
Aug 18, 2012
f9bec27
Tidying up some old debug
Aug 18, 2012
c056a9e
Tidying up
Aug 18, 2012
8fcaefd
Updated Makefile so that uninstall works properly
Aug 18, 2012
c433519
Updated gpio program to fix some minor issues.
Aug 18, 2012
f99ffed
Updated the GPIO command to add in new features for PWM
Aug 19, 2012
178ea08
Minor updates to GPIO and README files
Aug 19, 2012
1bb4989
Merge branch 'master' of git.drogon.net:projects/wiringPi
Aug 19, 2012
870ba41
Updated pwmWrite to not mask the value written in-case a call
Aug 19, 2012
fbab4b8
Changes to the piNes driver to relect the new delayMicroseconds()
Aug 20, 2012
e636f62
Merge branch 'master' of git://git.drogon.net/wiringPi
Aug 20, 2012
a20fb1b
Added software PWM module into wiringPi - library code
Aug 24, 2012
c6799ea
Updating softPwm to fix some typos.
Aug 24, 2012
4666573
Added C++ wrappers for some of the newer .h files
Aug 25, 2012
99095e3
Added new SPI driver helpers.
Aug 27, 2012
ae40bda
Merged from git.drogon.net, SPI driver helpers, C++ wrappers, softPwm…
Aug 28, 2012
728cdc4
Updated wiringPi to check the the hardware board revision, to
Sep 5, 2012
30d79da
A-Ha! discovered that overvolted Raspberry Pi's have 10000 added to t…
Sep 5, 2012
8cb4939
Improved the PWM functions with help from Chris Hall.
Sep 16, 2012
538a066
Added in some new functions to return the Pi board revision and
Sep 16, 2012
8b30932
Update wiringPi/piNes.c
tomwardill Sep 20, 2012
db2edcc
Updated examples makefile to not actually make any code now.
Oct 2, 2012
86a5c68
Updating gpio manual page
Oct 2, 2012
183c5a6
More changes to help reflect usage on Rev 2 / 512MB Raspberry Pi's.
Oct 21, 2012
a651323
Latest changes from master repository
Oct 23, 2012
4ef25b3
Merge pull request #1 from tomwardill/master
Gadgetoid Oct 23, 2012
89bbe97
Update wiringPi/piNes.c
lolsborn Oct 30, 2012
2a6da9e
Merge pull request #5 from steve918/patch-1
Gadgetoid Nov 9, 2012
25e4ec5
Big update here.
gordonDrogon Dec 6, 2012
dda3305
Updated with latest changes
Dec 11, 2012
13bbba7
Lots of changes here. Added new I2C test code, a new serialTest program,
gordonDrogon Jan 14, 2013
c121349
Minor changes to messages being printed from wiringPiSetup()
gordonDrogon Jan 15, 2013
4673e38
Change to the build script to check for the presence of the I2C devel…
gordonDrogon Jan 15, 2013
c82fb87
Updated the build script to better try to detect lack of i2c-dev
gordonDrogon Jan 15, 2013
be04c1b
Changed the build system to drop I2C for now. Seems to cause too many…
gordonDrogon Jan 19, 2013
95342e1
changed build to not do the I2C checks.
gordonDrogon Jan 19, 2013
db925ce
Updated the build & makefile to allow for building the
gordonDrogon Jan 19, 2013
e8f6258
Quite a few changes here.
gordonDrogon Jan 28, 2013
4ba36e2
Fixed a minor formatting issue in gpio readall
gordonDrogon Jan 28, 2013
56c77b5
Added a clock mode to enable the GPIo pins to be set with
gordonDrogon Feb 1, 2013
4c8862e
Botched the ALT order in gpio )-:
gordonDrogon Feb 2, 2013
98bcb20
Slight change to the gpio program to fix SPI buffer size when loading
gordonDrogon Feb 7, 2013
234e344
Synced to git.drogon.net
Gadgetoid Mar 24, 2013
3fbc564
Synced to git.drogon.net
Mar 24, 2013
ddf1b3f
Merge branch 'master' of https://github.com/WiringPi/WiringPi
Mar 24, 2013
da38443
wiringPi Version 2 - First commit (of v2)
gordonDrogon May 13, 2013
25895a8
Bother. Small issue crept into the SPI code.
gordonDrogon May 13, 2013
bfaf266
Aded lcd-adafruit to test/drive the Adafruit RGB LCD plate
gordonDrogon May 20, 2013
a7c21d3
Bumped version number to 2.04
gordonDrogon May 20, 2013
41fb1b9
Gah. another small fix to the I2C code.
gordonDrogon May 20, 2013
711017e
More typos, added mcp3004/mcp3008
gordonDrogon May 21, 2013
348bc73
Sorted a variable initialisation issue that was giving incorrect results
gordonDrogon May 25, 2013
2769876
Fixed delayMicroseconds for more than 1 second.
gordonDrogon Jun 27, 2013
4a379ec
Properly added the max31855 files now
gordonDrogon Jun 27, 2013
02a3bd8
Readall command in gpio changed.
gordonDrogon Jun 27, 2013
45bfe43
Typo in mcp3002.c
gordonDrogon Jun 30, 2013
4d43c8c
gpio Makefile changed to add PREFIX & DESTDIR
gordonDrogon Jul 14, 2013
27afc01
Added in a max5322 SPI D to A chip
gordonDrogon Jul 16, 2013
8c8578a
Reverted gpio readall to older version - new version is gpio nreadall
gordonDrogon Jul 23, 2013
d24cf06
Added in the SN3218 LED controller IC - as used in the PiGlow
gordonDrogon Jul 23, 2013
cbf6d64
Added in PiGlow devLib and a couple of examples for the PiGlow
gordonDrogon Jul 23, 2013
e25cbc0
Added in the PiGlow devLib extension driver.
gordonDrogon Jul 24, 2013
5e16e15
tidied and tested DRC Serial (renamed it it drcSerial too)
gordonDrogon Jul 28, 2013
f52dd83
Minor changes to the files and removed a bit of debug.
gordonDrogon Jul 28, 2013
477f856
It helps if you add the files into GIT...
gordonDrogon Jul 28, 2013
43422be
Bumped version
gordonDrogon Jul 28, 2013
f18c8f7
Added some tweaks to gpio to set alt modes on pins (sssh!)
gordonDrogon Aug 3, 2013
9074cc8
PULSE_TIME wasn't used.
May 8, 2014
05e2f67
changed to pin mode to support softPwm.
gordonDrogon May 20, 2014
6fba403
Updates for the Raspnerry Pi Compute Module - changes to the gpio pro…
gordonDrogon Jun 24, 2014
7cbb886
Bumped version to 2.15
gordonDrogon Jun 24, 2014
0150b02
Fixed a small bug in the ISR code where it was looking for the gpio p…
gordonDrogon Jun 27, 2014
dca8a19
Updated mostly to the gpio readall command to support the Raspberry P…
gordonDrogon Jul 14, 2014
df45388
Fixed a bug in the gpio readall command on model B's (caused by a sid…
gordonDrogon Jul 17, 2014
0a9fdeb
Minor changes to the PiGlow code - got the orange & yellow the right way
gordonDrogon Nov 10, 2014
d42e831
Updated versions for new maker - mbest
gordonDrogon Jan 7, 2015
51fff3c
Updated a technicality in softPwm, and added a suggested memset to zero
gordonDrogon Jan 29, 2015
eb1fc2c
Updates to the build process
gordonDrogon Jan 30, 2015
7cb8174
OK, so an easier way to manage versions.
gordonDrogon Jan 31, 2015
72b2af2
OK. So the Pi v2 I have had older firmware and it wasn't quite
gordonDrogon Feb 3, 2015
5edd177
Updated the board types to cope with an 0014 version in the new compu…
gordonDrogon Mar 8, 2015
e7ca03a
delete duplicated FSEL_ALT0 definition.
IsaoNakamura Aug 21, 2015
95a2928
Build system: Add missing set -e
ijackson Sep 9, 2015
2ab836e
Build system: Add a .gitignore
ijackson Sep 9, 2015
cf6f381
Build system: Add a formulaic setting of Q from V for debugging
ijackson Sep 9, 2015
da03f9e
Build system: Enable V=1 to disable @'s
ijackson Sep 9, 2015
5f7dc32
Build system: Remove a trailing tab from gpio/Makefile
ijackson Sep 9, 2015
a6ee925
Build system: Fix ./build debian
ijackson Sep 10, 2015
f8a0251
Build system: Fix erroneous symlink in devLib/Makefile
ijackson Sep 10, 2015
a19bfb5
examples/blink.sh: Add missing +x bit with chmod
ijackson Sep 12, 2015
532083f
Manpage gpio(1): Regularise header
ijackson Sep 12, 2015
ac0f074
Build system: Move template-based debian build into debian-template
ijackson Sep 12, 2015
73aa895
build: Introduce a variable "$sudo" and honour WIRINGPI_SUDO
ijackson Sep 12, 2015
508d6b3
Makefiles: Do not override PREFIX or DESTDIR from the environment
ijackson Sep 12, 2015
f5dd04b
Makefiles: Honour LDCONFIG from the environment
ijackson Sep 12, 2015
3ceb07a
Makefiles: Honour WIRINGPI_SUDO=0
ijackson Sep 12, 2015
ae421d4
Makefiles: Honour WIRINGPI_SONAME_SUFFIX
ijackson Sep 12, 2015
a776e6b
Introduce a proper Debian source package build system
ijackson Sep 12, 2015
170dce5
Updated the Debian build system thanks to Ian Jackson for the
gordonDrogon Sep 20, 2015
f6c40cb
Fixed the requirement for -lm
gordonDrogon Sep 24, 2015
d795066
Fixing a few issues - makefile goofs.
gordonDrogon Sep 30, 2015
bb6f084
Updated wiringPi for the new Pi Zero.
gordonDrogon Nov 29, 2015
31a8a2c
gpio readall didn't work on the Zero. This fixed that little goof
gordonDrogon Dec 2, 2015
78b5c32
Bumped Version to 2.31
gordonDrogon Dec 2, 2015
143b383
Added support for the Pimoroni scrollPhat
gordonDrogon Jan 28, 2016
2dbecfc
Minor change to the scroll phat test program, and bumped the version.
gordonDrogon Jan 28, 2016
26c7fe3
Updated from git.drogon.net
Gadgetoid Feb 27, 2016
a402cac
Removed redundant files
Gadgetoid Feb 27, 2016
579a7b8
Removed pesky piFaceOld.c
Gadgetoid Feb 27, 2016
e488b1b
Merge pull request #34 from IsaoNakamura/wrkStudy
Gadgetoid Feb 27, 2016
39d5362
Merge pull request #19 from Firobe/patch-1
Gadgetoid Feb 27, 2016
b0a60c3
Many changes - tidying up the extensions interfaces.
gordonDrogon Feb 29, 2016
9a8f8be
Updated from git.drogon.net
Gadgetoid Feb 29, 2016
b1dfc18
A new version of wiringPi. Added in more stuff and fixed it up
gordonDrogon Dec 12, 2016
e77ee78
Minor changes for the CM3.
gordonDrogon Jan 21, 2017
e687f3f
Pushing to 2.39 as I have have not done the last one rightly...
gordonDrogon Jan 24, 2017
5066e09
Merge branch 'master' of git://git.drogon.net/wiringPi
Gadgetoid Feb 3, 2017
70fa99a
Bumped the version to 2.40 - correctly this time, I hope.
gordonDrogon Feb 27, 2017
e8da87f
Added a fix to include -lcrypt for people who can't do it themselves.
gordonDrogon Mar 1, 2017
96344ff
Fixed GPIO based address for Pi Zero-W
gordonDrogon Mar 3, 2017
c947643
Merge branch 'master' of git://git.drogon.net/wiringPi
Gadgetoid Mar 8, 2017
59a6dd0
Merge of https://github.com/WiringPi/WiringPi
May 22, 2017
9aab315
Merge remote-tracking branch 'origin/master'
May 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.o
*.so
lib*.so.*
*~
debian-template/wiringPi
debian-template/wiringpi-*.deb
gpio/gpio
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.25
2.44
44 changes: 28 additions & 16 deletions build
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
#!/bin/sh -e

# build
# Simple wiringPi build and install script
#
# Copyright (c) 2012-2015 Gordon Henderson
#################################################################################
# This file is part of wiringPi:
# Wiring Compatable library for the Raspberry Pi
# A "wiring" library for the Raspberry Pi
#
# wiringPi is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -43,6 +43,8 @@ check_make_ok() {
fi
}

sudo=${WIRINGPI_SUDO-sudo}

if [ x$1 = "xclean" ]; then
cd wiringPi
echo -n "wiringPi: " ; make clean
Expand All @@ -60,32 +62,34 @@ if [ x$1 = "xclean" ]; then
echo -n "Quick2Wire: " ; make clean
cd ../PiGlow
echo -n "PiGlow: " ; make clean
cd ../scrollPhat
echo -n "scrollPhat: " ; make clean
exit
fi

if [ x$1 = "xuninstall" ]; then
cd wiringPi
echo -n "wiringPi: " ; sudo make uninstall
echo -n "wiringPi: " ; $sudo make uninstall
cd ../devLib
echo -n "DevLib: " ; sudo make uninstall
echo -n "DevLib: " ; $sudo make uninstall
cd ../gpio
echo -n "gpio: " ; sudo make uninstall
echo -n "gpio: " ; $sudo make uninstall
exit
fi

# Only if you know what you're doing!

if [ x$1 = "xdebian" ]; then
here=`pwd`
cd debian/wiringPi
cd debian-template/wiringPi
rm -rf usr
cd $here/wiringPi
make install-deb
cd $here/devLib
make install-deb
make install-deb INCLUDE='-I. -I../wiringPi'
cd $here/gpio
make install-deb
cd $here/debian
make install-deb INCLUDE='-I../wiringPi -I../devLib' LDFLAGS=-L../debian-template/wiringPi/usr/lib
cd $here/debian-template
fakeroot dpkg-deb --build wiringPi
mv wiringPi.deb wiringpi-`cat $here/VERSION`-1.deb
exit
Expand Down Expand Up @@ -121,30 +125,30 @@ fi
echo
echo "WiringPi Library"
cd wiringPi
sudo make uninstall
$sudo make uninstall
if [ x$1 = "xstatic" ]; then
make -j5 static
check_make_ok
sudo make install-static
$sudo make install-static
else
make -j5
check_make_ok
sudo make install
$sudo make install
fi
check_make_ok

echo
echo "WiringPi Devices Library"
cd ../devLib
sudo make uninstall
$sudo make uninstall
if [ x$1 = "xstatic" ]; then
make -j5 static
check_make_ok
sudo make install-static
$sudo make install-static
else
make -j5
check_make_ok
sudo make install
$sudo make install
fi
check_make_ok

Expand All @@ -153,9 +157,17 @@ fi
cd ../gpio
make -j5
check_make_ok
sudo make install
$sudo make install
check_make_ok

# echo
# echo "wiringPi Daemon"
# cd ../wiringPiD
# make -j5
# check_make_ok
# $sudo make install
# check_make_ok

# echo
# echo "Examples"
# cd ../examples
Expand Down
9 changes: 9 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.debhelper.log
*.substvars
tmp
wiringpi
libwiringpi2
libwiringpi-dev
files
*.postinst.debhelper
*.postrm.debhelper
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
wiringpi (2.26~iwj) rpi-unstable; urgency=low

* Initial version with real Debian source package build.

-- Ian Jackson <[email protected]> Sat, 12 Sep 2015 18:31:35 +0100

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
29 changes: 29 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Source: wiringpi
Section: electronics
Priority: optional
Maintainer: Ian Jackson <[email protected]>
Standards-Version: 3.8.0
Homepage: http://wiringpi.com/
Build-Depends: debhelper (>= 8)

Package: libwiringpi2
Section: libs
Architecture: armhf
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GPIO librariees for Raspberry Pi (runtime).
Runtime for the popular wiringPi library.

Package: wiringpi
Architecture: armhf
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: gpio utility for Raspberry Pi
The wiringPi gpio command line utility, for GPIO access on a
Raspberry Pi from the command line.

Package: libwiringpi-dev
Architecture: armhf
Depends: libwiringpi2 (= ${binary:Version}), libc6-dev, ${misc:Depends}
Suggests: wiringpi
Description: GPIO development library for Raspberry Pi
Development libraries to allow GPIO access on a Raspberry Pi from C
and C++ programs.
15 changes: 15 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
wiringPi is Copyright (C) 2012-2015 Gordon Henderson.

wiringPi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License, as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

wiringPi is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

On all Debian and Raspbian systems, a copy of the GNU Lesser General
Public License version 3 can be found in
`/usr/share/common-licenses/LGPL-3'.
2 changes: 2 additions & 0 deletions debian/libwiringpi-dev.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib
usr/include
3 changes: 3 additions & 0 deletions debian/libwiringpi-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
debian/tmp/usr/include
debian/tmp/usr/lib/*.so
examples usr/share/doc/libwiringpi-dev
1 change: 1 addition & 0 deletions debian/libwiringpi2.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/tmp/usr/lib/lib*.so.*
2 changes: 2 additions & 0 deletions debian/libwiringpi2.shlibs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libwiringPi 2 libwiringpi2
libwiringPiDev 2 libwiringpi2
49 changes: 49 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/make -f

.PHONY: build

VERSION:=$(shell cat VERSION)
export VERSION

soname:=$(shell echo $${VERSION%%.*})
WIRINGPI_SONAME_SUFFIX:=.$(soname)
export soname
export WIRINGPI_SONAME_SUFFIX

build:
dh $@

override_dh_auto_configure:

override_dh_prep:
dh_prep -Xdebian/tmp

dirs:
dh_installdirs -A
mkdir debian/tmp
set -e; for p in `dh_listpackages`; do \
(cd debian/$$p; find -type d) | \
(cd debian/tmp; xargs mkdir -p) \
done

override_dh_clean:
dh_clean
WIRINGPI_SUDO= bash -xe ./build clean

override_dh_auto_build: dirs
V=1 LDCONFIG=: WIRINGPI_SUDO= WIRINGPI_SUID=0 \
DESTDIR=`pwd`/debian/tmp/usr \
PREFIX= WIRINGPI_SUDO= \
bash -xe ./build

override_dh_auto_install:
dh_install
set -ex; for l in libwiringPi libwiringPiDev; do \
ln -sf $$l.so.$${VERSION} \
debian/libwiringpi$$soname/usr/lib/$$l.so.$$soname; \
ln -sf $$l.so.$${VERSION} \
debian/libwiringpi-dev/usr/lib/$$l.so; \
done

%:
dh $@
10 changes: 0 additions & 10 deletions debian/wiringPi/DEBIAN/control

This file was deleted.

5 changes: 0 additions & 5 deletions debian/wiringPi/DEBIAN/postinst

This file was deleted.

2 changes: 0 additions & 2 deletions debian/wiringPi/DEBIAN/postrm

This file was deleted.

1 change: 1 addition & 0 deletions debian/wiringpi.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin
4 changes: 4 additions & 0 deletions debian/wiringpi.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
debian/tmp/usr/bin
debian/tmp/usr/man usr/share
README.TXT usr/share/doc/wiringpi
People usr/share/doc/wiringpi
Loading