From 750fb9ac613e74813d161dd70ebca0d7ff248a1b Mon Sep 17 00:00:00 2001
From: Paul RATHGEB <paul.rathgeb@skynet.be>
Date: Sun, 22 Jan 2017 19:02:17 +0100
Subject: [PATCH] cpu/lpc11u34 - Fixed GPIO_PIN macro This macro is not
 coherent with the PORT_SHIFT def in gpio.c. This commit fixes the
 consistency.

Signed-off-by: Paul RATHGEB <paul.rathgeb@skynet.be>
---
 cpu/lpc11u34/include/periph_cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpu/lpc11u34/include/periph_cpu.h b/cpu/lpc11u34/include/periph_cpu.h
index b27a2b1201..c288c49370 100644
--- a/cpu/lpc11u34/include/periph_cpu.h
+++ b/cpu/lpc11u34/include/periph_cpu.h
@@ -59,7 +59,7 @@ typedef uint16_t gpio_t;
 /**
  * @brief   Define a custom GPIO_PIN macro for the lpc11u34
  */
-#define GPIO_PIN(port, pin)     (gpio_t)((port << 16) | pin)
+#define GPIO_PIN(port, pin)     (gpio_t)((port << 8) | pin)
 
 /**
  * @brief   Number of PWM channels per PWM peripheral
-- 
GitLab