155 Commits

Author SHA1 Message Date
Philip Howard
234e34450b Synced to git.drogon.net 2013-03-24 20:04:07 +00:00
Gordon Henderson
98bcb20d93 Slight change to the gpio program to fix SPI buffer size when loading
the module.
Typo in gpio man page
Bug fixed in board revision detection (which would never happen
anyway, however)
2013-02-07 21:53:49 +00:00
Gordon Henderson
4c8862eac9 Botched the ALT order in gpio )-:
(Or maybe Broadcom did!!!)
2013-02-02 20:33:51 +00:00
Gordon Henderson
56c77b5a2e Added a clock mode to enable the GPIo pins to be set with
one of the GPCLK drivers to generate a frequency up to
19.2MHz.

Tidied some code up and added the clock functions into the gpio
utility.
2013-02-01 20:19:22 +00:00
Gordon Henderson
4ba36e247a Fixed a minor formatting issue in gpio readall 2013-01-28 16:06:34 +00:00
Gordon Henderson
e8f6258004 Quite a few changes here.
Added in generic 'blink' programs in the examples in C, RTB and Shell.
Updated wiringPi with a little big-file on the millis() function and
added in a new micros() function too.
Updated the examples with standard LGPL headers.
Added a new isr-osc.c test program - just for ISR timing purposes.
2013-01-28 13:00:47 +00:00
Gordon Henderson
db925cea18 Updated the build & makefile to allow for building the
I2C libraries again - but only if the right headers are
installed!
2013-01-19 21:46:13 +00:00
Gordon Henderson
95342e1f83 changed build to not do the I2C checks. 2013-01-19 15:10:48 +00:00
Gordon Henderson
be04c1bd52 Changed the build system to drop I2C for now. Seems to cause too many issues
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.
2013-01-19 10:31:14 +00:00
Gordon Henderson
c82fb8735d Updated the build script to better try to detect lack of i2c-dev
(hopefully!)
Also updated all the mmap code in wiringPiSetup() to make it a bit more
sane and efficient to a degree.
2013-01-15 22:38:21 +00:00
Gordon Henderson
4673e38b1f Change to the build script to check for the presence of the I2C development
libraries.
Bumped gpio version.
2013-01-15 15:45:32 +00:00
Gordon Henderson
c121349a7b Minor changes to messages being printed from wiringPiSetup()
Changed built to work marginally better.
2013-01-15 15:30:26 +00:00
Gordon Henderson
13bbba7a22 Lots of changes here. Added new I2C test code, a new serialTest program,
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!)
2013-01-14 11:31:56 +00:00
Gordon Drogon
dda3305ce1 Updated with latest changes 2012-12-11 20:59:52 +00:00
Gordon Henderson
25e4ec570b Big update here.
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.
2012-12-06 21:49:41 +00:00
Gadgetoid
2a6da9eefe Merge pull request #5 from steve918/patch-1
Update wiringPi/piNes.c
2012-11-09 08:42:40 -08:00
Steven Osborn
89bbe97856 Update wiringPi/piNes.c
Fix double-double quote issue.  Fixes https://github.com/WiringPi/WiringPi/issues/4
2012-10-30 01:18:21 -07:00
Gadgetoid
4ef25b3884 Merge pull request #1 from tomwardill/master
Fix import for python build
2012-10-23 13:27:21 -07:00
Gordon Henderson
a651323139 Latest changes from master repository 2012-10-23 21:15:08 +01:00
Gordon Henderson
183c5a6b5c More changes to help reflect usage on Rev 2 / 512MB Raspberry Pi's.
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
2012-10-21 15:25:16 +01:00
Gordon Henderson
86a5c68e08 Updating gpio manual page 2012-10-02 14:32:12 +01:00
Gordon Henderson
db2edcc9c5 Updated examples makefile to not actually make any code now.
Fixed timing in the LCD library to work with new dealyMicroseconds
Minor typos and bigfixes to the gpio command.
2012-10-02 14:26:15 +01:00
Tom Wardill
8b30932c8b Update wiringPi/piNes.c
Use other style import, for successful local build.
2012-09-20 22:21:06 +02:00
Gordon Henderson
538a066c74 Added in some new functions to return the Pi board revision and
allow access to the wiringPi to BCM_GPIO pin mapping tables.
2012-09-16 11:10:55 +01:00
Gordon Henderson
8cb493937f Improved the PWM functions with help from Chris Hall. 2012-09-16 10:15:32 +01:00
Gordon Henderson
30d79dab76 A-Ha! discovered that overvolted Raspberry Pi's have 10000 added to their
hardware revision number... So have adapted wiringPi to cope.
2012-09-05 21:01:12 +01:00
Gordon Henderson
728cdc4c23 Updated wiringPi to check the the hardware board revision, to
accomodate the changes in pin that are present on the Revision
2 Raspberry Pi board.

Added in simple debugging too - set the environment variable
  WIRINGPI_DEBUG
to get some more debug messages out
2012-09-05 19:26:58 +01:00
Gordon Henderson
ae40bdaf6a Merged from git.drogon.net, SPI driver helpers, C++ wrappers, softPwm, piNes, gertboard, SPI 2012-08-28 18:37:54 +01:00
Gordon Henderson
99095e3fa0 Added new SPI driver helpers.
Changed the gertboard code to use it
and ran more tests on he Gertboard code.
2012-08-27 20:56:14 +01:00
Gordon Henderson
4666573910 Added C++ wrappers for some of the newer .h files 2012-08-25 12:31:14 +01:00
Gordon Henderson
c6799ea998 Updating softPwm to fix some typos. 2012-08-24 19:07:54 +01:00
Gordon Henderson
a20fb1b154 Added software PWM module into wiringPi - library code
and an example.
2012-08-24 17:49:26 +01:00
Gordon Henderson
e636f6213b Merge branch 'master' of git://git.drogon.net/wiringPi 2012-08-20 11:10:18 +01:00
Gordon Henderson
fbab4b8329 Changes to the piNes driver to relect the new delayMicroseconds()
code. Seems the old 4011 in the NES controller isn't that fast
afterall!
2012-08-20 11:08:34 +01:00
Gordon Henderson
870ba4129f Updated pwmWrite to not mask the value written in-case a call
to pumSetRange() happens.

ANDing with 0x3FF was wrong anyway as the PWM counter does from zero
to the top value, not top-1 as I originally thought.
2012-08-19 15:38:25 +01:00
Gordon Henderson
1bb4989e11 Merge branch 'master' of git.drogon.net:projects/wiringPi
Conflicts:
	gpio/gpio.c
2012-08-19 15:33:26 +01:00
Gordon Henderson
178ea08a0f Minor updates to GPIO and README files 2012-08-19 15:17:03 +01:00
Gordon Henderson
f99ffeda40 Updated the GPIO command to add in new features for PWM
Updated wiringPi to add new PWM controls.
2012-08-19 15:12:45 +01:00
Gordon Henderson
c433519cf1 Updated gpio program to fix some minor issues.
Added top-level build script for lazy building.
2012-08-18 20:07:42 +01:00
Gordon Henderson
8fcaefd557 Updated Makefile so that uninstall works properly 2012-08-18 19:11:02 +01:00
Gordon Henderson
c056a9e641 Tidying up 2012-08-18 14:07:12 +01:00
Gordon Henderson
f9bec274ec Tidying up some old debug 2012-08-18 13:53:01 +01:00
Gordon Henderson
4bf5e131e6 Added a description! 2012-08-18 13:22:36 +01:00
Gordon Henderson
c213e051c6 Added some comments about removing the call to pullUpDnControl()
in pinMode ()
2012-08-18 12:04:46 +01:00
Philip Howard
21f0472265 Cleanup, removed redundant COPYING and serial.* files 2012-08-18 09:58:23 +01:00
Gordon Henderson
83214ad8c7 Merge branch 'master' of hermes:git/wiringPi 2012-08-18 08:27:08 +01:00
Gordon Henderson
b23cb44ffa Updated wiringPi.c to work with some pullUpDown stuff
General tidying up of some of the code round delayMicroseconds
2012-08-18 08:22:45 +01:00
Gordon Henderson
0d68ceea6b Updated wiringPi.c to work with some pullUpDown stuff 2012-08-18 00:05:38 +01:00
Gordon Drogon
d24a8fc4cb New timing methods 2012-08-17 10:16:31 +01:00
Gordon Henderson
bf0ad86017 Initial move to GIT 2012-08-16 15:04:43 +01:00