Comment and code for those with a LQFP64 or LQFP100 package.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Sun, 29 Dec 2013 21:13:44 +0000 (22:13 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
drivers/gpio.c

index 6bda738..de69999 100644 (file)
@@ -133,12 +133,15 @@ void gpio_on(void)
        /* Provide power to GPIO control blocks */
        subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO0, 1);
        subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO1, 1);
+       /* FIXME : Power this one two if you use LQFP64 or LQFP100 packages */
+       /* subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO2, 1); */
 }
 void gpio_off(void)
 {
        /* Remove power from GPIO control blocks */
        subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO0, 0);
        subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO1, 0);
+       subsystem_power(LPC_SYS_ABH_CLK_CTRL_GPIO2, 0);
 }