From 789b36fc21384f660b29a54b272c32051ec7d7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 11 Dec 2020 20:55:39 +0100 Subject: [PATCH] interrupt: minor, fix comment --- lib/interrupt.c | 10 +++++----- lib/interrupt.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/interrupt.c b/lib/interrupt.c index 3e2aa86..0e4d85b 100644 --- a/lib/interrupt.c +++ b/lib/interrupt.c @@ -1,8 +1,8 @@ -/** BusVoodoo runtime interrupt table +/** runtime interrupt table * @file * @author King Kévin * @copyright SPDX-License-Identifier: GPL-3.0-or-later - * @date 2018 + * @date 2018-2020 */ #include "interrupt.h" // own definitions @@ -14,11 +14,11 @@ static void isr_handler(void) // get current IRQ number uint8_t irq = 0; if (NVIC_IABR(0)) { - irq = __builtin_ffs(NVIC_IABR(0))-1; + irq = __builtin_ffs(NVIC_IABR(0)) - 1; } else if (NVIC_IABR(1)) { - irq = __builtin_ffs(NVIC_IABR(1))+31; + irq = __builtin_ffs(NVIC_IABR(1)) + 31; } else if (NVIC_IABR(2)) { - irq = __builtin_ffs(NVIC_IABR(2))+64; + irq = __builtin_ffs(NVIC_IABR(2)) + 64; } else { while (true); } diff --git a/lib/interrupt.h b/lib/interrupt.h index 5270298..3032ad9 100644 --- a/lib/interrupt.h +++ b/lib/interrupt.h @@ -1,8 +1,8 @@ -/** BusVoodoo runtime interrupt table +/** runtime interrupt table * @file * @author King Kévin * @copyright SPDX-License-Identifier: GPL-3.0-or-later - * @date 2018 + * @date 2018-2020 */ #pragma once #error not converted for STM32F4