[50cf94da] | 1 | /* |
---|
| 2 | * This include file contains all board IO definitions. |
---|
| 3 | * |
---|
| 4 | * generic sh1 |
---|
| 5 | * |
---|
| 6 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
| 7 | * |
---|
| 8 | * COPYRIGHT (c) 1997-1998, FAW 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 | * |
---|
[50cf94da] | 14 | * |
---|
| 15 | * COPYRIGHT (c) 1998. |
---|
| 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 |
---|
[c499856] | 20 | * http://www.rtems.org/license/LICENSE. |
---|
[50cf94da] | 21 | */ |
---|
| 22 | |
---|
[34c4852] | 23 | #ifndef _BSP_H |
---|
| 24 | #define _BSP_H |
---|
[50cf94da] | 25 | |
---|
| 26 | #ifdef __cplusplus |
---|
| 27 | extern "C" { |
---|
| 28 | #endif |
---|
| 29 | |
---|
| 30 | #include <rtems.h> |
---|
[0a0d67c5] | 31 | #include <rtems/clockdrv.h> |
---|
| 32 | #include <rtems/console.h> |
---|
[50cf94da] | 33 | |
---|
[daa93ce8] | 34 | #include <bspopts.h> |
---|
[a052181] | 35 | #include <bsp/default-initial-extension.h> |
---|
[daa93ce8] | 36 | |
---|
[4a238002] | 37 | /* EDIT: To activate the sci driver, change the define below */ |
---|
| 38 | #if 1 |
---|
[96b2583] | 39 | #include <rtems/devnull.h> |
---|
[4a238002] | 40 | #define BSP_CONSOLE_DEVNAME "/dev/null" |
---|
| 41 | #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY |
---|
| 42 | #else |
---|
| 43 | #include <sh/sci.h> |
---|
| 44 | #define BSP_CONSOLE_DEVNAME "/dev/sci0" |
---|
| 45 | #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY |
---|
| 46 | #endif |
---|
| 47 | |
---|
[50cf94da] | 48 | /* Constants */ |
---|
[7046cdd] | 49 | |
---|
[50cf94da] | 50 | /* |
---|
| 51 | * Defined in the linker script 'linkcmds' |
---|
| 52 | */ |
---|
| 53 | |
---|
[8fd544d5] | 54 | extern void *CPU_Interrupt_stack_low; |
---|
| 55 | extern void *CPU_Interrupt_stack_high; |
---|
[50cf94da] | 56 | |
---|
| 57 | /* |
---|
| 58 | * Device Driver Table Entries |
---|
| 59 | */ |
---|
| 60 | |
---|
| 61 | /* |
---|
| 62 | * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console |
---|
| 63 | */ |
---|
| 64 | #undef CONSOLE_DRIVER_TABLE_ENTRY |
---|
| 65 | #define CONSOLE_DRIVER_TABLE_ENTRY \ |
---|
[4a238002] | 66 | BSP_CONSOLE_DRIVER_TABLE_ENTRY, \ |
---|
[50cf94da] | 67 | { console_initialize, console_open, console_close, \ |
---|
| 68 | console_read, console_write, console_control } |
---|
[0fdc099] | 69 | |
---|
[50cf94da] | 70 | /* |
---|
| 71 | * NOTE: Use the standard Clock driver entry |
---|
| 72 | */ |
---|
| 73 | |
---|
| 74 | #ifdef __cplusplus |
---|
| 75 | } |
---|
| 76 | #endif |
---|
| 77 | |
---|
| 78 | #endif |
---|