source: rtems/c/src/lib/libbsp/m68k/mcf5235/include/bsp.h @ 56e8ee4e

4.104.114.95
Last change on this file since 56e8ee4e was b7ad0ed, checked in by Chris Johns <chrisj@…>, on 06/11/08 at 08:03:50

2008-06-10 Matthew Riek <matthew.riek@…>

  • Makefile.am: Add shared/m68kbspgetworkarea.c to sources.
  • configure.ac: Add RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION.
  • include/bsp.h: Add include bspopts.h.
  • start/start.S: Formatting changes.
  • startup/bspstart.c: Updated to use the shared BSP support.
  • 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 <bspopts.h>
13#include <rtems.h>
14#include <rtems/iosupp.h>
15#include <rtems/console.h>
16#include <rtems/clockdrv.h>
17#include <rtems/iosupp.h>
18#include <rtems/bspIo.h>
19
20/***************************************************************************/
21/**  Hardware data structure headers                                      **/
22#include <mcf5235/mcf5235.h>   /* internal MCF5235 modules */
23
24/***************************************************************************/
25/**  Network driver configuration                                         **/
26struct rtems_bsdnet_ifconfig;
27extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
28#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
29#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
30
31/***************************************************************************/
32/**  User Definable configuration                                         **/
33
34/* define which port the console should use - all other ports are then defined as general purpose */
35#define CONSOLE_PORT        0
36
37/* externals */
38
39/* constants */
40
41/* miscellaneous stuff assumed to exist */
42
43/*
44 *  Device Driver Table Entries
45 */
46 
47/*
48 * NOTE: Use the standard Console driver entry
49 */
50 
51/*
52 * NOTE: Use the standard Clock driver entry
53 */
54
55
56/* functions */
57
58uint32_t get_CPU_clock_speed(void);
59void bsp_cleanup(void);
60m68k_isr_entry set_vector(
61  rtems_isr_entry     handler,
62  rtems_vector_number vector,
63  int                 type
64);
65
66/*
67 * Interrupt assignments
68 *  Highest-priority listed first
69 */
70#define FEC_IRQ_LEVEL       4
71#define FEC_IRQ_RX_PRIORITY 7
72#define FEC_IRQ_TX_PRIORITY 6
73
74#define PIT3_IRQ_LEVEL      4
75#define PIT3_IRQ_PRIORITY   0
76
77#define UART0_IRQ_LEVEL     3
78#define UART0_IRQ_PRIORITY  7
79#define UART1_IRQ_LEVEL     3
80#define UART1_IRQ_PRIORITY  6
81#define UART2_IRQ_LEVEL     3
82#define UART2_IRQ_PRIORITY  5
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
Note: See TracBrowser for help on using the repository browser.