Commit Graph

350 Commits

Author SHA1 Message Date
Guy McSwain 3e0a5085f1
Improve signal handling. (#532) 2023-01-09 20:57:41 -06:00
joan2937 27b5ea9c58 Updated docs for 2023 and used python -m pydoc rather than pydoc. 2023-01-01 13:32:37 +00:00
Guy McSwain eec9367e46 Exit parent after daemon is initialized. Safer signal handling. Fix #519 2022-05-13 11:17:19 -05:00
Guy McSwain f077c61882 Fix #357 Multithreaded PWM. 2022-01-30 14:23:59 -06:00
Guy McSwain c88c5c9e4e Revert "Run socket interface APIs atomically."
Locking the socket interface prevents APIs running concurrently.
This is problematic when some API are long runnnig and therefore
effectively block other API threads from running.

This reverts commit 9dcea25d06.
2022-01-30 14:15:04 -06:00
Andreas Franek d5e52bc81e
pigpio.c: reset errno after existance check (#509) 2022-01-09 15:31:07 -06:00
Guy McSwain 9dcea25d06 Run socket interface APIs atomically.
Fixes #357, fixes #392.
2021-12-30 22:09:33 -06:00
joan2937 6b80b8429c Fixed bug for #463 2021-05-08 08:49:09 +01:00
Guy McSwain ff38b7ad37
Merge pull request #428 from pemensik/lib-suffix
Allow building on 64-bit system using lib64
2021-04-15 10:29:51 -05:00
Guy McSwain dcb2fbe1f2
Merge pull request #456 from berndporr/develop
gpioCfgSetInternals now returns PI_INITIALISED after gpioInitialise
2021-04-15 10:21:55 -05:00
Bernd Porr de6064cee9 Fixed doc that set_PWM_range() returns the actual range
Fixed the documentation that the command set_PWM_range() actually
returns the actual range. This resolves #453.
2021-04-10 23:25:02 +01:00
Bernd Porr 3cd69ff4ae gpioCfgSetInternals now returns PI_INITIALISED after gpioInitialise
This resolves #455 with the discussion with @guymcswain that
gpioCfgSetInternals() should return an error if gpioInitialise()
has been called previously to report that it's no longer possible,
for example, to disable signal handling. If successful it returns
0 as before. Tested it by calling gpioCfgSetInternals, gpioInitialise,
gpioCfgSetInternals and reports 0 and -32 which looks OK.
2021-04-10 23:05:08 +01:00
joan2937 b7cdaceef3 Updated copyright year to 2021. 2021-03-28 10:06:12 +01:00
joan2937 ac7095a28b Modified cmakdoc.py to handle const definitions for #434 2021-03-22 17:57:35 +00:00
Guy McSwain accd69d2fd Bump version to 79 2021-03-02 11:43:38 -06:00
Guy McSwain 2484b217d7 Update README.md
Removed pi4b experimental statement.
2021-03-02 11:37:19 -06:00
Peter Michael Green d1afccf04f Fix detection of whether or not the system is a raspberry pi. 2021-03-02 11:34:48 -06:00
Petr Menšík 6be1505794 Allow building on 64-bit system using lib64
Fedora uses /usr/lib64 on 64-bit systems. Allow easy configuration in
cmake to install to correct directories.
2021-01-31 21:16:20 +01:00
joan2937 3c972b8cdb Added "forth" link to other languages section of index.html (main page). 2021-01-03 16:15:00 +00:00
joan2937 0f2927b727 Added docker link to other languages section of index.html (main page). 2021-01-03 11:29:32 +00:00
Guy McSwain 7baf4a6467 Auto generate MAN and HTML. 2020-12-23 23:11:15 -06:00
Guy McSwain f51cd7e950 Fix GPIO for BSC SPI in slave mode and update doc sources. 2020-12-23 23:08:11 -06:00
Guy McSwain 2a73c0f818
Merge pull request #419 from drkmsmithjr/SENT_protocol
added an example of using pigpio to implement the SENT interface
2020-12-22 06:36:38 -06:00
Mark 35aa210556 added an example of using the pigpio library to implement the SENT interface.
SENT is an automotive standard single wire interface for robust communication
with sensors in a car, but the standard can be used anywhere.   It has error detection
including CRC checking.  There is a write up about it on the
Blog:   https://surfncircuits.com/2020/11/27/implementing-a-single-edge-nibble-transmission-sent-protocol-in-python-for-the-raspberry-pi-zero/
2020-12-20 09:16:10 -08:00
Guy McSwain 11ee6f19d8 bump develop branch version 2020-12-18 23:09:58 -06:00
Guy McSwain 1420fe1799 Fix issue#405 Prototype for gpioRunScript is duplicated. 2020-12-18 20:39:24 -06:00
Guy McSwain 8f4eff9694 Fix issue#400 PI_CMD_EVT is unused in pigpiod_if2.c 2020-12-18 20:32:16 -06:00
Guy McSwain 2220e497bd Fix issue#397 gpioSetTimerFunc NULL cancel error 2020-12-18 20:23:52 -06:00
Guy McSwain 55608548fc Fix Issue#402 Cannot handle multiple I2C devices on RPi 4B 2020-12-18 19:56:35 -06:00
Guy McSwain 258b034512 PR#415 fix simple type receieve -> receive 2020-12-18 19:48:49 -06:00
Guy McSwain 3140218f56 PR#413 Update doc: return current PWM dutycycle instead of 0 2020-12-18 19:41:57 -06:00
Guy McSwain 0daad582ac PR #404: Include stddef.h for size_t 2020-12-18 19:15:47 -06:00
joan2937 d898affb2a Reworked paulvee example and link. 2020-12-18 15:57:25 -06:00
joan2937 15d4193ed1 bit bang example code from paulvee 2020-12-18 15:57:01 -06:00
Guy McSwain ac5cdec256
Merge pull request #387 from dawidowski/rework_pigpio_start_args
Change argument type of `pigpio_start` from `char*` to `const char*`
2020-09-29 15:29:22 -05:00
Guy McSwain c7c561177d Sync versions for next release (78). 2020-09-29 10:19:49 -05:00
Dawid Sabat b99a538aee Modify pigpio_start arguments 2020-09-18 23:28:18 +02:00
Guy McSwain d5961b9de2 v7702 fixes 'Operation not permitted' and 'Delay on reboot/shutdown'. 2020-08-30 10:55:59 -05:00
Guy McSwain 8a49a4b078
Merge pull request #342 from hazuki0x0/fix-initPeripherals
Fix initPeripherals on Ubuntu 20.04  For security reasons, newer distros mount /dev with 'noexec' so mmap with
PROT_EXEC will no longer work (Operation not permitted).
2020-08-30 10:39:20 -05:00
Guy McSwain b332474c9d Fix issue #274 - Delay on reboot/shutdown. 2020-08-30 10:23:16 -05:00
joan2937 031decc9f6 Tidy file handling. 2020-08-30 10:15:52 -05:00
joan2937 ad83b33426 Misc plus fix for #373 2020-08-30 10:15:52 -05:00
joan2937 7154e302e3 New pulse per second example synced to wall time. 2020-08-30 10:15:52 -05:00
Ryan Plauche 487bf29673 Fixing possible fclose on null pointer 2020-07-01 11:56:45 -05:00
Guy McSwain e6bfc40a51 Update docs 2020-06-28 14:36:20 -05:00
joan2937 c07bbb299a Update index.html
Removed experimental on Pi4 paragraph.
2020-06-28 14:35:39 -05:00
joan2937 7804bf7bc6 Update index.html
Add link to Xojo implementation by Eugene Dakin
2020-06-28 14:34:57 -05:00
Guy McSwain 6016f39ad0 Revert "Remove excessive PROT_EXEC"
This reverts commit e9a0dd8ead.
2020-06-27 07:08:01 -05:00
Guy McSwain 342feb43f2 Bump version and generate docs. 2020-06-26 16:20:36 -05:00
Guy McSwain 5e06889515 Remove deprecated gpioCfgInternals API. Fix issue #341. 2020-06-26 13:25:59 -05:00