Commit Graph

145 Commits

Author SHA1 Message Date
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 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 c7c561177d Sync versions for next release (78). 2020-09-29 10:19:49 -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
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 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
Bradley Pankow b9e57f6047 Fix issue #353, initialising glitch filter 2020-06-26 13:25:25 -05:00
Guy McSwain bea536389f Fix waveCBsOOLs tallys for 2d dma stride. 2020-05-31 14:26:37 -05:00
Guy McSwain fc37a8c867 Revert "Issue #220 Calling exit from a signal handler is not safe." 2020-05-31 13:44:14 -05:00
Guy McSwain 1c9b6e2790 Issue #220 Calling exit from a signal handler is not safe. 2020-05-02 11:17:25 -05:00
hazuki e9a0dd8ead Remove excessive PROT_EXEC 2020-05-01 11:24:25 -05:00
Guy McSwain 3ffe6634bd Bump revision to 7600. 2020-04-29 23:46:36 -05:00
Guy McSwain d0bd490204 Merge branch 'wavesize' into develop 2020-04-29 16:29:59 -05:00
hazuki ee593a2fc6 Remove excessive PROT_EXEC 2020-04-26 17:42:35 +09:00
Guy McSwain 720d612193 Merge branch 'master' of https://github.com/jaessy77/pigpio into jaessy77-master 2020-03-22 15:55:10 -05:00
Guy McSwain b229b67ce0 Correct max wave resource comparison tests. 2020-03-22 12:26:26 -05:00
Guy McSwain c38087352f Use two-beat DMA control block on pulse with set and clear OOLs. 2020-03-18 16:31:42 -05:00
Guy McSwain 7f05ff4c48 Fix error messages on gpioWaveCreatePad 2020-03-12 09:46:58 -05:00
Guy McSwain 038be60398 Allow creation of two waves with 50% padding using gpioWaveCreatePad.
- gpioWaveCreatePad takes three arguments: %CB, %BOOL, %TOOL
- gpioWaveCreatePad checks range of arguments
- gpioWaveCreatePad checks dimension of wave fits inside padding
- wave2Cbs takes three arguments: numCB, numBOOL, numTOOL
- socket command PI_CMD_WVCAP is variadic
2020-03-12 09:44:41 -05:00
Jul3k c660e3fc8e Added WaveCreatePad to pigpio.c 2020-03-05 18:28:31 +01:00
Jul3k 4ab125cfff Added WaveCreatePad to API 2020-03-05 17:42:55 +01:00
Guy McSwain 58c5ad756b Skip wave padding when size = 0 2020-03-04 01:25:01 -06:00
Guy McSwain f4a4b9772f Wave create using fixed size CB, OOL 2020-03-03 23:13:57 -06:00
joan2937 4753b0d37c Code for BSC I2C/SPI slave on the BCM2711 (PI4B)
Added documentation for callback usage
2020-03-01 13:35:16 +00:00
Marco Jassmann 671adab8ad Corrected constant name in spiClose from PI_I2C_CLOSED to PI_SPI_CLOSED 2020-02-26 12:29:55 +01:00
Guy McSwain d5dee1d0a5 Bump to v74 2020-01-25 21:40:36 -06:00
Phil Wright 47f3bf7ec9 v7303 Fix waveform length when merging pulses (#223) 2020-01-25 20:52:43 -06:00
Guy McSwain fc6e3df438 v7302: Fix range of 'old' rev codes 2020-01-18 14:41:09 -06:00
Guy McSwain 714136afe4 New hardware revision decode
Decode hardware revision from either:
1) 'revision' string in /proc/cpuinfo (legacy)
2) binary number in /proc/device-tree/system/linux,revision

The second path is recommended by raspberrypi.org for newer
operating systems.  See raspberrypi/linux#2110
2020-01-18 10:06:49 -06:00
Guy McSwain 5c1f52215d setsockopt() with properly initialized option argument. Fixes issue #298 and possibly #274. 2020-01-10 00:50:53 -06:00
joan2937 da780491d9 V73: I2C_SLOTS to 512 (from 64) 2020-01-02 15:04:54 +00:00
Flaviu Tamas 1788961a9b Fix broken close handling 2019-12-21 11:07:05 -05:00
joan2937 b634058746 V72 2019-11-30 18:17:04 +00:00
joan2937 9b9ca9455d V71+: rewrite chooseBestClock to fix errors 2019-11-29 23:20:19 +00:00
joan2937 5966a50e45 V71+: change the way DMA is reset to cater for edge case 2019-09-29 10:13:04 +01:00
joan2937 ad89f458c8 V71+: #286 arm64 socket i/f response 2019-08-16 16:58:45 +01:00
PB d1f3bc81d9 Fix network communication on arm64 - continued
The 55d8b880fc commit on the original pigpio repo fixed parsing data received from a socket on 64bit systems.
This one fixes also the response that is being sent back to the socket - 64bit array is translated back to a 32bit array that is passed to the send function.
2019-08-16 10:26:05 +02:00
joan2937 b6fe587451 V71 2019-08-15 17:06:53 +01:00
joan2937 331b5a1451 V70+: #282 close notification sockets when pigpiod "-m" option is used. 2019-08-15 16:26:18 +01:00
Alexander Simon 55d8b880fc Fix network communication on arm64
Base messages consist of four uint32 integers.
Wrongly, integers are declared as a four-element uintptr_t array.
The 16 bytes are written directly by recv().
This works great for arm32, but on arm64 uintptr_t is 64 bit (8 bytes).

This patch reads four 32-bit integers and writes them into the uintptr_t
array.
2019-08-07 13:39:18 +02:00
Alexander Simon 5847d5c099 Add support for RPi4 Model B running arm64 Linux 2019-08-07 13:36:37 +02:00
joan2937 f660834a7a V69+: BCM2711 PLLD 500->750 MHz Crystal 19.2->54M 2019-07-14 20:47:20 +01:00
joan2937 b407ab741d V69+: #258 reject and document illegal script commands 2019-07-11 10:09:35 +01:00
joan2937 5b416b699b V69+: #280 SPI/BSC SLAVE peripheral not available on BCM2711 2019-07-07 12:52:44 +01:00