source: rtems/bsps/include/rtems/zilog/z8530.h @ 9964895

5
Last change on this file since 9964895 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.0 KB
Line 
1/**
2 * @file
3 *
4 * @brief Information Related to a Zilog Z8530 SCC Chip
5 *
6 * This include file defines information related to a Zilog Z8530
7 * SCC Chip.  It is a IO mapped part.
8 */
9
10/*
11 *  COPYRIGHT (c) 1989-2011.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.org/license/LICENSE.
17 */
18
19#ifndef _RTEMS_ZILOG_Z8530_H
20#define _RTEMS_ZILOG_Z8530_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/* macros */
27
28#define VOL8( ptr )   ((volatile uint8_t   *)(ptr))
29
30#define Z8x30_STATE0 ( z8530 ) \
31  { char *garbage; \
32    (garbage) = *(VOL8(z8530)) \
33  }
34
35#define Z8x30_WRITE_CONTROL( z8530, reg, data ) \
36   *(VOL8(z8530)) = (reg); \
37   *(VOL8(z8530)) = (data)
38
39#define Z8x30_READ_CONTROL( z8530, reg, data ) \
40   *(VOL8(z8530)) = (reg); \
41   (data) = *(VOL8(z8530))
42
43#define Z8x30_WRITE_DATA( z8530, data ) \
44   *(VOL8(z8530)) = (data);
45
46#define Z8x30_READ_DATA( z8530, data ) \
47   (data) = *(VOL8(z8530));
48
49
50/* RR_0 Bit Definitions */
51
52#define RR_0_TX_BUFFER_EMPTY   0x04
53#define RR_0_RX_DATA_AVAILABLE 0x01
54
55/* read registers */
56
57#define RR_0       0x00
58#define RR_1       0x01
59#define RR_2       0x02
60#define RR_3       0x03
61#define RR_4       0x04
62#define RR_5       0x05
63#define RR_6       0x06
64#define RR_7       0x07
65#define RR_8       0x08
66#define RR_9       0x09
67#define RR_10      0x0A
68#define RR_11      0x0B
69#define RR_12      0x0C
70#define RR_13      0x0D
71#define RR_14      0x0E
72#define RR_15      0x0F
73
74/* write registers */
75
76#define WR_0       0x00
77#define WR_1       0x01
78#define WR_2       0x02
79#define WR_3       0x03
80#define WR_4       0x04
81#define WR_5       0x05
82#define WR_6       0x06
83#define WR_7       0x07
84#define WR_8       0x08
85#define WR_9       0x09
86#define WR_10      0x0A
87#define WR_11      0x0B
88#define WR_12      0x0C
89#define WR_13      0x0D
90#define WR_14      0x0E
91#define WR_15      0x0F
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
Note: See TracBrowser for help on using the repository browser.