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

4.104.115
Last change on this file since ccceaf3 was ccceaf3, checked in by Joel Sherrill <joel.sherrill@…>, on 09/18/08 at 17:42:45

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

  • include/bsp.h: Remove unnecessary boilerplate comments.
  • Property mode set to 100644
File size: 4.7 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/* functions */
81
82uint32_t get_CPU_clock_speed(void);
83
84m68k_isr_entry set_vector(
85  rtems_isr_entry     handler,
86  rtems_vector_number vector,
87  int                 type
88);
89
90/*
91 * Interrupt assignments
92 *  Highest-priority listed first
93 */
94#define FEC_IRQ_LEVEL       4
95#define FEC_IRQ_RX_PRIORITY 7
96#define FEC_IRQ_TX_PRIORITY 6
97
98#define SLT0_IRQ_LEVEL      4
99#define SLT0_IRQ_PRIORITY   0
100
101#define PSC0_IRQ_LEVEL      3
102#define PSC0_IRQ_PRIORITY   7
103#define PSC1_IRQ_LEVEL      3
104#define PSC1_IRQ_PRIORITY   6
105#define PSC2_IRQ_LEVEL      3
106#define PSC2_IRQ_PRIORITY   5
107#define PSC3_IRQ_LEVEL      3
108#define PSC3_IRQ_PRIORITY   4
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif
Note: See TracBrowser for help on using the repository browser.