From: Nathael Pajani Date: Sun, 29 Dec 2013 21:14:18 +0000 (+0100) Subject: Do not change data dir for other pins ! X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=2a97dd656ce13a8779c8ea732f2dbc47fdf05c73;p=soft%2Flpc122x%2Fcore Do not change data dir for other pins ! --- diff --git a/drivers/gpio.c b/drivers/gpio.c index de69999..351cd44 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -225,7 +225,7 @@ void status_led_config(void) config_gpio(1, LED_GREEN, (LPC_IO_FUNC_ALT(0) | mode)); config_gpio(1, LED_RED, (LPC_IO_FUNC_ALT(0) | mode)); /* Configure both as output */ - gpio1->data_dir = (1 << LED_GREEN) | (1 << LED_RED); + gpio1->data_dir |= (1 << LED_GREEN) | (1 << LED_RED); /* Turn both LEDs on */ //gpio1->set = (1 << LED_GREEN) | (1 << LED_RED); gpio1->set = (1 << LED_GREEN);