source: rtems/c/src/lib/libbsp/m68k/av5282/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.9 KB
Line 
1/*
2 *  av5282 BSP header file
3 */
4
5#ifndef __SBav5282_BSP_H
6#define __SBav5282_BSP_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <bspopts.h>
13#include <bsp/default-initial-extension.h>
14
15#include <rtems.h>
16#include <rtems/iosupp.h>
17#include <rtems/console.h>
18#include <rtems/clockdrv.h>
19#include <rtems/iosupp.h>
20#include <rtems/bspIo.h>
21
22/***************************************************************************/
23/**  Hardware data structure headers                                      **/
24#include <mcf5282/mcf5282.h>   /* internal MCF5282 modules */
25
26/***************************************************************************/
27/**  Network driver configuration                                         **/
28struct rtems_bsdnet_ifconfig;
29extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
30#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fs1"
31#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
32
33/***************************************************************************/
34/**  User Definable configuration                                         **/
35
36/* define which port the console should use - all other ports are then defined as general purpose */
37#define CONSOLE_PORT        0
38
39/* externals */
40
41/* constants */
42
43/* miscellaneous stuff assumed to exist */
44
45/* functions */
46
47uint32_t get_CPU_clock_speed(void);
48
49rtems_isr_entry set_vector(
50  rtems_isr_entry     handler,
51  rtems_vector_number vector,
52  int                 type
53);
54
55/*
56 * Interrupt assignments
57 *  Highest-priority listed first
58 */
59#define FEC_IRQ_LEVEL       4
60#define FEC_IRQ_RX_PRIORITY 7
61#define FEC_IRQ_TX_PRIORITY 6
62
63#define PIT3_IRQ_LEVEL      4
64#define PIT3_IRQ_PRIORITY   0
65
66#define UART0_IRQ_LEVEL     3
67#define UART0_IRQ_PRIORITY  7
68#define UART1_IRQ_LEVEL     3
69#define UART1_IRQ_PRIORITY  6
70#define UART2_IRQ_LEVEL     3
71#define UART2_IRQ_PRIORITY  5
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif
Note: See TracBrowser for help on using the repository browser.