interrupt: minor, fix comment
This commit is contained in:
parent
c8861f40c4
commit
789b36fc21
|
@ -1,8 +1,8 @@
|
||||||
/** BusVoodoo runtime interrupt table
|
/** runtime interrupt table
|
||||||
* @file
|
* @file
|
||||||
* @author King Kévin <kingkevin@cuvoodoo.info>
|
* @author King Kévin <kingkevin@cuvoodoo.info>
|
||||||
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
|
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* @date 2018
|
* @date 2018-2020
|
||||||
*/
|
*/
|
||||||
#include "interrupt.h" // own definitions
|
#include "interrupt.h" // own definitions
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@ static void isr_handler(void)
|
||||||
// get current IRQ number
|
// get current IRQ number
|
||||||
uint8_t irq = 0;
|
uint8_t irq = 0;
|
||||||
if (NVIC_IABR(0)) {
|
if (NVIC_IABR(0)) {
|
||||||
irq = __builtin_ffs(NVIC_IABR(0))-1;
|
irq = __builtin_ffs(NVIC_IABR(0)) - 1;
|
||||||
} else if (NVIC_IABR(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)) {
|
} else if (NVIC_IABR(2)) {
|
||||||
irq = __builtin_ffs(NVIC_IABR(2))+64;
|
irq = __builtin_ffs(NVIC_IABR(2)) + 64;
|
||||||
} else {
|
} else {
|
||||||
while (true);
|
while (true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/** BusVoodoo runtime interrupt table
|
/** runtime interrupt table
|
||||||
* @file
|
* @file
|
||||||
* @author King Kévin <kingkevin@cuvoodoo.info>
|
* @author King Kévin <kingkevin@cuvoodoo.info>
|
||||||
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
|
* @copyright SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* @date 2018
|
* @date 2018-2020
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#error not converted for STM32F4
|
#error not converted for STM32F4
|
||||||
|
|
Loading…
Reference in New Issue