mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 22:00:21 +00:00
Another typo in EMF32 GPIO logic
This commit is contained in:
parent
99ff1b3a90
commit
72d11583e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue