Commit Graph

106 Commits

Author SHA1 Message Date
Yang Deokgyu
ffeba7f622 ODROID-C4: New support for ODROID-C4
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Signed-off-by: Luke Go <sangch.go@gmail.com>
Change-Id: I0fd2de97d95bb8bf71cc1975081177571b1e8301
2020-03-19 17:27:53 +09:00
Yang Deokgyu
089a2ea5ae gpio: Add options for readall command in help text
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: I10a582184e46b15c6387b21ce3bd810a1c90d524
2020-01-02 12:27:17 +09:00
Yang Deokgyu
01a38bd123 wiringPi: Change readall output width to 79 for compatibility
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-20 14:59:55 +09:00
Yang Deokgyu
5106f2a102 wiringPi: Add readall option '--all' and refactor readall.c
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-20 12:27:57 +09:00
Yang Deokgyu
020ff31733 wiringPi: Fix non-root user who has gpiomem cannot use gpio binary properly
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-11 11:43:05 +09:00
Yang Deokgyu
6c20d2ca3d wiringPi: Fix typo
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-11 11:19:03 +09:00
Joshua Yang
58892f8d06 wiringPi: Add copyright in gpio help messages
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-17 13:45:46 +09:00
Joshua Yang
41a423e5d3 wiringPi: Prepare to distribute as debian package
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-16 18:08:16 +09:00
Joshua Yang
964b422564 wiringPi: Make doI2Cdetect function works for N2 and tiny logic update
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-09 16:00:37 +09:00
Joshua Yang
6e7a6e6e38 wiringPi: Clean warning messages from gcc
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-09 15:57:26 +09:00
Luke Go
2ee8a0d922 wiringPi: Apply unused attribute.
To avoid error message, apply "__attribute__((unused))" to unsupported
functions and unused parameters.
2019-07-08 16:35:26 +09:00
joshua-yang
4b08e7ff71 wiringPi: Refactor source codes including fixes for collisions that'd occur
Replace WiringPi header files to the ODROID specific files
 - Note: To avoid unforeseen errors when working with Python Wrapper.
   Python Wrapper doesn't recognize the ODROID specific header files and
   its introduced functions, declarations. So just thought that fixing
   Python Wrapper is much more complicated than replacing the header files
   and it seems more suitable for the later updates.
Fix messaging implicit declaration of core functions
Fix collisions of functions/declarations by header files
 - Note: In each ODROID sources, the prefix '_' have to be added to the
   core functions in order to avoid the collisions that non-static function
   follows static function. This is because of importing "wiringPi.h" header
   file that has extern core functions which names the same as listed in
   each ODROID source code file. So the core functions that exported from
   here must have that prefix, and only to be assigned its pointer to the
   "libodroid" structure.

Change-Id: Ia927c7946cfb6ca6ce3a02530936325e1acb0620
2019-02-25 16:10:39 +09:00
joshua-yang
ae9a8e9ced wiringPi: Prevent showing -1 value for readall command
Change-Id: I32393427eaba8439fe86dcca7f212165b9339779
2019-01-10 14:59:48 +09:00
joshua-yang
827072123b ODROID-N2: Implement get pin MUX, PU/PD mode, get/set drive strength
Change-Id: I75099b4e2919860f7190ef9cdcd841b1d38844a7
2019-01-10 14:59:48 +09:00
Kevin Kim
69b5bede45 ODROID-N2:ODROID-N2 board wiringPi support.
Change-Id: I119c85723700739ff04e0f4144bc96ef854a5188
2018-12-19 13:39:01 +09:00
Joshua Yang
c3752077c6 wiringPi: Refactor source codes
Change-Id: Id121bfc6cb211b78b7ade56d235d43bdf11fc690
2018-11-29 18:11:16 +09:00
Joshua Yang
c5a3877737 wiringPi: Define a symbol for aml_i2c
Change-Id: Ic2b2495d153babce0c8cd9ff33927533fe92e3b0
2018-05-10 13:50:42 +09:00
Joshua Yang
66663ae72a wiringPi: Move moduleLoaded function to export
Change-Id: Ie74b852ebdd596bb3dfd7ec6ec37c7f050948195
2018-05-10 13:43:52 +09:00
Joshua Yang
180614e619 wiringPi: Enable 'gpio i2cdetect' command
Change-Id: I7c2e13e9bb4b6ba9147f2bf16bf94468902b3b98
2018-02-27 15:36:51 +09:00
Joshua Yang
f8b154ba75 wiringPi: Update the help for load/unload option
Change-Id: I162ed996bb34bff29d760dc4df4bb36fb6a541bf
2018-02-23 16:01:13 +09:00
Joshua Yang
37027fb9c8 wiringPi: Remove unused SPI/I2C load/unload code
Change-Id: I14666fbcb5551560257cc705c4779feeece3cde0
2018-02-23 15:45:18 +09:00
Joshua Yang
9048264cc2 wiringPi: Add support for ODROID N1
Change-Id: Id7952e7d220b50cdbfcc5f9084547bf46599c817
2018-01-11 14:32:58 +09:00
charles.park
9c84ec6db5 wiringPi : interrupt error fix(gpio sysfs unexport).
Change-Id: I1e826b7847dc140fe0edf79ed56aaa19be5c543c
2017-12-07 18:29:46 +09:00
charles.park
060da4d553 wiringPi : interrupt error fix.
Change-Id: I576ef6d2ef16723a7e23abf01c14caad7998c778
2017-12-07 14:38:25 +09:00
charles.park
ff2c1ddede wiringPi : update gpio utility for odroid board.
Change-Id: I390cd14049f385cfcf6c2ae427f7d9b01a39765a
2017-12-06 18:32:57 +09:00
charles.park
066914ee14 wiringPi : gpio utility add for odroid
Change-Id: I6dcdfb0130eee7f38543598752da481d2408037f
2017-12-06 18:32:51 +09:00
Phil Howard
c947643601 Merge branch 'master' of git://git.drogon.net/wiringPi 2017-03-08 16:13:57 +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
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
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
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
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
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
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