Merge pull request #272 from grafalex82/patch_2

Compiler warning fixed in gpio_get_mode
This commit is contained in:
Roger Clark 2017-05-29 10:43:42 +10:00 committed by GitHub
commit 920b57a4a9
1 changed files with 0 additions and 1 deletions

View File

@ -142,7 +142,6 @@ gpio_pin_mode gpio_get_mode(gpio_dev *dev, uint8 pin) {
gpio_reg_map *regs = dev->regs;
__io uint32 *cr = &regs->CRL + (pin >> 3);
uint32 shift = (pin & 0x7) * 4;
uint32 tmp = *cr;
uint32 crMode = (*cr>>shift) & 0x0F;