Skip to content

Commit

Permalink
RPIO v0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hager committed Mar 9, 2013
1 parent 2dc96ba commit 0740d8e
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 344 deletions.
2 changes: 1 addition & 1 deletion documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# built documents.
#
# The short X.Y version.
version = '0.9.1'
version = '0.9.2'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
48 changes: 17 additions & 31 deletions documentation/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Documentation
News
----

* v0.9.0: :ref:`PWM via DMA <ref-rpio-pwm-py>`
* v0.9.2: :ref:`PWM via DMA <ref-rpio-pwm-py>`
* v0.8.4: ``rpio-curses``
* v0.8.2: Socket server callbacks with :ref:`RPIO.add_tcp_callback(port, callback, threaded_callback=False) <ref-rpio-py>`

Expand Down Expand Up @@ -102,7 +102,9 @@ FAQ

You need to install the ``python-dev`` package (eg. ``$ sudo apt-get install python-dev``), or use ``easy_install`` (see :ref:`Installation <ref-installation>`).

Other Changes
* ``rpio-curses``
* Bugfix in RPIO: tcp callbacks (first parameter ``socket`` works now)
* Renamed ``RPIO.rpi_sysinfo()`` to ``RPIO.sysinfo``

Links
-----
Expand All @@ -113,6 +115,11 @@ Links
* http://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
* http://www.kernel.org/doc/Documentation/gpio.txt

* Added TCP socket callbacks
* ``RPIO`` does not auto-clean interfaces on exceptions anymore, but will auto-clean them
as needed. This means you should now call ``RPIO.cleanup_interrupts()`` to properly close
the sockets and unexport the interfaces.
* Renamed ``RPIO.rpi_sysinfo()`` to ``RPIO.sysinfo()``

License
-------
Expand All @@ -129,6 +136,14 @@ License
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

* Improved auto-cleaning of interrupt interfaces
* BOARD numbering scheme support for interrupts
* Support for software pullup and -down resistor with interrupts
* New method ``RPIO.set_pullupdn(..)``
* ``rpio`` now supports P5 header gpios (28, 29, 30, 31) (only in BCM mode)
* Tests added in ``source/run_tests.py`` and ``fabfile.py``
* Major refactoring of C GPIO code
* Various minor updates and fixes

Changes
-------
Expand Down Expand Up @@ -171,35 +186,6 @@ Changes
* Various minor updates and fixes


* v0.8.4

* ``rpio-curses``
* Bugfix in RPIO: tcp callbacks (first parameter ``socket`` works now)
* Renamed ``RPIO.rpi_sysinfo()`` to ``RPIO.sysinfo``

* v0.8.3: pypi release update with updated documentation and bits of refactoring

* v0.8.2

* Added TCP socket callbacks
* ``RPIO`` does not auto-clean interfaces on exceptions anymore, but will auto-clean them
as needed. This means you should now call ``RPIO.cleanup_interrupts()`` to properly close
the sockets and unexport the interfaces.
* Renamed ``RPIO.rpi_sysinfo()`` to ``RPIO.sysinfo()``


* v0.8.0

* Improved auto-cleaning of interrupt interfaces
* BOARD numbering scheme support for interrupts
* Support for software pullup and -down resistor with interrupts
* New method ``RPIO.set_pullupdn(..)``
* ``rpio`` now supports P5 header gpios (28, 29, 30, 31) (only in BCM mode)
* Tests added in ``source/run_tests.py`` and ``fabfile.py``
* Major refactoring of C GPIO code
* Various minor updates and fixes


* v0.7.1

* Refactoring and cleanup of c_gpio
Expand Down
8 changes: 8 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
env.hosts = ["raspberry_dev_local"]


def clean():
run("rm -rf /tmp/source/")

# Set default hosts
if not env.hosts:
env.hosts = ["raspberry_dev_local"]


def clean():
run("rm -rf /tmp/source/")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def read(fname):

setup(
name="RPIO",
version="0.9.1",
version="0.9.2",
package_dir={"": "source"},
packages=['RPIO', 'RPIO.PWM'],
ext_modules=[
Expand Down
2 changes: 1 addition & 1 deletion source/RPIO/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def socket_callback(socket, val):
from RPIO._GPIO import cleanup as _cleanup_orig
from RPIO._GPIO import setmode as _setmode

VERSION = "0.9.1"
VERSION = "0.9.2"

# BCM numbering mode by default
setmode(BCM)
Expand Down
7 changes: 0 additions & 7 deletions source/c_gpio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,5 @@ gpio3.2:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python3.2mu -c cpuinfo.c -o build/cpuinfo.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/py_gpio.o build/c_gpio.o build/cpuinfo.o -o build/_GPIO.so

gpio3.2:
mkdir -p build
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python3.2mu -c py_gpio.c -o build/py_gpio.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python3.2mu -c c_gpio.c -o build/c_gpio.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python3.2mu -c cpuinfo.c -o build/cpuinfo.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/py_gpio.o build/c_gpio.o build/cpuinfo.o -o build/GPIO.so

clean:
rm -rf build
2 changes: 1 addition & 1 deletion source/c_gpio/py_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ PyMODINIT_FUNC init_GPIO(void)
rpi_revision_hex = Py_BuildValue("s", revision_hex);
PyModule_AddObject(module, "RPI_REVISION_HEX", rpi_revision_hex);

version = Py_BuildValue("s", "0.9.1/0.4.2a");
version = Py_BuildValue("s", "0.9.2/0.4.2a");
PyModule_AddObject(module, "VERSION_GPIO", version);

// set up mmaped areas
Expand Down
93 changes: 0 additions & 93 deletions source/c_pwm/notes_freqs.h

This file was deleted.

2 changes: 1 addition & 1 deletion source/c_pwm/pwm_py.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ PyMODINIT_FUNC init_PWM(void)
return;
#endif

PyModule_AddObject(module, "VERSION", Py_BuildValue("s", "0.9.1"));
PyModule_AddObject(module, "VERSION", Py_BuildValue("s", "0.9.2"));
PyModule_AddObject(module, "DELAY_VIA_PWM", Py_BuildValue("i", DELAY_VIA_PWM));
PyModule_AddObject(module, "DELAY_VIA_PCM", Py_BuildValue("i", DELAY_VIA_PCM));
PyModule_AddObject(module, "LOG_LEVEL_DEBUG", Py_BuildValue("i", LOG_LEVEL_DEBUG));
Expand Down
Loading

0 comments on commit 0740d8e

Please sign in to comment.