Compiler warning fixed
This commit is contained in:
parent
e3753df280
commit
0590f27afa
|
@ -142,7 +142,6 @@ gpio_pin_mode gpio_get_mode(gpio_dev *dev, uint8 pin) {
|
||||||
gpio_reg_map *regs = dev->regs;
|
gpio_reg_map *regs = dev->regs;
|
||||||
__io uint32 *cr = ®s->CRL + (pin >> 3);
|
__io uint32 *cr = ®s->CRL + (pin >> 3);
|
||||||
uint32 shift = (pin & 0x7) * 4;
|
uint32 shift = (pin & 0x7) * 4;
|
||||||
uint32 tmp = *cr;
|
|
||||||
|
|
||||||
uint32 crMode = (*cr>>shift) & 0x0F;
|
uint32 crMode = (*cr>>shift) & 0x0F;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue