Restructure and add infrastructure to build with autotools.

2012-09-16  Jeremy Bennett <jeremy.bennett@embecosm.com>

	* aclocal.m4, AUTHORS, compile, config.guess, config.h.in,
	* config.sub: Created.
	* configure: Regenerated.
	* configure.ac, COPYING, ChangeLog: Created.
	* demo: Directory created for demo programs.
	* demo/Makefile.am: Created.
	* demo/Makefile.in: Regenerated.
	* depcomp: Created.
	* doc: Directory created for documentation.
	* doc/Makefile.am: Created.
	* doc/Makefile.in: Regenerated.
	* INSTALL, install-sh: Created.
	* lib: Directory created for the library.
	* lib/Makefile.am: Created.
	* lib/Makefile.in: Regenerated.
	* ltmain.sh: Created:
	* m4: Directory created for local macros
	* m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4:
	* m4/lt~obsolete.m4, missing, Makefile.am: Created.
	* Makefile.in: Regenerated.
	* NEWS: Created.
	* pi_gpio.c, pi_gpio.h, pi_i2c.c, pi_i2c.h, pi_pwm.c, pi_pwm.h:
	* pihwm.h: Moved to lib directory.
	* README: Created.
	* testsuite: Directory created for tests
	* testsuite/Makefile: Regenerated.
	* testsuite/Makefile.am: Created.
Reformat to GNU coding standards.

2012-09-16  Jeremy Bennett <jeremy.bennett@embecosm.com>

	* lib/pi_gpio.h, lib/pi_i2c.c, lib/pi_i2c.h, lib/pi_pwm.c,
	* lib/pi_pwm.h, lib/pihwm.h: Reformat using indent to GNU coding
	standards.
Correct Gert's name in AUTHORS file. Generally tidy up code to remove code
non-compliance.

2012-09-16  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* lib/pi_gpio.c: Add GPL header, change C++ comments to C,
	include config.h first.
	* lib/pi_gpio.h: Add GPL header, change C++ comments to C, remove
	pwhwm.h header.
	(isr_handler): Change return type to void *, remove unused var
	"len", cast return types to void *, test results of calls to read ()
	(gpio_clear_int): return 0 always.
	(gpio_read): Use type compliant initialization of valStr;
	* lib/pi_i2c.c: Add GPL header, include config.h first, include
	sys/ioctl.h.
	* lib/pi_i2c.h: Add GPL header, change C++ comments to C, remove
	pwhwm.h header.
	* lib/pi_pwm.c: Add GPL header, change C++ comments to C,
	include config.h first.
	<clk_map, gpio_map, pwm_map>: Changed declaration to unsigned int.
	* lib/pi_pwm.h: Add GPL header, change C++ comments to C, remove
	pwhwm.h header.
	* lib/pihwm.h: Add GPL header, change C++ comments to C. Change to
	use sleep rather than usleep, and remove header.
Fix autotools glitches.

2012-09-16  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* demo/Makefile.am: Add -lpthread to each demo LDADD
	* demo/Makefile.in: Regenerated.
	* doc/Makefile.in: Regenerated.
	* lib/Makefile.in: Regenerated.
	* Makefile.am: Correct typo "SUBDIRS".
	* Makefile.in: Regenerated.
	* testsuite/Makefile.in: Regenerated.
Turn demos into GNU coding style, fix problems in gpio_test. Add missing header
to pihwm.h

2012-09-16  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* demo/gpio_int.c: Format to GNU coding style.
	* demo/gpio_test.c: Format to GNU coding style, add GPL header,
	include pihwm.h.
	* demo/i2c_ads1015.c, demo/i2c_hmc6352.c, demo/i2c_mcp23017.c
	* demo/pwm_demo.c, demo/spi_bb_mcp3202.c: Format to GNU coding
	style.
	* lib/pihwm.h: Include unistd.h, needed for sleep.
Fix "extern" in headers.

2012-09-17  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	Merging in from commit c93f284a42ecadddbcabf95c042e77dbf51c719b by
	Omer Kilic <omerkilic@gmail.com>

	* lib/pi_gpio.h, lib/pi_i2c.h, lib/pi_pwm.h: Remove "extern"
	throughout.
Tidy up the remainder of the demo programs.

2012-09-17  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* demo/gpio_int.c: Add GPL header, change C++ comments to C.
	* demo/i2c_ads1015.c: Add GPL header, change C++ comments to C,
	include pihwm.h.
	(ads1015_read): Change all binary numbers to hex, provide default
	value for cmd[0].
	* demo/i2c_hmc6352.c: Add GPL header, change C++ comments to C,
	include pihwm.h.
	(main): Cast arg to i2c_write as unsigned char *.
	* demo/i2c_mcp23017.c: Add GPL header, change C++ comments to C,
	include pihwm.h.
	* demo/pwm_demo.c: Add GPL header, change C++ comments to C,
	include pihwm.h.
	* demo/spi_bb_mcp3202.c: Add GPL header, change C++ comments to C,
	include pihwm.h.
	(adc_read): Change binary number to hex format.
	* lib/pi_gpio.h: Replace Arduino wrappers by true functions.
	* lib/pi_gpio.c (pinMode, digitalWrite, digitalRead)
	(attachInterrupt, detachInterrupt): Wrappers for Arduino like
	behaviour.
Correct Omer's email address, update release date.

2012-09-17  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* AUTHORS, ChangeLog, configure.ac, demo/gpio_int.c,
	* demo/gpio_test.c, demo/i2c_ads1015.c, demo/i2c_hmc6352.c,
	* demo/i2c_mcp23017.c, demo/pwm_demo.c, demo/spi_bb_mcp3202.c,
	* lib/pi_gpio.c, lib/pi_gpio.h, lib/pi_i2c.c, lib/pi_i2c.h,
	* lib/pi_pwm.c, lib/pi_pwm.h, lib/pihwm.h: Correct Omer Kilic's
	email address.
	* configure: Regenerated
Tidied up configure.ac to remove unnecessary stuff.

2012-09-17  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* configure.ac: Remove unecessary components and reference to
	OpenRISC.
	* config.h.in, configure, demo/Makefile.in, doc/Makefile.in,
	* lib/Makefile.in, Makefile.in, testsuite/Makefile.in:
	Regenerated.
Initial documentation framework.

2012-09-19  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* doc/.gitignore, doc/config.texi, doc/fdl-1.2.texi: Created.
	* doc/Makefile.am: Added details of documentation.
	* doc/Makefile.in: Regenerated.
	* doc/mdate-sh, doc/pihwm.texi, doc/texinfo.tex, doc/version.texi:
	Created.
	* NEWS: Updated for current version.
Add API sections to library. Fix pihwm.h bug.

2012-09-20  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* doc/pihwm.texi: Add API sections to library.
	* lib/pihwm.h: Include stdio.h when debugging.
Added general and GPIO section to API documentation. Fix interface glitches
spotted in general and GPIO headers. Make silent build. Remove demo specific
from library header into demos.

2012-09-25  Jeremy Bennett  <jeremy.bennett@embecosm.com>

	* aclocal.m4, configure: Regenerated.
	* configure.ac: Updated version date, use silent output
	* demo/i2c_ads1015.c (ads1015_read): Replace macro "a" by its
	contents.
	* demo/i2c_mcp23017.c (main): Replace macro "a" by its
	contents.
	* demo/Makefile.in: Regenerated.
	* doc/config.texi: Added definition of PI.
	* doc/Makefile.in, doc/pihwm.info: Regenerated.
	* doc/pihwm.texi <General API (pihwm.h)>: Complete section.
	<GPIO API (pihwm_gpio.h)>: Complete section.
	* doc/version.texi: Regenerated.
	* lib/Makefile.in: Regenerated.
	* lib/pi_gpio.c (gpio_edge, gpio_valfd): Make static and move
	before externally visible functions.
	(pinMode, digitalWrite, digitalRead, attachInterrupt)
	(detachInterrupt): Correct commenting of return value.
	* lib/pi_gpio.h (gpio_edge, gpio_valfd): Remove.
	* lib/pihwm.h <a>: Remove macro definition.
	* Makefile.in, testsuite/Makefile.in: Regenerated.
Added sections about setting up Raspberry Pi in the Demo section.
Merge remote-tracking branch 'embecosm/jeremy'

Conflicts:
	demo/gpio_int.c
	demo/gpio_test.c
	demo/i2c_ads1015.c
	demo/i2c_hmc6352.c
	demo/i2c_mcp23017.c
	demo/pwm_demo.c
	demo/spi_bb_mcp3202.c
	pi_gpio.h
	pi_i2c.h
	pi_pwm.h