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

4.115
Last change on this file since a052181 was a052181, checked in by Sebastian Huber <sebastian.huber@…>, on 11/14/12 at 08:59:10

score: Add RTEMS_FATAL_SOURCE_EXIT

Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().

  • Property mode set to 100644
File size: 1.7 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 <bsp/default-initial-extension.h>
14#include <rtems.h>
15#include <rtems/iosupp.h>
16#include <rtems/console.h>
17#include <rtems/clockdrv.h>
18#include <rtems/iosupp.h>
19#include <rtems/bspIo.h>
20
21/***************************************************************************/
22/**  Hardware data structure headers                                      **/
23#include <mcf532x/mcf532x.h>
24
25typedef volatile unsigned char vuint8;
26typedef volatile unsigned short vuint16;
27typedef volatile unsigned long vuint32;
28
29/***************************************************************************/
30/**  Network driver configuration                                         **/
31struct rtems_bsdnet_ifconfig;
32extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
33#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
34#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
35
36/***************************************************************************/
37/**  User Definable configuration                                         **/
38
39/* define which port the console should use - all other ports are then defined as general purpose */
40#define CONSOLE_PORT        0
41
42/* functions */
43
44uint32_t bsp_get_CPU_clock_speed(void);
45uint32_t bsp_get_BUS_clock_speed(void);
46
47rtems_isr_entry set_vector(
48  rtems_isr_entry     handler,
49  rtems_vector_number vector,
50  int                 type
51);
52
53/*
54 * Interrupt assignments
55 *  Highest-priority listed first
56 */
57#define FEC_IRQ_LEVEL       4
58
59#define PIT3_IRQ_LEVEL      4
60
61#define UART0_IRQ_LEVEL     3
62#define UART1_IRQ_LEVEL     3
63#define UART2_IRQ_LEVEL     3
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif
Note: See TracBrowser for help on using the repository browser.