From 72d11583e307b37c3a91f0210285bbacacf1aaa7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 23 Oct 2014 19:19:58 -0600 Subject: [PATCH] Another typo in EMF32 GPIO logic --- arch/arm/src/efm32/efm32_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/efm32/efm32_gpio.c b/arch/arm/src/efm32/efm32_gpio.c index b44236154d4..cdb5c1567e5 100644 --- a/arch/arm/src/efm32/efm32_gpio.c +++ b/arch/arm/src/efm32/efm32_gpio.c @@ -132,7 +132,7 @@ static inline uint8_t efm32_getpin(gpio_pinset_t cfgset) static inline uint8_t efm32_getmode(gpio_pinset_t cfgset) { - return (uint8_t)((cfgset & GPIO_PIN_MASK) >> GPIO_PIN_SHIFT); + return (uint8_t)((cfgset & GPIO_MODE_MASK) >> GPIO_MODE_SHIFT); } /************************************************************************************