Another typo in EMF32 GPIO logic

This commit is contained in:
Gregory Nutt 2014-10-23 19:19:58 -06:00
parent 687a28cc09
commit e242f945ba

View File

@ -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);
}
/************************************************************************************