source: rtems/bsps/bfin/TLL6527M/include/bsp.h @ 2afb22b

5
Last change on this file since 2afb22b was 2afb22b, checked in by Chris Johns <chrisj@…>, on Dec 23, 2017 at 7:18:56 AM

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.7 KB
Line 
1/**
2 * @file bsp.h
3 * @ingroup bfin_tll6527m
4 * @brief Global BSP definitions.
5 *
6 * This include file contains all board IO definitions for TLL6527M.
7 */
8
9/*
10 * COPYRIGHT (c) 2010 by ECE Northeastern University.
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license
15 */
16
17#ifndef LIBBSP_BFIN_TLL6527M_BSP_H
18#define LIBBSP_BFIN_TLL6527M_BSP_H
19
20#ifndef ASM
21
22#include <bspopts.h>
23#include <bsp/default-initial-extension.h>
24
25#include <rtems.h>
26#include <rtems/score/bfin.h>
27#include <rtems/bfin/bf52x.h>
28#include <bf52x.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/**
35 * @defgroup bfin_tll6527m TLL6527M Support
36 * @ingroup bsp_bfin
37 * @brief TLL6527M Support Package
38 * @{
39 */
40
41/*
42 * PLL and clock setup values:
43 */
44
45/*
46 *  PLL configuration for TLL6527M
47 *
48 *  XTL   =  27 MHz
49 *  CLKIN =  13 MHz
50 *  VCO   = 391 MHz
51 *  CCLK  = 391 MHz
52 *  SCLK  = 130 MHz
53 */
54
55/**
56 * @name PLL Configuration
57 * @{
58 */
59
60#define PLL_CSEL    0x0000      ///< @brief CCLK = VCO      */
61#define PLL_SSEL    0x0003      ///< @brief SCLK = CCLK/3   */
62#define PLL_MSEL    0x3A00      ///< @brief VCO = 29xCLKIN  */
63#define PLL_DF      0x0001      ///< @brief CLKIN = XTL/2   */
64
65/** @} */
66
67/**
68 * @name Clock setup values
69 * @{
70 */
71
72#define CLKIN               (25000000)  ///< @brief Input clock to the PLL */
73#define CCLK        (600000000)   ///< @brief CORE CLOCK     */
74#define SCLK        (100000000)   ///< @brief SYSTEM CLOCK   */
75
76/** @} */
77
78/**
79 * @name UART setup values
80 * @{
81 */
82
83#define BAUDRATE    57600       ///< @brief Console Baudrate   */
84#define WORD_5BITS  0x00        ///< @brief 5 bits word        */
85#define WORD_6BITS  0x01        ///< @brief 6 bits word        */
86#define WORD_7BITS  0x02        ///< @brief 7 bits word        */
87#define WORD_8BITS  0x03        ///< @brief 8 bits word        */
88#define EVEN_PARITY 0x18        ///< @brief Enable EVEN parity */
89#define ODD_PARITY  0x08        ///< @brief Enable ODD parity  */
90#define TWO_STP_BIT 0x04        ///< @brief 2 stop bits        */
91
92/** @} */
93
94/**
95 * @brief Install an interrupt handler
96 *
97 * This method installs an interrupt handle.
98 *
99 * @param[in] handler is the isr routine
100 * @param[in] vector is the vector number
101 * @param[in] type indicates whether RTEMS or RAW intr
102 *
103 * @return returns old vector
104 */
105rtems_isr_entry set_vector(
106  rtems_isr_entry     handler,
107  rtems_vector_number vector,
108  int                 type
109);
110
111/*
112 *  Internal BSP methods that are used across file boundaries
113 */
114void Init_RTC(void);
115
116/*
117 * Prototype for methods in .S files that are referenced from C.
118 */
119void bfin_null_isr(void);
120
121/** @} */
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* !ASM */
128
129#endif
Note: See TracBrowser for help on using the repository browser.