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.
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...
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>
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>
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>
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>
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>
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>
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
on non Raspbian systems (and even on some Raspbian systems it would appear ):
fixed a timing issue on softTone
fixed some issues in wiringPisetup introduced when optimising the mmap calls.
and developed the new ISR - Interrupt Service Routine
handler - much easier than the old waitForInterrupt code!
Minor tweaks to the gpio program to recognise the environment variable
WIRINGPI_DEBUG too, and removed the printing of the errors from the
main wiringPi setup routines (and added some new ones!)
delayMicrosecondsHard re-written - again.
Added a serialRead example program, and added in the okLed
to the examples too.
Updated/checked some of the GPIO/PWM code.
Added in some experimental servo and tone generating code and
and example or 2.
Tweaks to the gpio command to correctly load the I2C modules too.
Also Makefile tweaks to help improve things somewhat - decided to
read the Makefile manual after some 15 years to updated my make
grey cells somewhat.
New command in the gpio command - readall