From 45a6bc0c9c9493e853b4d59481186625c3d0d5df Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sun, 22 Feb 2015 03:03:21 +0100 Subject: [PATCH] Fix this copy-paste error ... oups :( --- include/drivers/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) \ -- 2.43.0