source: rtems/c/src/lib/libbsp/m68k/mrm332/include/bsp.h @ 053abcda

4.11
Last change on this file since 053abcda was 053abcda, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 23, 2014 at 11:38:43 PM

multiple BSPs: Remove BSP_SMALL_MEMORY

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all mrm board IO definitions.
4 */
5
6/*
7 *  COPYRIGHT (c) 1989-2009.
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.rtems.org/license/LICENSE.
13 */
14
15#ifndef _BSP_H
16#define _BSP_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <bspopts.h>
23#include <bsp/default-initial-extension.h>
24
25#include <rtems.h>
26#include <rtems/bspIo.h>
27#include <rtems/clockdrv.h>
28#include <rtems/console.h>
29#include <rtems/iosupp.h>
30#include <mrm332.h>
31#include <rtems/m68k/sim.h>
32#include <rtems/m68k/qsm.h>
33
34#define CONSOLE_SCI
35
36/* externals */
37
38extern char _etext[];
39extern char _copy_start[];
40extern char _edata[];
41extern char _clear_start[];
42extern char end[];
43extern bool _copy_data_from_rom;
44
45/* constants */
46
47#ifdef __START_C__
48#define STACK_SIZE "#0x800"
49#else
50#define STACK_SIZE 0x800
51#endif
52
53/* macros */
54
55#define RAW_PUTS(str) \
56  { register char *ptr = str; \
57    while (*ptr) SCI_output_char(*ptr++); \
58  }
59
60#define RAW_PUTI(n) { \
61    register int i, j; \
62    \
63    RAW_PUTS("0x"); \
64    for (i=28;i>=0;i -= 4) { \
65      j = (n>>i) & 0xf; \
66      SCI_output_char( (j>9 ? j-10+'a' : j+'0') ); \
67    } \
68  }
69
70/* miscellaneous stuff assumed to exist */
71
72extern rtems_isr_entry M68Kvec[];   /* vector table address */
73
74extern int stack_size;
75extern int stack_start;
76
77/* functions */
78
79rtems_isr_entry set_vector(
80  rtems_isr_entry     handler,
81  rtems_vector_number vector,
82  int                 type
83);
84
85void Spurious_Initialize(void);
86
87void _UART_flush(void);
88
89void outbyte(char);
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif
Note: See TracBrowser for help on using the repository browser.