prussdrv: add prussdrv_extmem_size

Add function for querying the size of the DDR memory region that
was allocated by the driver. This lets applications check that enough
memory is available before running their PRU applications.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
Fix build on FreeBSD.
add some old example
provide means for querying PRU version
implement python.clib wrapper around prussdrv library
make interrupt/event maps more clear

Create methods to query event/channel/interrupt mappings.
fix interrupt waiting to not retrigger event immediately
add python compatible interrupt handler base class
Merge pull request #4 from fhunleth/extmem_size

prussdrv: add prussdrv_extmem_size
Merge pull request #5 from rpaulo/master

Fix build on FreeBSD.
Merge pull request #6 from RoyBellingan/master

I've added some old example
Merge pull request #8 from olsonse/master

Adds python interface with interrupt fixes
simplify and correct python ctypes-based wrapper
prussdrv: remove debug prints in release builds

This change adds a macro to optionally compile out the debug printfs
placed throughout the code. Debug builds have the prints. Release builds
do not.

Trailing whitespace was also removed in several places.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
prussdrv: return error when exec_program fails

Add error returns to a couple error checks in prussdrv_exec_program
that only printed error messages to the console.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
prussdrv: mark const parameters

This lets users of the library pass const variables to
input arguments of functions and not get compiler warnings.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
fix examples broken by recent event wait/clear changes
Merge pull request #9 from olsonse/master

simplify and correct python ctypes-based wrapper
Merge pull request #10 from fhunleth/const

prussdrv: mark const parameters
Merge pull request #11 from fhunleth/debugprints

Remove debug prints in release builds and return error when fopen/fread fail