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.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * SH-gdb simulator BSP |
---|
3 | * |
---|
4 | * This include file contains all board IO definitions. |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 2001, Ralf Corsepius, Ulm, Germany |
---|
11 | * |
---|
12 | * This program is distributed in the hope that it will be useful, |
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
15 | * |
---|
16 | * COPYRIGHT (c) 2001. |
---|
17 | * On-Line Applications Research Corporation (OAR). |
---|
18 | * |
---|
19 | * The license and distribution terms for this file may be |
---|
20 | * found in the file LICENSE in this distribution or at |
---|
21 | * http://www.rtems.org/license/LICENSE. |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef LIBBSP_SH_SHSIM_BSP_H |
---|
25 | #define LIBBSP_SH_SHSIM_BSP_H |
---|
26 | |
---|
27 | #ifndef ASM |
---|
28 | |
---|
29 | #include <rtems.h> |
---|
30 | #include <rtems/clockdrv.h> |
---|
31 | #include <rtems/console.h> |
---|
32 | |
---|
33 | #include <bspopts.h> |
---|
34 | #include <bsp/default-initial-extension.h> |
---|
35 | |
---|
36 | /* |
---|
37 | * FIXME: One of these would be enough. |
---|
38 | */ |
---|
39 | #include <rtems/devnull.h> |
---|
40 | |
---|
41 | #ifdef __cplusplus |
---|
42 | extern "C" { |
---|
43 | #endif |
---|
44 | |
---|
45 | /* Constants */ |
---|
46 | |
---|
47 | Thread clock_driver_sim_idle_body(uintptr_t); |
---|
48 | #define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body |
---|
49 | |
---|
50 | /* |
---|
51 | * Defined in the linker script 'linkcmds' |
---|
52 | */ |
---|
53 | extern void *CPU_Interrupt_stack_low; |
---|
54 | extern void *CPU_Interrupt_stack_high; |
---|
55 | |
---|
56 | /* |
---|
57 | * BSP methods that cross file boundaries. |
---|
58 | */ |
---|
59 | int _sys_exit (int n); |
---|
60 | void bsp_hw_init(void); |
---|
61 | |
---|
62 | #ifdef __cplusplus |
---|
63 | } |
---|
64 | #endif |
---|
65 | |
---|
66 | #endif /* !ASM */ |
---|
67 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.