source: rtems/c/src/lib/libbsp/lm32/milkymist/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.0 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  COPYRIGHT (c) 2011 Sebastien Bourdeauducq
10 */
11
12#ifndef _BSP_H
13#define _BSP_H
14
15#include <stdint.h>
16#include <bspopts.h>
17#include <bsp/default-initial-extension.h>
18
19#include <rtems.h>
20#include <rtems/console.h>
21#include <rtems/clockdrv.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define BSP_HAS_FRAME_BUFFER 1
28
29/*
30 * lm32 requires certain aligment of mbuf because unaligned uint32_t
31 * accesses are not handled properly.
32 */
33
34#define CPU_U32_FIX
35
36#if defined(RTEMS_NETWORKING)
37#include <rtems/rtems_bsdnet.h>
38struct rtems_bsdnet_ifconfig;
39extern int rtems_minimac_driver_attach (struct rtems_bsdnet_ifconfig *config,
40                                        int attaching);
41#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_minimac_driver_attach
42#define RTEMS_BSP_NETWORK_DRIVER_NAME "minimac0"
43#endif
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
Note: See TracBrowser for help on using the repository browser.