From ecdfa41a453c1ad045e0ab19c5e7572bfedcc8fc Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 6 Nov 2013 01:49:53 +0100 Subject: [PATCH] Added PIO0_15 as GPIO for easy I2C access. Must be fixed when SPI support is added. --- drivers/gpio.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.43.0