RTEMS: bsps/m68k/mrm332/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
9/* bsp.h
10 *
11 * This include file contains all mrm board IO definitions.
12 */
13
14/*
15 * COPYRIGHT (c) 1989-2009.
16 * On-Line Applications Research Corporation (OAR).
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#ifndef LIBBSP_M68K_MRM332_BSP_H
24#define LIBBSP_M68K_MRM332_BSP_H
25
36#include <bspopts.h>
37#include <bsp/default-initial-extension.h>
38
39#include <rtems.h>
40#include <rtems/bspIo.h>
41#include <mrm332.h>
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47#define CONSOLE_SCI
48
49/* externals */
50
51extern char _etext[];
52extern char _copy_start[];
53extern char _edata[];
54extern char _clear_start[];
55extern char end[];
56extern bool _copy_data_from_rom;
57
58/* constants */
59
60#ifdef __START_C__
61#define STACK_SIZE "#0x800"
62#else
63#define STACK_SIZE 0x800
64#endif
65
66/* macros */
67
68#define RAW_PUTS(str) \
69 { register char *ptr = str; \
70 while (*ptr) SCI_output_char(*ptr++); \
71 }
72
73#define RAW_PUTI(n) { \
74 register int i, j; \
75 \
76 RAW_PUTS("0x"); \
77 for (i=28;i>=0;i -= 4) { \
78 j = (n>>i) & 0xf; \
79 SCI_output_char( (j>9 ? j-10+'a' : j+'0') ); \
80 } \
81 }
82
83/* miscellaneous stuff assumed to exist */
84
85extern rtems_isr_entry M68Kvec[]; /* vector table address */
86
87extern int stack_size;
88extern int stack_start;
89
90/* functions */
91
92rtems_isr_entry set_vector(
93 rtems_isr_entry handler,
94 rtems_vector_number vector,
95 int type
96);
97
98void Spurious_Initialize(void);
99
100void _UART_flush(void);
101
102void outbyte(char);
103
104#ifdef __cplusplus
105}
106#endif
107
110#endif
bspIo.h
Interface to Kernel Print Methods.
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems.h