Commit Graph

207 Commits

Author SHA1 Message Date
joan a18943f4d3 Merge branch 'gyscos-master' 2018-02-04 09:23:09 +00:00
joan ffe443e102 Merge branch 'master' of https://github.com/gyscos/pigpio into gyscos-master 2018-02-04 09:22:25 +00:00
joan ec62750c36 Merge branch 'TheRaspyDev-master' 2018-02-04 09:12:40 +00:00
joan 847c081846 Changes by tateu 2018-02-04 09:10:22 +00:00
Michael fb081b7cf6 Address #189 ensuring socket locks are released
The code previous assume exception-free execution of critical blocks
between lock acquire() and lock release(); however, in Python exceptions
can be thrown in many situations which would then result in a dead-lock
of the entire program using pigpio.

This is resolved by using the acquire/try/finally/release pattern to
ensure that the lock is always released, even when an exception occurs.

Also addresses #186, but takes a slightly different approach by using
RLock to handle the nested lock requirement, which overall should be
safer because it handles additional situations that can cause a
deadlock.
2018-01-31 07:07:00 -05:00
Damien Stuart cc559a7e50 Ensure the lock is released if there is an exception on socket I/O. 2017-12-31 16:00:57 -05:00
Dan Brown 3edc87fea5 Allow 3-op script cmds to use regs as 3rd operand. 2017-12-01 22:32:44 -05:00
Jonas Schievink b39eb25571 cmake: include find_package_handle_standard_args
The Findpigpio.cmake script doesn't work for me if this is missing (CMake 3.9.4 on Arch Linux ARM).
2017-10-19 18:36:31 +02:00
joan2937 8996b7eaca Update README.md 2017-10-18 22:25:13 +01:00
Damien 3141c30a86 Replace conditionnal compilation symbol with internal configuration bit 2017-09-28 13:45:57 +11:00
Damien 9f55dc919c Added 'lib' target for Makefile 2017-09-28 08:20:54 +11:00
Alexandre Bury 388d0e6a1e Add systemd service file 2017-09-23 20:00:25 -07:00
TheRaspyDev 2c9a00a2f9 Fixing ifFlags check for additional flag 2017-05-19 10:24:19 +02:00
TheRaspyDev 32727085fc Resolve merge conflict 2017-05-19 10:14:06 +02:00
TheRaspyDev 51e7df2b6c Merge branch 'master' of https://github.com/joan2937/pigpio
# Conflicts:
#	pigpio.c
2017-05-19 10:13:40 +02:00
TheRaspyDev e1b7d8c508 Fixing command line arguments for new option -m 2017-05-19 10:01:51 +02:00
joan 1aa4cca8a6 V64 2017-05-14 18:13:41 +01:00
joan f032029bf9 V63 2017-05-13 14:22:02 +01:00
Maurus Erni 29bbd99b0e Adding flag to disable alerts (polling of GPIOs) 2017-04-25 13:50:01 +02:00
joan c4c8ce50c6 V62 2017-04-24 21:05:43 +01:00
joan 114653357b V61 2017-02-19 11:28:15 +00:00
joan d1f7421e23 Merge branch 'maxnet-ipv6' 2017-02-19 10:35:50 +00:00
Floris Bos 7eec4b6c88 Add basic IPv6 support
Add IPv6 support to daemon and python library.
IPv6 was already supported by the C client library.

Currently there is no support for whitelisting IPv6 client
addresses implemented, so for now it reverts to listening
to IPv4 only when the -n <ip> option is specified.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
2017-02-17 15:36:48 +01:00
joan2937 03a7255fad Merge pull request #112 from fudger/master
Reformat readme.md for better readability.
2017-01-24 20:44:57 +00:00
Alexander Schaefer b8e248069a Fix URL. 2017-01-24 10:40:28 +01:00
Alexander Schaefer 57d8bd4015 Reformat readme for better readability. 2017-01-24 10:38:59 +01:00
joan2937 4862a16c9f Update README.md 2017-01-11 11:28:26 +00:00
joan2937 f15b72a4fa Update README.md 2017-01-11 11:06:33 +00:00
joan2937 1703aaa434 Update README.md 2017-01-11 10:59:38 +00:00
joan 144bd4a9e7 V60 2017-01-10 20:26:50 +00:00
joan a939b8b0e6 V59 2016-12-22 18:07:09 +00:00
joan2937 4c039aa250 Merge pull request #103 from bennuttall/master
Python packaging changes, close #101
2016-12-21 18:51:04 +00:00
Ben Nuttall 9bef8535c2 Expand setup.py setup data 2016-12-21 14:45:27 +00:00
Ben Nuttall 1482fe4ec3 Add dist, *pyc and .egg-info to .gitignore 2016-12-21 14:39:50 +00:00
joan2937 ac57935837 Merge pull request #98 from bennuttall/master
Add pycache and build to .gitignore
2016-12-15 21:46:03 +00:00
Ben Nuttall fd95aa8405 Add pycache and build to .gitignore 2016-12-15 20:20:38 +00:00
joan 2bd75cd1c4 V58 2016-11-03 16:36:56 +00:00
joan 57cf9892e2 Merge branch 'jdiamond-foreground' 2016-10-30 23:34:50 +00:00
Jason Diamond 1ec9472813 add option for running in foreground 2016-10-30 23:05:30 +00:00
joan b39130af0c Merge branch 'cashpipeplusplus-master' 2016-10-30 18:49:52 +00:00
Joey Parrish 22e6944a8e Add objects, libs, and executables to gitignore 2016-10-30 10:53:09 -07:00
Joey Parrish e80175dc93 Add CROSS_PREFIX var to make cross-compilation easier 2016-10-30 10:50:49 -07:00
Joey Parrish cf372fa5db Strip executables explicitly
Do not strip in install, because install is not aware of
cross-compilation.  VBy explicitly stripping executables using a make
var that can be overridden, the build is more friendly to
cross-compilers.
2016-10-30 10:47:50 -07:00
Joey Parrish 2c6de54726 Remove redundancy in make vars
Refer to CC in vars that use gcc, instead of hard-coding gcc twice.
This makes it easier to override those vars for cross-compilation.
2016-10-30 10:46:03 -07:00
joan c31a2fa6b2 V57 2016-10-30 15:30:20 +00:00
joan abe5f12942 V56 2016-09-22 14:12:26 +01:00
joan 68ab0a9525 Merge branch 'BjoernSch-master' 2016-08-14 10:46:54 +01:00
BjoernSch c5a1cc5e35 Adding constants for spiFlags
Added several constants to ease SPI configuration
2016-08-10 20:51:00 +02:00
BjoernSch 09f56eb728 Fixed byte order in bbSPIXfer
Got default endianess wrong and additionally the byte order has to be
changed according to bit order on the SPI-Line
2016-08-10 20:50:00 +02:00
BjoernSch 735c87342e Changed default mode to 0
Should be the most common mode
2016-08-09 20:04:42 +02:00