Last change
on this file since ba619b7f was
ba619b7f,
checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:20
|
bsps/arm/: Scripted embedded brains header file clean up
Updates #4625.
|
-
Property mode set to
100644
|
File size:
662 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2011-2012 Sebastian Huber. All rights reserved. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #include <rtems/score/armv7m.h> |
---|
10 | |
---|
11 | #include <bsp/irq-generic.h> |
---|
12 | #include <bsp/armv7m-irq.h> |
---|
13 | |
---|
14 | #ifdef ARM_MULTILIB_ARCH_V7M |
---|
15 | |
---|
16 | void _ARMV7M_NVIC_Interrupt_dispatch(void) |
---|
17 | { |
---|
18 | rtems_vector_number vector = |
---|
19 | ARMV7M_SCB_ICSR_VECTACTIVE_GET(_ARMV7M_SCB->icsr); |
---|
20 | |
---|
21 | _ARMV7M_Interrupt_service_enter(); |
---|
22 | bsp_interrupt_handler_dispatch(ARMV7M_IRQ_OF_VECTOR(vector)); |
---|
23 | _ARMV7M_Interrupt_service_leave(); |
---|
24 | } |
---|
25 | |
---|
26 | #endif /* ARM_MULTILIB_ARCH_V7M */ |
---|
Note: See
TracBrowser
for help on using the repository browser.