mirror of https://github.com/joan2937/pigpio
This commit is contained in:
parent
3e7e75ea29
commit
e56a520873
12
README
12
README
|
@ -60,10 +60,18 @@ cat /dev/pigerr &
|
|||
|
||||
echo "help" >/dev/pigpio
|
||||
|
||||
PYTHON INTERFACE
|
||||
PYTHON MODULE
|
||||
|
||||
By default the Python pigpio module is installed to the
|
||||
default python location. You can install it for additional
|
||||
Python versions by
|
||||
|
||||
pythonx.y setup.py install
|
||||
|
||||
where x.y is the Python version.
|
||||
|
||||
If the pigpiod daemon is running you can test the Python
|
||||
interface by entering the following commands.
|
||||
module by entering the following commands.
|
||||
|
||||
python
|
||||
|
||||
|
|
4
pigpio.c
4
pigpio.c
|
@ -25,7 +25,7 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|||
For more information, please refer to <http://unlicense.org/>
|
||||
*/
|
||||
|
||||
/* pigpio version 7 */
|
||||
/* pigpio version 8 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -3176,7 +3176,7 @@ static void initClock(int mainClock)
|
|||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
static void initDMAgo(uint32_t * dmaAddr, uint32_t cbAddr)
|
||||
static void initDMAgo(volatile uint32_t * dmaAddr, uint32_t cbAddr)
|
||||
{
|
||||
DBG(DBG_STARTUP, "");
|
||||
|
||||
|
|
17
pigpio.h
17
pigpio.h
|
@ -26,7 +26,7 @@ For more information, please refer to <http://unlicense.org/>
|
|||
*/
|
||||
|
||||
/*
|
||||
This version is for pigpio version 7
|
||||
This version is for pigpio version 8
|
||||
*/
|
||||
|
||||
#ifndef PIGPIO_H
|
||||
|
@ -49,6 +49,8 @@ This version is for pigpio version 7
|
|||
/ 7) notifications when any of gpios 0-31 change state. /
|
||||
/ 8) the construction of arbitrary waveforms to give precise timing of /
|
||||
/ output gpio level changes. /
|
||||
/ 9) rudimentary permission control through the socket and pipe interfaces /
|
||||
/ so users can be prevented from "updating" inappropriate gpios. /
|
||||
/ /
|
||||
/ NOTE: /
|
||||
/ /
|
||||
|
@ -82,7 +84,7 @@ This version is for pigpio version 7
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#define PIGPIO_VERSION 7
|
||||
#define PIGPIO_VERSION 8
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
@ -179,6 +181,7 @@ gpioCfgDMAchannel Configure the DMA channel (DEPRECATED).
|
|||
gpioCfgDMAchannels Configure the DMA channels.
|
||||
gpioCfgPermissions Configure the gpio access permissions.
|
||||
gpioCfgInterfaces Configure user interfaces.
|
||||
gpioCfgInternals Configure miscellaneous internals.
|
||||
gpioCfgSocketPort Configure socket port.
|
||||
|
||||
*/
|
||||
|
@ -1641,8 +1644,14 @@ int gpioCfgPermissions(uint64_t updateMask);
|
|||
/* Configures pigpio to only allow updates (writes or mode changes) for the
|
||||
gpios specified by the mask.
|
||||
|
||||
The default setting is to allow updates to gpios 0-31, i.e. an update mask
|
||||
of 0x00000000FFFFFFFF.
|
||||
The default setting depends upon the board revision (Type 1 or Type 2).
|
||||
The user gpios are added to the mask. If the board revision is not
|
||||
recognised then the mask is formed by or'ing the bits for the two
|
||||
board revisions.
|
||||
|
||||
Unknown board: PI_DEFAULT_UPDATE_MASK_R0 0xFBE6CF9F
|
||||
Type 1 board: PI_DEFAULT_UPDATE_MASK_R1 0x03E6CF93
|
||||
Type 2 board: PI_DEFAULT_UPDATE_MASK_R2 0xFBC6CF9C
|
||||
*/
|
||||
|
||||
|
||||
|
|
7
setup.py
7
setup.py
|
@ -4,9 +4,14 @@ from distutils.core import setup
|
|||
|
||||
setup(name='pigpio',
|
||||
version='1.0',
|
||||
description='Raspberry Pi gpio utility',
|
||||
author='joan',
|
||||
author_email='joan@abyz.me.uk',
|
||||
maintainer='joan',
|
||||
maintainer_email='joan@abyz.me.uk',
|
||||
url='http://abyz.co.uk/rpi/pigpio/python.html/',
|
||||
description='Raspberry Pi gpio module',
|
||||
long_description='Raspberry Pi Python module for access to the pigpio daemon',
|
||||
download_url='http://abyz.co.uk/rpi/pigpio/pigpio.tar',
|
||||
license='TBD',
|
||||
py_modules=['pigpio']
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue