source: rtems/c/src/lib/libbsp/m68k/idp/include/bsp.h @ 269707e6

4.104.114.84.95
Last change on this file since 269707e6 was bd9c3d1, checked in by Joel Sherrill <joel.sherrill@…>, on 04/15/98 at 20:50:31

Numerous changes which in total greatly reduced the amount of source
code in each BSP's bspstart.c. These changes were:

+ confdefs.h now knows libio's semaphore requirements
+ shared/main.c now copies Configuration to BSP_Configuration
+ shared/main.c fills in the Cpu_table with default values

This removed the need for rtems_libio_config() and the constant
BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open
files can now be set on the gcc command line.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all Motorola 680x0 IDP board IO definitions.
4 *
5 *  $Id$
6 */
7
8#ifndef __IDP_BSP_H
9#define __IDP_BSP_H
10
11#include <rtems.h>
12#include <console.h>
13#include <clockdrv.h>
14#include <motorola/mc68230.h>
15#include <motorola/mc68681.h>
16
17#define DUART_ADDR      0xb00003   /* base address of the MC68681 DUART */
18
19/*
20 *  Define the time limits for RTEMS Test Suite test durations.
21 *  Long test and short test duration limits are provided.  These
22 *  values are in seconds and need to be converted to ticks for the
23 *  application.
24 */
25
26#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
27#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
28
29/*
30 *  Define the interrupt mechanism for Time Test 27
31 *
32 *  NOTE: tm27 apparently not supported.
33 */
34
35#define MUST_WAIT_FOR_INTERRUPT 0
36
37#define Install_tm27_vector( handler )
38
39#define Cause_tm27_intr() 
40
41#define Clear_tm27_intr() 
42
43#define Lower_tm27_intr()
44
45/* Constants */
46
47#define RAM_START 0
48#define RAM_END   0x200000
49
50#ifdef MIDP_INIT
51#undef EXTERN
52#define EXTERN
53#else
54#undef EXTERN
55#define EXTERN extern
56#endif
57
58/*
59 *  Device Driver Table Entries
60 */
61
62/*
63 * NOTE: Use the standard Console driver entry
64 */
65 
66/*
67 * NOTE: Use the standard Clock driver entry
68 */
69
70/* miscellaneous stuff assumed to exist */
71
72extern rtems_configuration_table BSP_Configuration;
73
74extern m68k_isr_entry M68Kvec[];   /* vector table address */
75
76/* functions */
77
78void bsp_cleanup( void );
79
80m68k_isr_entry set_vector(
81  rtems_isr_entry     handler,
82  rtems_vector_number vector,
83  int                 type
84);
85
86void init_pit( void );
87
88void transmit_char( char ch );
89
90void transmit_char_portb( char ch );
91
92#endif
93/* end of include file */
Note: See TracBrowser for help on using the repository browser.