From fe61d8c4f774d469f0930ac4d056d49b50bea1ca Mon Sep 17 00:00:00 2001 From: Masao Hamanaka Date: Thu, 4 Dec 2014 16:03:50 +0900 Subject: [PATCH] Fix a fear of bug that a static value will be indefiniteness. There was a function that has the potential to be called with indefiniteness argument. Modify to not call the function with indefiniteness argument. --- .../targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c b/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c index a07770a297..da046e3f4a 100644 --- a/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c +++ b/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c @@ -67,17 +67,15 @@ static gpio_irq_event irq_event; static void handle_interrupt_in(void) { int i; uint16_t irqs; - int irq_num; irqs = INTCIRQRR; for(i = 0; i< 8; i++) { if (channel_ids[i] && (irqs & (1 << i))) { irq_handler(channel_ids[i], irq_event); INTCIRQRR &= ~(1 << i); - irq_num = i; + GIC_EndInterrupt((IRQn_Type)(nIRQn_h + i)); } } - GIC_EndInterrupt((IRQn_Type)(nIRQn_h + irq_num)); } int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32_t id) {