source: rtems/bsps/arm/lm3s69xx/include/bsp/irq.h @ 2afb22b

5
Last change on this file since 2afb22b was 2afb22b, checked in by Chris Johns <chrisj@…>, on 12/23/17 at 07:18:56

Remove make preinstall

A speciality of the RTEMS build system was the make preinstall step. It
copied header files from arbitrary locations into the build tree. The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

  • The make preinstall step itself needs time and disk space.
  • Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error.
  • There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult.
  • The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit.
  • An introduction of a new build system is difficult.
  • Include paths specified by the -B option are system headers. This may suppress warnings.
  • The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step. All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

  • cpukit/include
  • cpukit/score/cpu/@RTEMS_CPU@/include
  • cpukit/libnetworking

The new BSP include directories are:

  • bsps/include
  • bsps/@RTEMS_CPU@/include
  • bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed. The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lm3s69xx_interrupt
5 *
6 * @brief Interrupt definitions.
7 */
8
9/*
10 * Copyright © 2013 Eugeniy Meshcheryakov <eugen@debian.org>
11 *
12 * Copyright (c) 2011 Sebastian Huber.  All rights reserved.
13 *
14 *  embedded brains GmbH
15 *  Obere Lagerstr. 30
16 *  82178 Puchheim
17 *  Germany
18 *  <rtems@embedded-brains.de>
19 *
20 * The license and distribution terms for this file may be
21 * found in the file LICENSE in this distribution or at
22 * http://www.rtems.org/license/LICENSE.
23 */
24
25#ifndef LIBBSP_ARM_LM3S69XX_IRQ_H
26#define LIBBSP_ARM_LM3S69XX_IRQ_H
27
28#ifndef ASM
29
30#include <rtems.h>
31#include <rtems/irq.h>
32#include <rtems/irq-extension.h>
33#include <bspopts.h>
34
35/**
36 * @defgroup lm3s69xx_interrupt Interrupt Support
37 *
38 * @ingroup arm_lm3s69xx
39 *
40 * @brief Interrupt support.
41 */
42
43#endif /* ASM */
44
45#define LM3S69XX_IRQ_GPIO_PORT_A 0
46#define LM3S69XX_IRQ_GPIO_PORT_B 1
47#define LM3S69XX_IRQ_GPIO_PORT_C 2
48#define LM3S69XX_IRQ_GPIO_PORT_D 3
49#define LM3S69XX_IRQ_GPIO_PORT_E 4
50#define LM3S69XX_IRQ_UART_0 5
51#define LM3S69XX_IRQ_UART_1 6
52#define LM3S69XX_IRQ_SSI_0 7
53#define LM3S69XX_IRQ_I2C_0 8
54#define LM3S69XX_IRQ_PWM_FAULT 9
55#define LM3S69XX_IRQ_PWM_GENERATOR_0 10
56#define LM3S69XX_IRQ_PWM_GENERATOR_1 11
57#define LM3S69XX_IRQ_PWM_GENERATOR_2 12
58#define LM3S69XX_IRQ_QEI_0 13
59#define LM3S69XX_IRQ_ADC0_SEQUENCE_0 14
60#define LM3S69XX_IRQ_ADC0_SEQUENCE_1 15
61#define LM3S69XX_IRQ_ADC0_SEQUENCE_2 16
62#define LM3S69XX_IRQ_ADC0_SEQUENCE_3 17
63#define LM3S69XX_IRQ_WATCHDOG_TIMER_0 18
64#define LM3S69XX_IRQ_TIMER_0_A 19
65#define LM3S69XX_IRQ_TIMER_0_B 20
66#define LM3S69XX_IRQ_TIMER_1_A 21
67#define LM3S69XX_IRQ_TIMER_1_B 22
68#define LM3S69XX_IRQ_TIMER_2_A 23
69#define LM3S69XX_IRQ_TIMER_2_B 24
70#define LM3S69XX_IRQ_ANALOG_COMPARATOR_0 25
71#define LM3S69XX_IRQ_ANALOG_COMPARATOR_1 26
72#define LM3S69XX_IRQ_SYSTEM_CONTROL 28
73#define LM3S69XX_IRQ_FLASH_MEMORY_CONTROL 29
74#define LM3S69XX_IRQ_GPIO_PORT_F 30
75#define LM3S69XX_IRQ_GPIO_PORT_G 31
76/* NOTE: lm3s3749 */
77#define LM3S69XX_IRQ_GPIO_PORT_H 32
78#define LM3S69XX_IRQ_UART_2 33
79/* NOTE: lm3s3749 */
80#define LM3S69XX_IRQ_SSI_1 34
81#define LM3S69XX_IRQ_TIMER_3_A 35
82#define LM3S69XX_IRQ_TIMER_3_B 36
83#define LM3S69XX_IRQ_I2C_1 37
84
85/* NOTE: lm3s6965 */
86#define LM3S69XX_IRQ_QEI_1 38
87#define LM3S69XX_IRQ_ETHERNET_CONTROLLER 42
88
89#define LM3S69XX_IRQ_HIBERNATION_MODULE 43
90
91/* NOTE: lm3s3749 */
92#define LM3S69XX_IRQ_USB 44
93#define LM3S69XX_IRQ_PWM_GENERATOR_3 45
94#define LM3S69XX_IRQ_UDMA_SOFTWARE 46
95#define LM3S69XX_IRQ_UDMA_ERROR 47
96
97#define LM3S69XX_IRQ_PRIORITY_VALUE_MIN 0
98#define LM3S69XX_IRQ_PRIORITY_VALUE_MAX 7
99#define LM3S69XX_IRQ_PRIORITY_COUNT (LM3S69XX_IRQ_PRIORITY_VALUE_MAX + 1)
100#define LM3S69XX_IRQ_PRIORITY_HIGHEST LM3S69XX_IRQ_PRIORITY_VALUE_MIN
101#define LM3S69XX_IRQ_PRIORITY_LOWEST LM3S69XX_IRQ_PRIORITY_VALUE_MAX
102
103#define BSP_INTERRUPT_VECTOR_MIN 0
104/* NOTE: for lm3s6965 - 43 */
105#define BSP_INTERRUPT_VECTOR_MAX 47
106
107#endif /* LIBBSP_ARM_LM3S69XX_IRQ_H */
Note: See TracBrowser for help on using the repository browser.