[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 | |
---|
[e90fc943] | 37 | #define BSP_SMALL_MEMORY 1 |
---|
| 38 | |
---|
[4a238002] | 39 | /* EDIT: To activate the sci driver, change the define below */ |
---|
| 40 | #if 1 |
---|
[96b2583] | 41 | #include <rtems/devnull.h> |
---|
[4a238002] | 42 | #define BSP_CONSOLE_DEVNAME "/dev/null" |
---|
| 43 | #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY |
---|
| 44 | #else |
---|
| 45 | #include <sh/sci.h> |
---|
| 46 | #define BSP_CONSOLE_DEVNAME "/dev/sci0" |
---|
| 47 | #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY |
---|
| 48 | #endif |
---|
| 49 | |
---|
[50cf94da] | 50 | /* Constants */ |
---|
[7046cdd] | 51 | |
---|
[50cf94da] | 52 | /* |
---|
| 53 | * Defined in the linker script 'linkcmds' |
---|
| 54 | */ |
---|
| 55 | |
---|
[8fd544d5] | 56 | extern void *CPU_Interrupt_stack_low; |
---|
| 57 | extern void *CPU_Interrupt_stack_high; |
---|
[50cf94da] | 58 | |
---|
| 59 | /* |
---|
| 60 | * Device Driver Table Entries |
---|
| 61 | */ |
---|
| 62 | |
---|
| 63 | /* |
---|
| 64 | * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console |
---|
| 65 | */ |
---|
| 66 | #undef CONSOLE_DRIVER_TABLE_ENTRY |
---|
| 67 | #define CONSOLE_DRIVER_TABLE_ENTRY \ |
---|
[4a238002] | 68 | BSP_CONSOLE_DRIVER_TABLE_ENTRY, \ |
---|
[50cf94da] | 69 | { console_initialize, console_open, console_close, \ |
---|
| 70 | console_read, console_write, console_control } |
---|
[0fdc099] | 71 | |
---|
[50cf94da] | 72 | /* |
---|
| 73 | * NOTE: Use the standard Clock driver entry |
---|
| 74 | */ |
---|
| 75 | |
---|
| 76 | #ifdef __cplusplus |
---|
| 77 | } |
---|
| 78 | #endif |
---|
| 79 | |
---|
| 80 | #endif |
---|