Skip to content

Commit

Permalink
reverted port_num
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon Mall committed Jul 3, 2017
1 parent 59482d3 commit 2dca87c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cpu/cc2538/periph/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2dca87c

Please sign in to comment.