source: rtems/c/src/lib/libbsp/sh/shsim/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.6 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  SH-gdb simulator BSP
5 *
6 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
7 *
8 *  COPYRIGHT (c) 2001, Ralf Corsepius, Ulm, Germany
9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 *  COPYRIGHT (c) 2001.
15 *  On-Line Applications Research Corporation (OAR).
16 *
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.rtems.com/license/LICENSE.
20 */
21
22#ifndef _BSP_H
23#define _BSP_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include <rtems.h>
30#include <rtems/clockdrv.h>
31#include <rtems/console.h>
32
33#include <bspopts.h>
34#include <bsp/default-initial-extension.h>
35
36#define BSP_SMALL_MEMORY 1
37
38/*
39 * FIXME: One of these would be enough.
40 */
41#include <rtems/devnull.h>
42
43/* Constants */
44
45Thread clock_driver_sim_idle_body(uintptr_t);
46#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
47
48/*
49 *  Simple spin delay in microsecond units for device drivers.
50 *  This is very dependent on the clock speed of the target.
51 *
52 * FIXME: Not applicable with gdb's simulator
53 * Kept for sourcecode compatibility with other sh-BSPs
54 */
55#define rtems_bsp_delay( microseconds ) CPU_delay(microseconds)
56#define sh_delay( microseconds ) CPU_delay(microseconds)
57
58/*
59 * Defined in the linker script 'linkcmds'
60 */
61
62extern void *CPU_Interrupt_stack_low ;
63extern void *CPU_Interrupt_stack_high ;
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif
Note: See TracBrowser for help on using the repository browser.