From: Nathael Pajani Date: Sat, 1 Dec 2018 13:20:26 +0000 (+0100) Subject: A little bit more readable X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=396c1ce0152d6634fa59a028dc7c919c52bd34c2;p=soft%2Flpc122x%2Fcore A little bit more readable --- diff --git a/drivers/gpio.c b/drivers/gpio.c index 5d90c2e..fcecc93 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -200,7 +200,7 @@ void PIO_0_Handler(void) /* Call interrupt handlers */ while (status) { - if (status & 1) { + if (status & 0x01) { /* Is there an handler for this one ? */ if (gpio_callbacks_port0[i] != NULL) { gpio_callbacks_port0[i](i); @@ -220,7 +220,7 @@ void PIO_1_Handler(void) /* Call interrupt handlers */ while (status) { - if (status & 1) { + if (status & 0x01) { /* Is there an handler for this one ? */ if (gpio_callbacks_port1[i] != NULL) { gpio_callbacks_port1[i](i); @@ -240,7 +240,7 @@ void PIO_2_Handler(void) /* Call interrupt handlers */ while (status) { - if (status & 1) { + if (status & 0x01) { /* Is there an handler for this one ? */ if (gpio_callbacks_port2[i] != NULL) { gpio_callbacks_port2[i](i);