source: rtems/c/src/lib/libbsp/m68k/sim68000/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.3 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains some definitions specific to the
4 *  BSVC simulator BSP.
5 *
6 *  COPYRIGHT (c) 1989-2000.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 */
13
14#ifndef __BSVC_SIM
15#define __BSVC_SIM
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <bspopts.h>
22#include <bsp/default-initial-extension.h>
23
24#include <rtems.h>
25#include <rtems/iosupp.h>
26#include <rtems/console.h>
27#include <rtems/clockdrv.h>
28
29/*
30 *  Define some hardware constants here
31 */
32
33/*
34 *  Simple spin delay in microsecond units for device drivers.
35 *  This is very dependent on the clock speed of the target.
36 */
37
38#define rtems_bsp_delay( microseconds ) \
39  { register uint32_t         _delay=(microseconds); \
40    register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
41    __asm__ volatile( "0: \
42                     remo      3,31,%0 ; \
43                     cmpo      0,%0 ; \
44                     subo      1,%1,%1 ; \
45                     cmpobne.t 0,%1,0b " \
46                  : "=d" (_tmp), "=d" (_delay) \
47                  : "0"  (_tmp), "1"  (_delay) ); \
48  }
49
50/* functions */
51
52rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif
Note: See TracBrowser for help on using the repository browser.