[f0ef873] | 1 | /* |
---|
| 2 | * This include file contains all board IO definitions. |
---|
| 3 | * |
---|
| 4 | * SH-gdb simulator BSP |
---|
[86ec6ed] | 5 | * |
---|
[f0ef873] | 6 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
[86ec6ed] | 7 | * |
---|
[f0ef873] | 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. |
---|
[0fdc099] | 13 | * |
---|
[f0ef873] | 14 | * COPYRIGHT (c) 2001. |
---|
[86ec6ed] | 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 |
---|
[f48d86a8] | 19 | * http://www.rtems.com/license/LICENSE. |
---|
[86ec6ed] | 20 | * |
---|
[f0ef873] | 21 | * $Id$ |
---|
[86ec6ed] | 22 | */ |
---|
| 23 | |
---|
[34c4852] | 24 | #ifndef _BSP_H |
---|
| 25 | #define _BSP_H |
---|
[86ec6ed] | 26 | |
---|
| 27 | #ifdef __cplusplus |
---|
| 28 | extern "C" { |
---|
| 29 | #endif |
---|
| 30 | |
---|
| 31 | #include <rtems.h> |
---|
[12f971c6] | 32 | #include <rtems/clockdrv.h> |
---|
| 33 | #include <rtems/console.h> |
---|
[f0ef873] | 34 | |
---|
| 35 | #include <bspopts.h> |
---|
| 36 | |
---|
| 37 | /* |
---|
| 38 | * FIXME: One of these would be enough. |
---|
| 39 | */ |
---|
| 40 | #include <gdbsci.h> |
---|
| 41 | #include <rtems/devnull.h> |
---|
[86ec6ed] | 42 | |
---|
[f0ef873] | 43 | /* Constants */ |
---|
[86ec6ed] | 44 | |
---|
[f0ef873] | 45 | /* |
---|
| 46 | * Simple spin delay in microsecond units for device drivers. |
---|
| 47 | * This is very dependent on the clock speed of the target. |
---|
[0fdc099] | 48 | * |
---|
[f0ef873] | 49 | * FIXME: Not applicable with gdb's simulator |
---|
[0fdc099] | 50 | * Kept for sourcecode compatibility with other sh-BSPs |
---|
[f0ef873] | 51 | */ |
---|
[cf282090] | 52 | #define rtems_bsp_delay( microseconds ) CPU_delay(microseconds) |
---|
[f0ef873] | 53 | #define sh_delay( microseconds ) CPU_delay(microseconds) |
---|
[86ec6ed] | 54 | |
---|
[f0ef873] | 55 | /* |
---|
| 56 | * Defined in the linker script 'linkcmds' |
---|
| 57 | */ |
---|
[86ec6ed] | 58 | |
---|
[f0ef873] | 59 | extern void *CPU_Interrupt_stack_low ; |
---|
| 60 | extern void *CPU_Interrupt_stack_high ; |
---|
[86ec6ed] | 61 | |
---|
| 62 | /* |
---|
| 63 | * Device Driver Table Entries |
---|
| 64 | */ |
---|
| 65 | |
---|
| 66 | /* |
---|
[f0ef873] | 67 | * Redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console |
---|
[86ec6ed] | 68 | */ |
---|
[f0ef873] | 69 | #undef CONSOLE_DRIVER_TABLE_ENTRY |
---|
| 70 | #define CONSOLE_DRIVER_TABLE_ENTRY \ |
---|
| 71 | BSP_CONSOLE_DRIVER_TABLE_ENTRY, \ |
---|
| 72 | { console_initialize, console_open, console_close, \ |
---|
| 73 | console_read, console_write, console_control } |
---|
[0fdc099] | 74 | |
---|
[86ec6ed] | 75 | /* |
---|
| 76 | * NOTE: Use the standard Clock driver entry |
---|
| 77 | */ |
---|
| 78 | |
---|
| 79 | #ifdef __cplusplus |
---|
| 80 | } |
---|
| 81 | #endif |
---|
| 82 | |
---|
| 83 | #endif |
---|