Commit Graph

60 Commits

Author SHA1 Message Date
Deokgyu Yang
89cf23cbcd WiringPi: Remove files that seem won't be used or already have not been used
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I1189f950d0e51cbc4c569b1e7a1182dc5f8fe762
2020-03-19 17:27:55 +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
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
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
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
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
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
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
Gordon Henderson
d42e831089 Updated versions for new maker - mbest 2015-01-07 14:26:17 +00:00
Gordon Henderson
0a9fdeb29d Minor changes to the PiGlow code - got the orange & yellow the right way
round at last..

Updated for the 0x0012 board revision on the new A+
2014-11-10 10:55:23 +00:00
Gordon Henderson
df45388f64 Fixed a bug in the gpio readall command on model B's (caused by a side-effect
of changing it for the B+)

Aded a gpio command: usbp hi/low - to change the usb power
2014-07-17 22:23:57 +01:00
Gordon Henderson
dca8a19fb8 Updated mostly to the gpio readall command to support the Raspberry Pi B+ 2014-07-14 08:39:38 +01:00
Gordon Henderson
0150b02478 Fixed a small bug in the ISR code where it was looking for the gpio program.
Should now work correctly on Arch, or other systems that install gpio as
/usr/bin/gpio.
2014-06-27 10:55:39 +01:00
Gordon Henderson
7cbb8865c8 Bumped version to 2.15 2014-06-24 19:25:42 +01:00
Gordon Henderson
6fba403b2f Updates for the Raspnerry Pi Compute Module - changes to the gpio program
to produce a nicer 'readall' output too.

It also understands new pins 53,54,55 and 56 in wiringPiSetupPhys()
mode to represent the pins on the P5 connector on the Rev 2 Pi's

Changes to pinMode() to allow new modes SOFT_PWM and SOFT_TONE.
2014-06-24 19:23:31 +01:00
Gordon Henderson
05e2f67e7f changed to pin mode to support softPwm.
bugfix in blink.sh - wring pin
improving the maxdetect routing - a little.
gpio pins
2014-05-20 11:43:07 +01:00
Gordon Henderson
f18c8f7204 Added some tweaks to gpio to set alt modes on pins (sssh!) 2013-08-03 23:53:35 +01:00
Gordon Henderson
43422be6ac Bumped version 2013-07-28 21:38:08 +01:00
Gordon Henderson
e25cbc0a62 Added in the PiGlow devLib extension driver.
Written some examples for the PiGlow board
bumped wiringPi version
2013-07-24 15:14:09 +01:00
Gordon Henderson
cbf6d642b5 Added in PiGlow devLib and a couple of examples for the PiGlow
bumped version.
2013-07-23 20:25:46 +01:00
Gordon Henderson
8c8578a26b Reverted gpio readall to older version - new version is gpio nreadall
fixed the max5322 code.
2013-07-23 09:19:34 +01:00
Gordon Henderson
27698766b2 Fixed delayMicroseconds for more than 1 second.
Added new code for max31855
2013-06-27 21:51:55 +01:00
Gordon Henderson
348bc739d1 Sorted a variable initialisation issue that was giving incorrect results
with wiringPiISR.
Added the ability to readall/reset from extension modules.
Changed the build script to use /bin/sh rather than /bin/bash as it seems
some installations don't have /bin/bash (or if they do, then the people who
are telling me that ./build gives them command not found are wrong)
2013-05-25 13:02:02 +01:00
Gordon Henderson
711017ec36 More typos, added mcp3004/mcp3008 2013-05-21 22:38:16 +01:00
Gordon Henderson
41fb1b9e2a Gah. another small fix to the I2C code. 2013-05-20 22:23:14 +01:00
Gordon Henderson
a7c21d3efc Bumped version number to 2.04 2013-05-20 21:14:55 +01:00
Gordon Henderson
bfaf266ada Aded lcd-adafruit to test/drive the Adafruit RGB LCD plate
Added the Quick 2 Wire codes, etc.
Minor typo/bug fixes.
Added more modules into gpio -x
2013-05-20 21:13:44 +01:00
Gordon Henderson
25895a8670 Bother. Small issue crept into the SPI code. 2013-05-13 20:10:41 +01:00
Gordon Henderson
da38443cb2 wiringPi Version 2 - First commit (of v2) 2013-05-13 19:43:26 +01: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
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
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