From 2a97dd656ce13a8779c8ea732f2dbc47fdf05c73 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sun, 29 Dec 2013 22:14:18 +0100 Subject: [PATCH] Do not change data dir for other pins ! --- drivers/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0