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

4.115
Last change on this file since d7a1863b was 3660154, checked in by Joel Sherrill <joel.sherrill@…>, on 06/01/14 at 23:18:28

mrm332: Tests now build and fewer warnings

  • 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
33#define CONSOLE_SCI
34
35/* externals */
36
37extern char _etext[];
38extern char _copy_start[];
39extern char _edata[];
40extern char _clear_start[];
41extern char end[];
42extern bool _copy_data_from_rom;
43
44/* constants */
45
46#ifdef __START_C__
47#define STACK_SIZE "#0x800"
48#else
49#define STACK_SIZE 0x800
50#endif
51
52/* macros */
53
54#define RAW_PUTS(str) \
55  { register char *ptr = str; \
56    while (*ptr) SCI_output_char(*ptr++); \
57  }
58
59#define RAW_PUTI(n) { \
60    register int i, j; \
61    \
62    RAW_PUTS("0x"); \
63    for (i=28;i>=0;i -= 4) { \
64      j = (n>>i) & 0xf; \
65      SCI_output_char( (j>9 ? j-10+'a' : j+'0') ); \
66    } \
67  }
68
69/* miscellaneous stuff assumed to exist */
70
71extern rtems_isr_entry M68Kvec[];   /* vector table address */
72
73extern int stack_size;
74extern int stack_start;
75
76/* functions */
77
78rtems_isr_entry set_vector(
79  rtems_isr_entry     handler,
80  rtems_vector_number vector,
81  int                 type
82);
83
84void Spurious_Initialize(void);
85
86void _UART_flush(void);
87
88void outbyte(char);
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
Note: See TracBrowser for help on using the repository browser.