Clean up trailing whitespace throughout

This commit removes ^M and trailing whitespace from source files,
Makefiles, and readme files. The goal is to clean the code base so that
it is easier to create patches that don't contain whitespace changes.
This is useful for editors that automatically clean trailing whitespace
on save and to avoid seeing ^M's on mixed line ending mode files.
Fix "narrowing conversion" warning from g++.
Ignore example_apps outputs
Install app_loader library in system directories
prussdrv: add call to get file descriptor

This is needed to be able to select(2) or poll(2) on PRU interrupts.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
Use 'install' instead of mkdir/cp/chmod
Merge pull request #14 from fhunleth/whitespace

Clean up trailing whitespace throughout
Merge pull request #15 from gburca/master

Fix "narrowing conversion" warning from g++.
Merge pull request #17 from fhunleth/selectfd

prussdrv: add call to get file descriptor
Remove execute permissions on source files

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
app_loader Makefile: Add -d param to install call

This fixes the calls to make sure that the $(PREFIX)/lib and include
directories exist.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
app_loader Makefile: clean up header file handling

Removed Makefile targets that would never be called and added the public
header files to the dependency list so that changes to them would
trigger .c file recompilation.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
prussdrv: add prussdrv_exec_code function

This adds a helper function for loading PRU code from memory. This is
handy when building the PRU code into the application executable with
a header file generated by "pasm -c".

This is based on similar functions found in various am335x_pru_package
forks.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
prussdrv: Remove unnecessary pthreads dependency

This removes the helper function for creating a pthread and the rest of
the infrastructure around it. Now the library can be linked in
environments that don't have pthreads. Also, the pthread helper code is
easily replicated in a user application and probably makes more sense
there anyway so that the user is more aware of the threading.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
Merge pull request #18 from fhunleth/perms

Remove execute permissions on source files
Merge remote-tracking branch 'fhunleth/makefile-fixes'
Merge remote-tracking branch 'fhunleth/prussdrv_exec_code'
Merge remote-tracking branch 'fhunleth/no_pthreads'

Removed prussdrv_start_irqthread from header because it is not
implemented any longer

Conflicts:
	pru_sw/app_loader/include/prussdrv.h
Should not have added PRU_PRU1toPRU0_Interrupt_bin.h