mirror of https://github.com/ARMmbed/mbed-os.git
Enable not checking against 0 or 1.
parent
1573405135
commit
7598b0572b
|
@ -207,10 +207,10 @@ void gpio_irq_set(gpio_irq_t *obj, gpio_irq_event event, uint32_t enable)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Enable the IRQ based on enable parameter */
|
/* Enable the IRQ based on enable parameter */
|
||||||
if (enable == 1) {
|
if (enable) {
|
||||||
|
|
||||||
obj->GPIOMEMBASE->IRQ_ENABLE_SET = obj->pinMask;
|
obj->GPIOMEMBASE->IRQ_ENABLE_SET = obj->pinMask;
|
||||||
} else if (enable == 0) {
|
} else {
|
||||||
|
|
||||||
obj->GPIOMEMBASE->IRQ_ENABLE_CLEAR = obj->pinMask;
|
obj->GPIOMEMBASE->IRQ_ENABLE_CLEAR = obj->pinMask;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue