source: rtems/c/src/lib/libbsp/m68k/mcf5235/include/bsp.h @ 3aac2db

4.104.114.95
Last change on this file since 3aac2db was 288f1c33, checked in by Chris Johns <chrisj@…>, on 05/29/08 at 06:01:33

2008-05-29 Chris Johns <chrisj@…>

  • include/bsp.h: FEC unit numbers based on 0 not 1. Change the interface name to fec0.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 *  mcf5235 BSP header file
3 */
4 
5#ifndef _BSP_H
6#define _BSP_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <rtems.h>
13#include <rtems/iosupp.h>
14#include <rtems/console.h>
15#include <rtems/clockdrv.h>
16#include <rtems/iosupp.h>
17#include <rtems/bspIo.h>
18
19/***************************************************************************/
20/**  Hardware data structure headers                                      **/
21#include <mcf5235/mcf5235.h>   /* internal MCF5235 modules */
22
23/***************************************************************************/
24/**  Network driver configuration                                         **/
25struct rtems_bsdnet_ifconfig;
26extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
27#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
28#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
29
30/***************************************************************************/
31/**  User Definable configuration                                         **/
32
33/* define which port the console should use - all other ports are then defined as general purpose */
34#define CONSOLE_PORT        0
35
36/* externals */
37
38/* constants */
39
40/* miscellaneous stuff assumed to exist */
41
42/*
43 *  Device Driver Table Entries
44 */
45 
46/*
47 * NOTE: Use the standard Console driver entry
48 */
49 
50/*
51 * NOTE: Use the standard Clock driver entry
52 */
53
54
55/* functions */
56
57uint32_t get_CPU_clock_speed(void);
58void bsp_cleanup(void);
59m68k_isr_entry set_vector(
60  rtems_isr_entry     handler,
61  rtems_vector_number vector,
62  int                 type
63);
64
65/*
66 * Interrupt assignments
67 *  Highest-priority listed first
68 */
69#define FEC_IRQ_LEVEL       4
70#define FEC_IRQ_RX_PRIORITY 7
71#define FEC_IRQ_TX_PRIORITY 6
72
73#define PIT3_IRQ_LEVEL      4
74#define PIT3_IRQ_PRIORITY   0
75
76#define UART0_IRQ_LEVEL     3
77#define UART0_IRQ_PRIORITY  7
78#define UART1_IRQ_LEVEL     3
79#define UART1_IRQ_PRIORITY  6
80#define UART2_IRQ_LEVEL     3
81#define UART2_IRQ_PRIORITY  5
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
Note: See TracBrowser for help on using the repository browser.