5
Last change
on this file since 762fa62 was
8f8ccee,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/23/18 at 07:50:39
|
bsps: Move interrupt controller support to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
939 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
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.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #include <bsp.h> |
---|
16 | #include <bsp/irq-generic.h> |
---|
17 | #include <bsp/vectors.h> |
---|
18 | |
---|
19 | void bsp_interrupt_vector_enable(rtems_vector_number vector) |
---|
20 | { |
---|
21 | bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector)); |
---|
22 | } |
---|
23 | |
---|
24 | void bsp_interrupt_dispatch(uintptr_t exception_number) |
---|
25 | { |
---|
26 | if (exception_number == 10) { |
---|
27 | t32mppc_decrementer_dispatch(); |
---|
28 | } else { |
---|
29 | bsp_interrupt_handler_default(0); |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | void bsp_interrupt_vector_disable(rtems_vector_number vector) |
---|
34 | { |
---|
35 | bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector)); |
---|
36 | } |
---|
37 | |
---|
38 | rtems_status_code bsp_interrupt_facility_initialize(void) |
---|
39 | { |
---|
40 | return RTEMS_SUCCESSFUL; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.