139 Commits

Author SHA1 Message Date
cuu
f06b33c66b apply a06 patch 2021-08-23 15:30:36 +08:00
Mark Liffiton
03e88aef04 One last 2.46->2.50 file update. final_official_2.50 2019-12-29 20:12:14 -06:00
Steve Baker
03204c3807 Sync with changes from wiringpi_2.50.orig.tar.gz
Sourced from http://archive.ubuntu.com/ubuntu/pool/universe/w/wiringpi/wiringpi_2.50.orig.tar.gz
2019-12-14 13:42:07 +13:00
Mark Liffiton
093e0a17a4 Merge branch 'master' of git://git.drogon.net/wiringPi (v2.46) 2018-07-02 09:51:45 -05:00
Gordon Henderson
8d188fa0e0 update for the v3+ 2018-03-14 07:17:04 +00:00
Philip Howard
0f7d03d9f0 Update README.TXT 2017-08-12 11:06:53 +01:00
Phil Howard
c947643601 Merge branch 'master' of git://git.drogon.net/wiringPi 2017-03-08 16:13:57 +00:00
Gordon Henderson
96344ff712 Fixed GPIO based address for Pi Zero-W 2017-03-03 15:56:24 +00:00
Gordon Henderson
e8da87fbac Added a fix to include -lcrypt for people who can't do it themselves.
Added gpio readall support for the Pi 0W.
2017-03-01 11:55:19 +00:00
Gordon Henderson
70fa99a127 Bumped the version to 2.40 - correctly this time, I hope.
Added fixed for a few minor things. pin driver for rht03/dht type
sensors. Network stuff is experimental - for now.
2017-02-27 19:51:32 +00:00
Phil Howard
5066e09747 Merge branch 'master' of git://git.drogon.net/wiringPi 2017-02-03 16:02:42 +00:00
Gordon Henderson
e687f3f2c6 Pushing to 2.39 as I have have not done the last one rightly... 2017-01-24 12:13:39 +00:00
Gordon Henderson
e77ee78b4d Minor changes for the CM3.
Fixed some compiler warnings.
New wiringPi version mechanism.
Put 4800 baud (back) into the system.
Re-added piBoardRev (really an alias of piGpioLayout())
2017-01-21 17:35:10 +00:00
Gordon Henderson
b1dfc186ef A new version of wiringPi. Added in more stuff and fixed it up
for kernels 4.8 onwards.

Some very old stuff might break.

Additional fixes for the ISR code and some tweaks here and
there. I've removed the checks for some operations that might
fail when using the gpiomem interface - which is now the default
way of doing things - if your program segfaults, then you
may need to use sudo on it.
2016-12-12 14:19:55 +00:00
Phil Howard
9a8f8bee5d Updated from git.drogon.net 2016-02-29 11:46:13 +00:00
Gordon Henderson
b0a60c3302 Many changes - tidying up the extensions interfaces.
Updating the GPIO command - new command - allreadall
ScrollPhat code
max31855 code (tested with adafruit breakout board)
more tests
updated rht03 code

Raspberry Pi v3 support.
2016-02-29 06:57:38 +00:00
Philip Howard
39d53628e6 Merge pull request #19 from Firobe/patch-1
PULSE_TIME wasn't used.
2016-02-27 16:51:24 +00:00
Philip Howard
e488b1bc25 Merge pull request #34 from IsaoNakamura/wrkStudy
delete duplicated FSEL_ALT0 definition.
2016-02-27 16:49:04 +00:00
Phil Howard
579a7b839a Removed pesky piFaceOld.c 2016-02-27 16:30:24 +00:00
Phil Howard
a402cac920 Removed redundant files 2016-02-27 16:25:17 +00:00
Phil Howard
26c7fe3332 Updated from git.drogon.net 2016-02-27 16:03:10 +00:00
Gordon Henderson
2dbecfca0a Minor change to the scroll phat test program, and bumped the version. 2016-01-28 21:36:30 +00:00
Gordon Henderson
143b383b8d Added support for the Pimoroni scrollPhat
Added support for the ADS1115 16-bit ADC
Updated the gpio readall command to correctly with with the Compute Module
and fixed a resulting bug in wiringPi...
2016-01-28 19:20:31 +00:00
Gordon Henderson
78b5c323b7 Bumped Version to 2.31 2015-12-02 15:13:50 +00:00
Gordon Henderson
31a8a2cdb8 gpio readall didn't work on the Zero. This fixed that little goof 2015-12-02 15:13:01 +00:00
Gordon Henderson
bb6f08487c Updated wiringPi for the new Pi Zero.
Also affects the Pi v2 which also uses the new Revision
encoding scheme (It was slightly bodged before) This ought
to be relatively future proof, but who knows.

Fixed a minor thing in the examples Makefile
(not that anyone bothers to use it, judging by the emails I get )-:
2015-11-29 21:08:04 +00:00
Gordon Henderson
d79506694d Fixing a few issues - makefile goofs.
Also adding in the stuff for /dev/gpiomem with warnings
and information in the gpio manual page (who reads that
though!)
2015-09-30 16:11:42 +01:00
Gordon Henderson
f6c40cb2a6 Fixed the requirement for -lm
Updated the gpio program to be device tree aware.
2015-09-24 22:35:31 +01:00
Gordon Henderson
170dce5f19 Updated the Debian build system thanks to Ian Jackson for the
help.
2015-09-20 19:30:38 +01:00
Ian Jackson
a776e6b0e8 Introduce a proper Debian source package build system
It's not perfect - there is no symbol versioning, and I have had to
make some (perhaps false) assumptions about library ABI stability, but
it does produce something vaguely resembling what would be expected
from a library package found in Debian, and it does so using the
standard Debian source format.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:21 +01:00
Ian Jackson
ae421d4a9c Makefiles: Honour WIRINGPI_SONAME_SUFFIX
This makes it possible for the caller of ./build to add a version
number to the sonames of the shared libraries.  (This is required for
Debian packages.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:20 +01:00
Ian Jackson
3ceb07a9a6 Makefiles: Honour WIRINGPI_SUDO=0
This makes it possible for the caller of ./build to suppress the
chown/chmod of the gpio utility.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:20 +01:00
Ian Jackson
f5dd04b5ae Makefiles: Honour LDCONFIG from the environment
This is not set in normal shell sessions.

Honouring an existing setting of LDCONFIG allows the caller of ./build
to specify an alternative program to run.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:20 +01:00
Ian Jackson
508d6b31bd Makefiles: Do not override PREFIX or DESTDIR from the environment
These are not set in normal shell sessions.  Honouring existing
settings allows the caller of ./build to specify alternative values.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:20 +01:00
Ian Jackson
73aa8956c5 build: Introduce a variable "$sudo" and honour WIRINGPI_SUDO
We are going to want to not run sudo sometimes.  So replace literal
invocations of sudo with a variable, which is set to `sudo' by
default, but can be overridden from the environment.

No functional change if the environment variable is not set.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:20 +01:00
Ian Jackson
ac0f074ff7 Build system: Move template-based debian build into debian-template
We are going to want to introduce a real Debian source package build
system.  But that needs to contain a lot of things in debian/ which
ought not to appear in the .deb made by the existing ad-hoc `./build
debian' arrangements, which we want to keep so as not to unduly
disturb existing users.

So rename the whole debian/ directory to debian-template/ and change
all references in the build system.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:19 +01:00
Ian Jackson
532083f474 Manpage gpio(1): Regularise header
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:19 +01:00
Ian Jackson
a19bfb5798 examples/blink.sh: Add missing +x bit with chmod
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:19 +01:00
Ian Jackson
f8a025189f Build system: Fix erroneous symlink in devLib/Makefile
The symlink libwiringPiDev.so was mistakenly created pointing to
libwiringPi.so.$(VERSION) (note lack of Dev), ie to the wrong library.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:29 +00:00
Ian Jackson
a6ee925df6 Build system: Fix ./build debian
We need to -I and -L the build tree directories, not the directories
in /usr/local or wheveever.  Otherwise (a) the `./debian build' fails
if wiringPi is not installed (b) if it _is_ installed, the build picks
up the installed versions rather than the versions being built, which
is wrong.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:29 +00:00
Ian Jackson
5f7dc3263b Build system: Remove a trailing tab from gpio/Makefile
emacs complains about this line, because it thinks lines with just a
tab on in Makefiles are suspicious.  Remove the needless tab.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:29 +00:00
Ian Jackson
da03f9ed2f Build system: Enable V=1 to disable @'s
This patch is autogenerated, with:
  git-ls-files | grep Makefile | xargs perl -i~ -pe 's/^\t\@/\t\$Q /'

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:28 +00:00
Ian Jackson
cf6f38107e Build system: Add a formulaic setting of Q from V for debugging
We want to be able to disable the many @'s in the Makefiles so
that we can see what they are doing, when things go wrong.  It is
conventional to arrange for setting V=1 to have this effect.

Here we supply a formulaic stanza for either setting Q?=@ or
doing nothing.  (There is sadly no standard place which is
included in all the Makefiles so this is probably best).

In this patch we do not introduce any users of Q yet.  This is
because the next patch, which introduces all the users of Q, can
be generated entirely automatically.  (This is also convenient in
case something needs to be rebased across it.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:28 +00:00
Ian Jackson
2ab836ecea Build system: Add a .gitignore
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:28 +00:00
Ian Jackson
95a292824f Build system: Add missing set -e
So that shell scripts do not blunder on after errors.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-09 23:30:16 +00:00
IsaoNakamura
e7ca03ac8e delete duplicated FSEL_ALT0 definition. 2015-08-21 20:54:36 +09:00
Gordon Henderson
5edd177112 Updated the board types to cope with an 0014 version in the new compute module 2015-03-08 16:59:33 +00:00
Gordon Henderson
72b2af231b OK. So the Pi v2 I have had older firmware and it wasn't quite
the same as everyone elses.

This is an interim version which will work on both Pi v1 and v2
boards until I have a bit more time to implement the correct
stuff for v2.
2015-02-03 14:53:32 +00:00
Gordon Henderson
7cb817498e OK, so an easier way to manage versions.
Debian package creation - crude, probably violated the Debian policys
but it seems to work just fine...
some other changes.
2015-01-31 16:43:08 +00:00
Gordon Henderson
eb1fc2c920 Updates to the build process
Moved the extensions into wiringPi from gpio and made it more general purpose
more so that RTB and anything else can dymanically add devices
into wiringPi.
Changes to GPIO to updates for the SPI and I2C module loads
Added gpio unload for SPI and I2C.

Added a new way to setup SPI - by passing the mode in.

Support for the new Pi2 thing too
2015-01-30 18:14:49 +00:00