Commit Graph

168 Commits

Author SHA1 Message Date
Robert von Burg 9f850683db Merge remote-tracking branch 'wiringPi/Gadgetoid-patch-readme' 2020-09-23 17:20:13 +02:00
Robert von Burg 30f2547baf Merge remote-tracking branch 'wiringPi/master'
# Conflicts:
#	devLib/Makefile
#	gpio/Makefile
#	wiringPi/Makefile
#	wiringPiD/Makefile
2020-09-23 17:19:41 +02:00
Robert von Burg 0282822112 Merge branch 'master' into armhf 2020-09-23 17:03:39 +02:00
Robert von Burg 7e9700525b Merged changes from master 2020-09-23 17:03:04 +02:00
Philip Howard 6b2edc5b4e
Update README.md 2020-09-18 22:43:01 +01:00
Philip Howard 5c6bab7d42
Merge pull request #79 from DavidAntliff/debian-fix
Remove hard-coded destination paths for debian package creation.
2020-09-14 15:02:31 +01:00
Philip Howard 6d9ce35f00
Merge pull request #73 from CoRfr/master
Make external CC declaration possible
2020-09-14 14:59:54 +01:00
David Antliff f9ff3b4d35 Remove hard-coded destination paths for debian package creation. 2020-09-03 13:18:01 +12:00
Mark Liffiton 50b7c5ed7d
Merge pull request #75 from ykla/master
Add piMemorySize for rpi4b
2020-04-07 21:53:39 -05:00
FindWaySociety-ykla 7d8188d0bf
Add piMemorySize for rpi4
#include <stdio.h>

int main()
{
	int bRev, bType, bProc, bMfg, bMem, bWarranty ;
	int revision = 12595474; //Convert hexadecimal to decimal
	bRev      = (revision & (0x0F <<  0)) >>  0 ;
        bType     = (revision & (0xFF <<  4)) >>  4 ;
        bProc     = (revision & (0x0F << 12)) >> 12 ;	// Not used for now.
        bMfg      = (revision & (0x0F << 16)) >> 16 ;
        bMem      = (revision & (0x07 << 20)) >> 20 ;
       bWarranty = (revision & (0x03 << 24)) != 0 ;
       printf ("piBoardId: rev: %d, type: %d, proc: %d, mfg: %d, mem: %d, warranty: %d\n",
		bRev, bType, bProc, bMfg, bMem, bWarranty) ;

   return 0;
}

/* revision see https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md 
*RPI revision is HEX.*\
2020-04-07 17:19:45 +08:00
Robert von Burg 8f51d23298 [Fix] Don't use absolute path for install-deb targets 2020-03-04 13:48:05 +01:00
Robert von Burg 6a727c6409 [Fix] Don't use absolute path for install-deb targets 2020-03-04 13:46:46 +01:00
neuralassembly 230d92e4a4 Keeping compatibility of hardware clock of Pi 4 with earlier versions.
(cherry picked from commit 651136a110)
2020-03-04 13:38:40 +01:00
Mark Liffiton 9f38fd5b87 Update README, convert to markdown
With Gordon ending development of WiringPi, this repository needs to reflect the situation accurately and differentiate between Gordon's final code release and updates made since then.

(cherry picked from commit 2a8e57a1c7)
2020-03-04 13:38:19 +01:00
Steve Baker dd9787782e Increment version to 2.60
Now that the upstream maintainer has abandoned this project without
establishing another maintainer, its difficult to choose an appropriate
version number. Going with 2.60 for now, as this only has incremental
changes to support 4B.

(cherry picked from commit 9aed9a4415)
2020-03-04 13:36:49 +01:00
Steve Baker 2bd6d6d053 Fix GPIO pull up/down for Pi4B
Based on this raspi-gpio commit[1] the 2711 chip uses a different method
for pull up/down. This change implements that same method.

With this change, wiringPi now works for the Pi4B with the subset of
functionality used by zynthian.

[1] 80fa7d04ea?diff=unified

(cherry picked from commit 41f941a78e)
2020-03-04 13:36:42 +01:00
Steve Baker f661257956 Use correct peripheral address for Pi4B
(cherry picked from commit a49f696232)
2020-03-04 13:36:31 +01:00
Steve Baker bf01cff77c Add support for Raspberry Pi 4B
This change make the following commands correctly detect the 4B
however there may be an issue with reading GPIO inputs on the 4B
as they are always returning zero.

The aim of this change is to be the source-equivalent of the binary
package release 2.52[1] which was the last release before upstream
development ceased.

[1] http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/

(cherry picked from commit aca883a051)
2020-03-04 13:36:10 +01:00
Robert von Burg 0019680c29 [Project] added ignores 2020-03-04 13:35:22 +01:00
Bertrand Roussel 33fbcd7e50 Make external CC and CFLAGS declaration possible 2020-01-26 11:13:14 -08:00
Mark Liffiton 5bbb6e34b8
Merge pull request #71 from neuralassembly/master
Keeping compatibility of hardware clock of Pi 4 with earlier versions.
2019-12-31 15:24:56 -06:00
neuralassembly 651136a110 Keeping compatibility of hardware clock of Pi 4 with earlier versions. 2019-12-30 23:40:30 +09:00
Mark Liffiton 1f908c5eed Small change to reflect new version. 2019-12-29 20:40:42 -06:00
Mark Liffiton 2a8e57a1c7
Update README, convert to markdown
With Gordon ending development of WiringPi, this repository needs to reflect the situation accurately and differentiate between Gordon's final code release and updates made since then.
2019-12-29 20:39:00 -06:00
Mark Liffiton 16a23e3688
Merge pull request #70 from steveb/master
Add support for Raspberry Pi 4B
2019-12-29 20:23:09 -06:00
Mark Liffiton 03e88aef04 One last 2.46->2.50 file update. 2019-12-29 20:12:14 -06:00
Steve Baker 9aed9a4415 Increment version to 2.60
Now that the upstream maintainer has abandoned this project without
establishing another maintainer, its difficult to choose an appropriate
version number. Going with 2.60 for now, as this only has incremental
changes to support 4B.
2019-12-14 20:45:00 +00:00
Steve Baker 41f941a78e Fix GPIO pull up/down for Pi4B
Based on this raspi-gpio commit[1] the 2711 chip uses a different method
for pull up/down. This change implements that same method.

With this change, wiringPi now works for the Pi4B with the subset of
functionality used by zynthian.

[1] 80fa7d04ea?diff=unified
2019-12-14 20:42:06 +00:00
Steve Baker a49f696232 Use correct peripheral address for Pi4B 2019-12-14 02:01:23 +00:00
Steve Baker aca883a051 Add support for Raspberry Pi 4B
This change make the following commands correctly detect the 4B
however there may be an issue with reading GPIO inputs on the 4B
as they are always returning zero.

The aim of this change is to be the source-equivalent of the binary
package release 2.52[1] which was the last release before upstream
development ceased.

[1] http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
2019-12-14 01:09:13 +00: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
Gordon Henderson 36fb7f187f Updating for various stuff and bugs. CM3+ and PiA3+ 2019-03-13 13:43:15 +00: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