4.115
Last change
on this file since bd0fb473 was
bd0fb473,
checked in by Sebastian Huber <sebastian.huber@…>, on 03/24/12 at 21:53:07
|
bsps: Shared ARMv7-M interrupt support
|
-
Property mode set to
100644
|
File size:
775 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2011-2012 Sebastian Huber. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Obere Lagerstr. 30 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #include <rtems/score/armv7m.h> |
---|
16 | |
---|
17 | #include <bsp/irq-generic.h> |
---|
18 | #include <bsp/armv7m-irq.h> |
---|
19 | |
---|
20 | #ifdef ARM_MULTILIB_ARCH_V7M |
---|
21 | |
---|
22 | void _ARMV7M_NVIC_Interrupt_dispatch(void) |
---|
23 | { |
---|
24 | rtems_vector_number vector = |
---|
25 | ARMV7M_SCB_ICSR_VECTACTIVE_GET(_ARMV7M_SCB->icsr); |
---|
26 | |
---|
27 | _ARMV7M_Interrupt_service_enter(); |
---|
28 | bsp_interrupt_handler_dispatch(ARMV7M_IRQ_OF_VECTOR(vector)); |
---|
29 | _ARMV7M_Interrupt_service_leave(); |
---|
30 | } |
---|
31 | |
---|
32 | #endif /* ARM_MULTILIB_ARCH_V7M */ |
---|
Note: See
TracBrowser
for help on using the repository browser.