Last change
on this file since a660e9dc was
a660e9dc,
checked in by Sebastian Huber <sebastian.huber@…>, on 09/08/22 at 08:37:05
|
Do not use RTEMS_INLINE_ROUTINE
Directly use "static inline" which is available in C99 and later. This brings
the RTEMS implementation closer to standard C.
Close #3935.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup sparc_erc32 |
---|
4 | * @brief ERC32 generic shared IRQ setup |
---|
5 | * |
---|
6 | * Based on libbsp/shared/include/irq.h. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2012. |
---|
11 | * Aeroflex Gaisler AB. |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef LIBBSP_ERC32_IRQ_CONFIG_H |
---|
19 | #define LIBBSP_ERC32_IRQ_CONFIG_H |
---|
20 | |
---|
21 | #include <rtems/score/processormask.h> |
---|
22 | |
---|
23 | #define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */ |
---|
24 | #define BSP_INTERRUPT_VECTOR_COUNT (BSP_INTERRUPT_VECTOR_MAX_STD + 1) |
---|
25 | |
---|
26 | #define BSP_INTERRUPT_CUSTOM_VALID_VECTOR |
---|
27 | |
---|
28 | static inline rtems_status_code bsp_interrupt_set_affinity( |
---|
29 | rtems_vector_number vector, |
---|
30 | const Processor_mask *affinity |
---|
31 | ) |
---|
32 | { |
---|
33 | (void) vector; |
---|
34 | (void) affinity; |
---|
35 | return RTEMS_SUCCESSFUL; |
---|
36 | } |
---|
37 | |
---|
38 | static inline rtems_status_code bsp_interrupt_get_affinity( |
---|
39 | rtems_vector_number vector, |
---|
40 | Processor_mask *affinity |
---|
41 | ) |
---|
42 | { |
---|
43 | (void) vector; |
---|
44 | _Processor_mask_From_index( affinity, 0 ); |
---|
45 | return RTEMS_SUCCESSFUL; |
---|
46 | } |
---|
47 | |
---|
48 | #endif /* LIBBSP_ERC32_IRQ_CONFIG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.