source: rtems/c/src/lib/libbsp/m68k/mcf5329/include/bsp.h @ 6b56ec3

4.104.114.95
Last change on this file since 6b56ec3 was 6b56ec3, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 20, 2008 at 2:58:34 PM

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

  • ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, gdb-init, preinstall.am, clock/clock.c, console/console.c, include/bsp.h, include/bspopts.h.in, include/coverhd.h, include/tm27.h, network/network.c, start/start.S, startup/bspclean.c, startup/bspstart.c, startup/cfinit.c, startup/init5329.c, startup/linkcmds, startup/linkcmdsflash, timer/timer.c: New files.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 *  mcf52235 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 <mcf532x/mcf532x.h>
23
24typedef volatile unsigned char vuint8;
25typedef volatile unsigned short vuint16;
26typedef volatile unsigned long vuint32;   
27   
28/***************************************************************************/
29/**  Network driver configuration                                         **/
30struct rtems_bsdnet_ifconfig;
31extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
32#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
33#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
34
35/***************************************************************************/
36/**  User Definable configuration                                         **/
37
38/* define which port the console should use - all other ports are then defined as general purpose */
39#define CONSOLE_PORT        0
40
41/* externals */
42
43/* constants */
44
45/* miscellaneous stuff assumed to exist */
46
47/*
48 *  Device Driver Table Entries
49 */
50 
51/*
52 * NOTE: Use the standard Console driver entry
53 */
54 
55/*
56 * NOTE: Use the standard Clock driver entry
57 */
58
59
60/* functions */
61
62uint32_t bsp_get_CPU_clock_speed(void);
63uint32_t bsp_get_BUS_clock_speed(void);
64
65void bsp_cleanup(void);
66m68k_isr_entry set_vector(
67  rtems_isr_entry     handler,
68  rtems_vector_number vector,
69  int                 type
70);
71
72/*
73 * Interrupt assignments
74 *  Highest-priority listed first
75 */
76#define FEC_IRQ_LEVEL       4
77
78#define PIT3_IRQ_LEVEL      4
79
80#define UART0_IRQ_LEVEL     3
81#define UART1_IRQ_LEVEL     3
82#define UART2_IRQ_LEVEL     3
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
Note: See TracBrowser for help on using the repository browser.