1 | /* |
---|
2 | * This include file contains all board IO definitions. |
---|
3 | * |
---|
4 | * SH-gdb simulator BSP |
---|
5 | * |
---|
6 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
7 | * |
---|
8 | * COPYRIGHT (c) 2001, Ralf Corsepius, Ulm, Germany |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 2001. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.rtems.com/license/LICENSE. |
---|
20 | * |
---|
21 | * $Id$ |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef _BSP_H |
---|
25 | #define _BSP_H |
---|
26 | |
---|
27 | #ifdef __cplusplus |
---|
28 | extern "C" { |
---|
29 | #endif |
---|
30 | |
---|
31 | #include <rtems.h> |
---|
32 | #include <rtems/clockdrv.h> |
---|
33 | #include <rtems/console.h> |
---|
34 | |
---|
35 | #include <bspopts.h> |
---|
36 | |
---|
37 | /* |
---|
38 | * FIXME: One of these would be enough. |
---|
39 | */ |
---|
40 | #include <rtems/devnull.h> |
---|
41 | |
---|
42 | /* Constants */ |
---|
43 | |
---|
44 | Thread clock_driver_sim_idle_body(uintptr_t); |
---|
45 | #define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body |
---|
46 | |
---|
47 | /* |
---|
48 | * Simple spin delay in microsecond units for device drivers. |
---|
49 | * This is very dependent on the clock speed of the target. |
---|
50 | * |
---|
51 | * FIXME: Not applicable with gdb's simulator |
---|
52 | * Kept for sourcecode compatibility with other sh-BSPs |
---|
53 | */ |
---|
54 | #define rtems_bsp_delay( microseconds ) CPU_delay(microseconds) |
---|
55 | #define sh_delay( microseconds ) CPU_delay(microseconds) |
---|
56 | |
---|
57 | /* |
---|
58 | * Defined in the linker script 'linkcmds' |
---|
59 | */ |
---|
60 | |
---|
61 | extern void *CPU_Interrupt_stack_low ; |
---|
62 | extern void *CPU_Interrupt_stack_high ; |
---|
63 | |
---|
64 | #ifdef __cplusplus |
---|
65 | } |
---|
66 | #endif |
---|
67 | |
---|
68 | #endif |
---|