From: Nathael Pajani Date: Wed, 6 Nov 2013 00:49:53 +0000 (+0100) Subject: Added PIO0_15 as GPIO for easy I2C access. Must be fixed when SPI support is added. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=ecdfa41a453c1ad045e0ab19c5e7572bfedcc8fc;p=soft%2Flpc122x%2Fcore Added PIO0_15 as GPIO for easy I2C access. Must be fixed when SPI support is added. --- diff --git a/drivers/gpio.c b/drivers/gpio.c index bf60cfc..2b6fe76 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -71,6 +71,7 @@ void set_gpio_pins(void) ioctrl->pio0_4 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_5 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_6 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; + ioctrl->pio0_15 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; /* SPI Chip Select */ ioctrl->pio0_19 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_20 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_21 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP;