source: rtems/c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h @ 7f6a24ab

4.104.114.84.95
Last change on this file since 7f6a24ab was 7f6a24ab, checked in by Joel Sherrill <joel.sherrill@…>, on 08/28/95 at 15:30:29

Added unused priority ceiling parameter to rtems_semaphore_create.

Rearranged code to created thread handler routines to initialize,
start, restart, and "close/delete" a thread.

Made internal threads their own object class. This now uses the
thread support routines for starting and initializing a thread.

Insured deleted tasks are freed to the Inactive pool associated with the
correct Information block.

Added an RTEMS API specific data area to the thread control block.

Beginnings of removing the word "rtems" from the core.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  XXX : put yours in here
6 *
7 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
8 *  On-Line Applications Research Corporation (OAR).
9 *  All rights assigned to U.S. Government, 1994.
10 *
11 *  This material may be reproduced by or for the U.S. Government pursuant
12 *  to the copyright license under the clause at DFARS 252.227-7013.  This
13 *  notice must appear in all copies of this file and its derivatives.
14 *
15 *  $Id$
16 */
17
18#ifndef __NO_BSP_h
19#define __NO_BSP_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <rtems.h>
26#include <clockdrv.h>
27
28/*
29 *  Define the time limits for RTEMS Test Suite test durations.
30 *  Long test and short test duration limits are provided.  These
31 *  values are in seconds and need to be converted to ticks for the
32 *  application.
33 *
34 */
35
36#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
37#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
38
39/*
40 *  Stuff for Time Test 27
41 */
42
43#define MUST_WAIT_FOR_INTERRUPT 0
44
45#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
46
47#define Cause_tm27_intr()
48
49#define Clear_tm27_intr()
50
51#define Lower_tm27_intr()
52
53/*
54 *  Simple spin delay in microsecond units for device drivers.
55 *  This is very dependent on the clock speed of the target.
56 */
57
58#define delay( microseconds ) \
59  { \
60  }
61
62/* Constants */
63
64#define RAM_START 0
65#define RAM_END   0x100000
66
67/* miscellaneous stuff assumed to exist */
68
69extern rtems_configuration_table BSP_Configuration;
70
71/*
72 * Console driver init
73 */
74 
75rtems_device_driver console_initialize(
76  rtems_device_major_number, rtems_device_minor_number minor, void *);
77 
78#define CONSOLE_DRIVER_TABLE_ENTRY \
79  { console_initialize, NULL, NULL, NULL, NULL, NULL }
80 
81/*
82 * NOTE: Use the standard Clock driver entry
83 */
84
85/* functions */
86
87void bsp_cleanup( void );
88
89no_cpu_isr_entry set_vector(                    /* returns old vector */
90  rtems_isr_entry     handler,                  /* isr routine        */
91  rtems_vector_number vector,                   /* vector number      */
92  int                 type                      /* RTEMS or RAW intr  */
93);
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif
100/* end of include file */
Note: See TracBrowser for help on using the repository browser.