From: Nathael Pajani Date: Thu, 24 Apr 2014 16:31:44 +0000 (+0200) Subject: Call gpio pins configuration Make the configuration function static. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=fb14725fd832236d87a6d3e3d2c4da56cd881ae7;p=soft%2Flpc122x%2Fcore Call gpio pins configuration Make the configuration function static. --- 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) {