gpio: added open source/drain enables.

gpio_set_open_drain:
	Configure a pin as open drain.

gpio_set_open_source:
	Configure a pin as open source.

Signed-off-by: Michel Megens <dev@michelmegens.net>
gpio: added gpio_get_direction

Added an API function to get the direction of a GPIO pin. The pin's
configuration is also updated based on the return value of
gpio_chip::get_direction.

Signed-off-by: Michel Megens <dev@michelmegens.net>
gpio: atmega: added the ATmega GPIO source file.

* The ATmega GPIO driver will be implemented in atmega-gpio.c.
* Moved the GPIO core library from gpio.c to gpiolib.c

Signed-off-by: Michel Megens <dev@michelmegens.net>
Merge branch 'gpio'

* GPIO driver
* Core library
ETA/OS 0.2.0-rc3

Signed-off-by: Michel Megens <dev@michelmegens.net>