4.115
Last change
on this file since 9cff822a was
9cff822a,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/16/15 at 15:40:05
|
Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard
This was done by the following script run from libbsp:
find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do
echo $b
cpu=echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]'
bsp=echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]'
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \
-e "s/define _BSP_H/define ${g}/" \
-i $b
done
|
-
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 LIBBSP_M68K_MRM332_BSP_H |
---|
16 | #define LIBBSP_M68K_MRM332_BSP_H |
---|
17 | |
---|
18 | #include <bspopts.h> |
---|
19 | #include <bsp/default-initial-extension.h> |
---|
20 | |
---|
21 | #include <rtems.h> |
---|
22 | #include <rtems/bspIo.h> |
---|
23 | #include <rtems/clockdrv.h> |
---|
24 | #include <rtems/console.h> |
---|
25 | #include <rtems/iosupp.h> |
---|
26 | #include <mrm332.h> |
---|
27 | |
---|
28 | #ifdef __cplusplus |
---|
29 | extern "C" { |
---|
30 | #endif |
---|
31 | |
---|
32 | #define CONSOLE_SCI |
---|
33 | |
---|
34 | /* externals */ |
---|
35 | |
---|
36 | extern char _etext[]; |
---|
37 | extern char _copy_start[]; |
---|
38 | extern char _edata[]; |
---|
39 | extern char _clear_start[]; |
---|
40 | extern char end[]; |
---|
41 | extern bool _copy_data_from_rom; |
---|
42 | |
---|
43 | /* constants */ |
---|
44 | |
---|
45 | #ifdef __START_C__ |
---|
46 | #define STACK_SIZE "#0x800" |
---|
47 | #else |
---|
48 | #define STACK_SIZE 0x800 |
---|
49 | #endif |
---|
50 | |
---|
51 | /* macros */ |
---|
52 | |
---|
53 | #define RAW_PUTS(str) \ |
---|
54 | { register char *ptr = str; \ |
---|
55 | while (*ptr) SCI_output_char(*ptr++); \ |
---|
56 | } |
---|
57 | |
---|
58 | #define RAW_PUTI(n) { \ |
---|
59 | register int i, j; \ |
---|
60 | \ |
---|
61 | RAW_PUTS("0x"); \ |
---|
62 | for (i=28;i>=0;i -= 4) { \ |
---|
63 | j = (n>>i) & 0xf; \ |
---|
64 | SCI_output_char( (j>9 ? j-10+'a' : j+'0') ); \ |
---|
65 | } \ |
---|
66 | } |
---|
67 | |
---|
68 | /* miscellaneous stuff assumed to exist */ |
---|
69 | |
---|
70 | extern rtems_isr_entry M68Kvec[]; /* vector table address */ |
---|
71 | |
---|
72 | extern int stack_size; |
---|
73 | extern int stack_start; |
---|
74 | |
---|
75 | /* functions */ |
---|
76 | |
---|
77 | rtems_isr_entry set_vector( |
---|
78 | rtems_isr_entry handler, |
---|
79 | rtems_vector_number vector, |
---|
80 | int type |
---|
81 | ); |
---|
82 | |
---|
83 | void Spurious_Initialize(void); |
---|
84 | |
---|
85 | void _UART_flush(void); |
---|
86 | |
---|
87 | void outbyte(char); |
---|
88 | |
---|
89 | #ifdef __cplusplus |
---|
90 | } |
---|
91 | #endif |
---|
92 | |
---|
93 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.