source: rtems/c/src/lib/libbsp/unix/posix/include/bsp.h @ 09b6a093

Last change on this file since 09b6a093 was 09b6a093, checked in by Joel Sherrill <joel.sherrill@…>, on 05/24/00 at 17:06:54

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 these 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: 2.3 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all POSIX BSP definitions.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#ifndef __POSIX_BSP_h
16#define __POSIX_BSP_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <rtems.h>
23#include <clockdrv.h>
24#include <console.h>
25#include <iosupp.h>
26
27/*
28 *  confdefs.h overrides for this BSP:
29 *   - number of termios serial ports (defaults to 1)
30 *   - Interrupt stack space is not minimum if defined.
31 */
32
33/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
34/* #define CONFIGURE_INTERRUPT_STACK_MEMORY  (TBD * 1024) */
35
36/*
37 *  Define the time limits for RTEMS Test Suite test durations.
38 *  Long test and short test duration limits are provided.  These
39 *  values are in seconds and need to be converted to ticks for the
40 *  application.
41 *
42 */
43
44#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
45#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
46
47/*
48 *  Stuff for Time Test 27
49 */
50
51#define MUST_WAIT_FOR_INTERRUPT 1
52
53#define Install_tm27_vector( handler ) \
54    set_vector( (handler), 16, 1 )
55
56#define Cause_tm27_intr()  \
57    raise( 16 )
58
59#define Clear_tm27_intr()
60
61#define Lower_tm27_intr() \
62    _ISR_Set_level( 0 );
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 *  Device Driver Table Entries
73 */
74
75/*
76 * NOTE: Use the standard Console driver entry
77 */
78 
79/*
80 * NOTE: Use the standard Clock driver entry
81 */
82 
83/* functions */
84
85rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
86void bsp_start( void );
87void bsp_cleanup( void );
88
89/* miscellaneous stuff assumed to exist */
90
91extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
92extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
93
94extern int                       rtems_argc;
95extern char                    **rtems_argv;
96
97extern rtems_unsigned32          bsp_isr_level;
98
99extern char *rtems_progname;    /* UNIX executable name */
100
101extern int cpu_number;
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif
108/* end of include file */
Note: See TracBrowser for help on using the repository browser.