RTEMS: bsps/powerpc/t32mppc/include/bsp/irq.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
irq.h
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#ifndef LIBBSP_POWERPC_T32MPPC_IRQ_H
16#define LIBBSP_POWERPC_T32MPPC_IRQ_H
17
18#include <rtems.h>
19#include <rtems/irq.h>
20#include <rtems/irq-extension.h>
21#include <rtems/score/processormask.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif /* __cplusplus */
26
27#define BSP_INTERRUPT_VECTOR_MIN 0
28#define BSP_INTERRUPT_VECTOR_MAX 0
29
30 RTEMS_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
39 RTEMS_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#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#endif /* LIBBSP_POWERPC_T32MPPC_IRQ_H */
irq.h
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
RTEMS_INLINE_ROUTINE
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
_Processor_mask_From_index
RTEMS_INLINE_ROUTINE void _Processor_mask_From_index(Processor_mask *mask, uint32_t index)
Creates a processor set from the specified index.
Definition: processormask.h:331
irq-extension.h
Header file for the Interrupt Manager Extension.
processormask.h
Processor Mask API.
rtems.h