From 2dca87c3a5d6d8372ab94884b817c84c8191019d Mon Sep 17 00:00:00 2001 From: Anon Mall Date: Mon, 3 Jul 2017 17:45:43 +0200 Subject: [PATCH] reverted port_num --- cpu/cc2538/periph/gpio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cpu/cc2538/periph/gpio.c b/cpu/cc2538/periph/gpio.c index 892016ecc337..eab540c4bf30 100644 --- a/cpu/cc2538/periph/gpio.c +++ b/cpu/cc2538/periph/gpio.c @@ -46,7 +46,6 @@ static inline int port_num(gpio_t pin) if(((uint32_t)pin &GPIO_MASK) == 0){ return ((pin & 0x18) >> 3); } - //return (int)(((pin - (uint32_t)GPIO_A) & PORTNUM_MASK) >> PORTNUM_SHIFT); return (int)((pin & PORTNUM_MASK) >> PORTNUM_SHIFT) - 1; }