From: Nathael Pajani Date: Sun, 22 Feb 2015 02:03:21 +0000 (+0100) Subject: Fix this copy-paste error ... oups :( X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=45a6bc0c9c9493e853b4d59481186625c3d0d5df;p=soft%2Flpc122x%2Fcore Fix this copy-paste error ... oups :( --- diff --git a/include/drivers/gpio.h b/include/drivers/gpio.h index 6d14312..9c167cc 100644 --- a/include/drivers/gpio.h +++ b/include/drivers/gpio.h @@ -63,20 +63,20 @@ void gpio_off(void); #define gpio_dir_in(gpio) \ { \ struct lpc_gpio* gpio_port = LPC_GPIO_REGS(gpio.port); \ - gpio_port->data_dir &= ~(1 << gpio->pin);\ + gpio_port->data_dir &= ~(1 << gpio.pin);\ } #define gpio_dir_out(gpio) \ { \ struct lpc_gpio* gpio_port = LPC_GPIO_REGS(gpio.port); \ - gpio_port->data_dir |= (1 << gpio->pin);\ + gpio_port->data_dir |= (1 << gpio.pin);\ } #define gpio_set(gpio) \ { \ struct lpc_gpio* gpio_port = LPC_GPIO_REGS(gpio.port); \ - gpio_port->set = (1 << gpio->pin);\ + gpio_port->set = (1 << gpio.pin);\ } #define gpio_clear(gpio) \