source: rtems/c/src/lib/libbsp/m68k/genmcf548x/include/bsp.h @ 89fc9341

4.104.115
Last change on this file since 89fc9341 was 4909a30, checked in by Joel Sherrill <joel.sherrill@…>, on 09/10/08 at 21:35:37

2008-09-10 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Review of all bsp_cleanup() implementations. In this phase, all prototypes were removed from bsp.h and empty implementations were removed and made to use the shared stub.
  • Property mode set to 100644
File size: 5.0 KB
Line 
1/*===============================================================*\
2| Project: RTEMS generic mcf548x BSP                              |
3+-----------------------------------------------------------------+
4| File: bsp.h                                                     |
5+-----------------------------------------------------------------+
6| The file contains the BSP header of generic MCF548x BSP.        |
7+-----------------------------------------------------------------+
8|                    Copyright (c) 2007                           |
9|                    Embedded Brains GmbH                         |
10|                    Obere Lagerstr. 30                           |
11|                    D-82178 Puchheim                             |
12|                    Germany                                      |
13|                    rtems@embedded-brains.de                     |
14+-----------------------------------------------------------------+
15|                                                                 |
16| Parts of the code has been derived from the "dBUG source code"  |
17| package Freescale is providing for M548X EVBs. The usage of     |
18| the modified or unmodified code and it's integration into the   |
19| generic mcf548x BSP has been done according to the Freescale    |
20| license terms.                                                  |
21|                                                                 |
22| The Freescale license terms can be reviewed in the file         |
23|                                                                 |
24|    Freescale_license.txt                                        |
25|                                                                 |
26+-----------------------------------------------------------------+
27|                                                                 |
28| The generic mcf548x BSP has been developed on the basic         |
29| structures and modules of the av5282 BSP.                       |
30|                                                                 |
31+-----------------------------------------------------------------+
32|                                                                 |
33| The license and distribution terms for this file may be         |
34| found in the file LICENSE in this distribution or at            |
35|                                                                 |
36| http://www.rtems.com/license/LICENSE.                           |
37|                                                                 |
38+-----------------------------------------------------------------+
39|                                                                 |
40|   date                      history                        ID   |
41| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
42| 12.11.07                    1.0                            ras  |
43|                                                                 |
44\*===============================================================*/
45
46#ifndef __GENMCF548X_BSP_H
47#define __GENMCF548X_BSP_H
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52#include <bspopts.h>
53
54#include <rtems.h>
55#include <rtems/iosupp.h>
56#include <rtems/console.h>
57#include <rtems/clockdrv.h>
58#include <rtems/iosupp.h>
59#include <rtems/bspIo.h>
60
61/***************************************************************************/
62/**  Hardware data structure headers                                      **/
63#include <mcf548x/mcf548x.h>
64
65/***************************************************************************/
66/**  Network driver configuration                                         **/
67struct rtems_bsdnet_ifconfig;
68extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
69#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fs1"
70#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
71
72/***************************************************************************/
73/**  User Definable configuration                                         **/
74
75/* define which port the console should use - all other ports are then defined as general purpose */
76#define CONSOLE_PORT        0
77
78#define RAM_END 0x4000000 /* 64 MB */
79
80/* externals */
81
82/* constants */
83
84/* miscellaneous stuff assumed to exist */
85
86extern rtems_configuration_table BSP_Configuration;
87
88/*
89 *  Device Driver Table Entries
90 */
91
92/*
93 * NOTE: Use the standard Console driver entry
94 */
95
96/*
97 * NOTE: Use the standard Clock driver entry
98 */
99
100
101/* functions */
102
103uint32_t get_CPU_clock_speed(void);
104
105m68k_isr_entry set_vector(
106  rtems_isr_entry     handler,
107  rtems_vector_number vector,
108  int                 type
109);
110
111/*
112 * Interrupt assignments
113 *  Highest-priority listed first
114 */
115#define FEC_IRQ_LEVEL       4
116#define FEC_IRQ_RX_PRIORITY 7
117#define FEC_IRQ_TX_PRIORITY 6
118
119#define SLT0_IRQ_LEVEL      4
120#define SLT0_IRQ_PRIORITY   0
121
122#define PSC0_IRQ_LEVEL      3
123#define PSC0_IRQ_PRIORITY   7
124#define PSC1_IRQ_LEVEL      3
125#define PSC1_IRQ_PRIORITY   6
126#define PSC2_IRQ_LEVEL      3
127#define PSC2_IRQ_PRIORITY   5
128#define PSC3_IRQ_LEVEL      3
129#define PSC3_IRQ_PRIORITY   4
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif
Note: See TracBrowser for help on using the repository browser.