85 Commits

Author SHA1 Message Date
sasha80
ade3b26942 Добавлен пример для работы прерывания по gpio 2026-04-15 11:34:49 +03:00
mstroh76
cd882f6cf3 #412 Update Version und date to 2026 2026-01-10 17:35:57 +01:00
Connor Gibson
55e189eda5 Switch to stdbool.h
- Add `#include <stdbool.h> to all files previously using the
   `TRUE`/`FALSE` macros
 - Replace all instances of `TRUE`/`FALSE` with `true`/`false`,
   respectively
 - Definitions of `TRUE`/`FALSE` macros retained in wiringPi.h for compatibility.
2025-06-07 13:14:49 -07:00
Connor Gibson
b86be0969d Remove extra indents before if followed by if else
This was driving clangd crazy - replaced with indents between the if and conditional parentheses in most places.
2025-06-05 22:16:43 -07:00
mstroh
ea0dd8ca8a Merge branch 'develop' into GPIO_V2_IOCTL 2025-06-01 11:36:56 +02:00
mstroh76
b87ca97daf #264 adjust unit test and fix is40pin 2025-05-23 19:51:01 +02:00
mstroh76
2f52fa27e5 #264 gpio wfis & unit test 2025-05-16 18:31:28 +02:00
mstroh76
b1b896582e #346 gpio wfidb command and unit test improvment 2025-05-11 20:21:39 +02:00
mstroh76
38274fe6e8 #346 GPIO Character Device Userspace API V2 - compatibility to old interface 2025-05-02 13:10:40 +02:00
kovianyo
9d34a0a9b5 Describing pin numbering arguments and wfi modes in gpio usage text 2025-04-18 14:05:58 +02:00
kovianyo
2a848b5de1 Using spaces instead of tabs in gpio usage text 2025-04-18 13:59:03 +02:00
phylax2020
2f35ff5ec8 Version v3.16: added wfi status for wiringPiISR and waitForInterrupt 2025-02-20 11:29:30 +01:00
phylax2020
0bf457519d Version 3.13 : debounce time added for wiringPiISR and waitForInterrupt library functions. Documentation update 2025-01-29 19:09:32 +01:00
mstroh76
6bb7ef9fc3 Year to 2025 2025-01-05 10:45:22 +01:00
mstroh76
ffccd873a4 #261 2024-07-14 18:32:40 +02:00
mstroh76
ced6ff6ea6 #239 2024-05-09 15:37:18 +02:00
Manfred Wallner
9452d3c0c3 Merge branch 'develop' into GPIOAPI 2024-05-03 21:37:04 +02:00
Manfred Wallner
7e89062466 Merge branch 'develop' into pwm 2024-05-03 21:27:49 +02:00
mstroh76
783d95962f #224 2024-05-03 15:15:20 +02:00
mstroh76
23b7251a2d #227 2024-05-03 14:36:09 +02:00
mstroh76
d3a23725b8 #210 2024-04-27 18:19:46 +02:00
mstroh76
58fd2654a3 #219 report /dev/gpiochip support 2024-04-26 17:45:12 +02:00
Benjamin Braunfels
2b383b167e Fixed warnings and removed unused function 2024-04-26 14:35:50 +02:00
mstroh76
34b0f368a7 #221 2024-04-15 12:49:38 +02:00
mstroh76
e7726a4f0a #221 2024-04-14 11:51:38 +02:00
mstroh76
ea2f2323c3 #204 2024-03-22 19:42:16 +01:00
mstroh76
c1a86f41f2 #204 2024-03-22 18:21:18 +01:00
mstroh76
6590de3ef4 #195 2024-03-09 19:29:42 +01:00
mstroh76
417d54649d #25 2024-02-27 20:22:54 +01:00
mstroh76
d9486acc1a V3 2024-02-27 20:01:55 +01:00
mstroh76
107b9ee4c2 #17 PinDrive 2024-02-16 21:16:20 +01:00
mstroh76
9796fa7fb1 #17 setPadDrive 2024-02-16 18:29:26 +01:00
mstroh76
d1df517fa3 #16 2024-01-27 16:38:26 +01:00
mstroh76
19874871de #16 2024-01-27 16:33:04 +01:00
Philip Howard
a83d64ea6c Prep for deb release as 2.70
This is a general tidyup to detach this fork better from Gordon, who was (and perhaps still is) completely inundated with WiringPi-related support questions.

This changeset includes a number of tweaks which should reduce support burden on Gordon. I believe they are essential if we plan to release a new debian package.

They should - hopefully - not reduce or make ambiguous the origins of this code while achieving the above.

* Remove Gordon's email address from all source files to avoid support queries finding their way to him
* Update wiringPi URLs to the GitHub repository to try and keep bugs/issues within the fork
* Bump version to 2.70 ready for a debian package release
* Update debian package maintainer info, add bugs & homepage URLs to this repository
2022-02-09 11:58:59 +00:00
Gordon Henderson
8d188fa0e0 update for the v3+ 2018-03-14 07:17:04 +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
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