From: Nathael Pajani Date: Wed, 6 Nov 2013 00:50:42 +0000 (+0100) Subject: Fix : GPIO is alternate function 6 for those pins (function 0 is debug) X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=a076d38c504c8cd91483f0d688f92a3a97aa3c71;p=soft%2Flpc122x%2Fcore Fix : GPIO is alternate function 6 for those pins (function 0 is debug) --- diff --git a/drivers/gpio.c b/drivers/gpio.c index 2b6fe76..c6ffce1 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -78,8 +78,8 @@ void set_gpio_pins(void) ioctrl->pio0_22 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_23 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_24 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; - ioctrl->pio0_25 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; - ioctrl->pio0_26 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; + ioctrl->pio0_25 = LPC_IO_FUNC_ALT(6) | LPC_IO_MODE_PULL_UP; + ioctrl->pio0_26 = LPC_IO_FUNC_ALT(6) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_27 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_28 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP; ioctrl->pio0_29 = LPC_IO_FUNC_ALT(0) | LPC_IO_MODE_PULL_UP;