source: rtems/c/src/lib/libbsp/bare/include/bsp.h @ 2fbdbd4

Last change on this file since 2fbdbd4 was 2fbdbd4, checked in by Joel Sherrill <joel.sherrill@…>, on 05/24/00 at 14:36:52

Significantly lowered the default memory requirements:

  • CONFIGURE_RTEMS_INIT_TASKS_TABLE was 10 now 0
  • CONFIGURE_POSIX_INIT_THREAD_TABLE was 10 now 0
  • CONFIGURE_ITRON_INIT_TASK_TABLE was 10 now 0
  • CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS was 20 now 3
  • added CONFIGURE_NUMBER_OF_TERMIOS_PORTS and defaulted to 1
  • added CONFIGURE_TERMIOS_DISABLED defaulted to "enabled"
  • miniIMFS is now the default

Added configuration error checks that:

+ Ensure > 0 tasks/threads are configured
+ Ensure at least one inititalization task/thread is defined

bsp.h now defines so BSP specific requirements are accounted for:

+ CONFIGURE_NUMBER_OF_TERMIOS_PORTS
+ CONFIGURE_INTERRUPT_STACK_MEMORY

console_reserve_resources and rtems_termios_reserve_resources
are no longer required and considered obsolete. Calls to
rtems_termios_reserve_resources have been eliminated although
the routine is still there and the body "if 0'ed".

We are very close to having NO reason to modify the
configuration tables in the BSP. Be warned that eventually
we would like to see the need for BSP_Configuration
eliminated!

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  BARE : Allows you to build RTEMS with-out any BSP specific stuff
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15*/
16
17#ifndef __BARE_BSP_h
18#define __BARE_BSP_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <rtems.h>
25#include <console.h>
26#include <clockdrv.h>
27
28/*
29 *  confdefs.h overrides for this BSP:
30 *   - number of termios serial ports (defaults to 1)
31 *   - Interrupt stack space is not minimum if defined.
32 */
33
34/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
35#define CONFIGURE_INTERRUPT_STACK_MEMORY  (12 * 1024)
36
37/*
38 *  Define the time limits for RTEMS Test Suite test durations.
39 *  Long test and short test duration limits are provided.  These
40 *  values are in seconds and need to be converted to ticks for the
41 *  application.
42 *
43 */
44
45#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
46#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
47
48/*
49 *  Stuff for Time Test 27
50 */
51
52#define MUST_WAIT_FOR_INTERRUPT 0
53
54#define Install_tm27_vector( handler )
55
56#define Cause_tm27_intr()
57
58#define Clear_tm27_intr()
59
60#define Lower_tm27_intr()
61
62/*
63 *  Simple spin delay in microsecond units for device drivers.
64 *  This is very dependent on the clock speed of the target.
65 */
66
67#define delay( microseconds ) \
68  { \
69  }
70
71/* miscellaneous stuff assumed to exist */
72
73extern rtems_configuration_table BSP_Configuration;
74
75/*
76 *  Device Driver Table Entries
77 */
78
79/*
80 * NOTE: Use the standard Console driver entry
81 */
82 
83/*
84 * NOTE: Use the standard Clock driver entry
85 */
86
87/*
88 * How many libio files we want
89 */
90
91#define BSP_LIBIO_MAX_FDS       20
92
93/* functions */
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.