From fb14725fd832236d87a6d3e3d2c4da56cd881ae7 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 24 Apr 2014 18:31:44 +0200 Subject: [PATCH] Call gpio pins configuration Make the configuration function static. --- drivers/gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio.c b/drivers/gpio.c index 718eb75..8b6a01f 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -39,7 +39,7 @@ /* Set all GPIO used in a default state */ extern struct pio gpio_pins[]; -void set_gpio_pins(void) +static void set_gpio_pins(void) { int i = 0; /* Set GPIO pins as GPIO */ @@ -55,6 +55,7 @@ void gpio_on(void) subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO1, 1); /* FIXME : Power this one too if you use LQFP64 or LQFP100 packages */ /* subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO2, 1); */ + set_gpio_pins(); } void gpio_off(void) { -- 2.43.0