4.115
Last change
on this file since 0f31fddc was
0f31fddc,
checked in by Sebastian Huber <sebastian.huber@…>, on 03/24/12 at 21:01:08
|
bsps: Add shared default IRQ handler
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2011 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 <string.h> |
---|
16 | |
---|
17 | #include <rtems/score/armv7m.h> |
---|
18 | |
---|
19 | #include <bsp.h> |
---|
20 | #include <bsp/irq.h> |
---|
21 | #include <bsp/irq-generic.h> |
---|
22 | #include <bsp/lm3s69xx.h> |
---|
23 | |
---|
24 | static __attribute__((aligned(128))) ARMV7M_Exception_handler |
---|
25 | lm3s69xx_vector_table [BSP_INTERRUPT_VECTOR_MAX + 1]; |
---|
26 | |
---|
27 | void bsp_interrupt_dispatch(void) |
---|
28 | { |
---|
29 | } |
---|
30 | |
---|
31 | rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector) |
---|
32 | { |
---|
33 | return RTEMS_SUCCESSFUL; |
---|
34 | } |
---|
35 | |
---|
36 | rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector) |
---|
37 | { |
---|
38 | return RTEMS_SUCCESSFUL; |
---|
39 | } |
---|
40 | |
---|
41 | rtems_status_code bsp_interrupt_facility_initialize(void) |
---|
42 | { |
---|
43 | memcpy(&lm3s69xx_vector_table [0], (void *) 0, sizeof(lm3s69xx_vector_table)); |
---|
44 | _ARMV7M_SCB->vtor = &lm3s69xx_vector_table [0]; |
---|
45 | |
---|
46 | return RTEMS_SUCCESSFUL; |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.