source: rtems/c/src/lib/libbsp/sparc/erc32/include/bsp/irq.h @ e19da87

5
Last change on this file since e19da87 was e19da87, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 12, 2017 at 8:55:59 AM

bsps: Include missing header file

Update #3071.

  • 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_MIN 0
25#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
26
27/* No extra check is needed */
28#undef BSP_INTERRUPT_CUSTOM_VALID_VECTOR
29
30RTEMS_INLINE_ROUTINE void bsp_interrupt_set_affinity(
31  rtems_vector_number   vector,
32  const Processor_mask *affinity
33)
34{
35  (void) vector;
36  (void) affinity;
37}
38
39RTEMS_INLINE_ROUTINE void bsp_interrupt_get_affinity(
40  rtems_vector_number  vector,
41  Processor_mask      *affinity
42)
43{
44  (void) vector;
45  _Processor_mask_From_index( affinity, 0 );
46}
47
48#endif /* LIBBSP_ERC32_IRQ_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.