[ac7d5ef0] | 1 | /* bsp.h |
---|
| 2 | * |
---|
| 3 | * This include file contains all board IO definitions. |
---|
| 4 | * |
---|
| 5 | * XXX : put yours in here |
---|
| 6 | * |
---|
[08311cc3] | 7 | * COPYRIGHT (c) 1989-1999. |
---|
[ac7d5ef0] | 8 | * On-Line Applications Research Corporation (OAR). |
---|
| 9 | * |
---|
[98e4ebf5] | 10 | * The license and distribution terms for this file may be |
---|
| 11 | * found in the file LICENSE in this distribution or at |
---|
[03f2154e] | 12 | * http://www.OARcorp.com/rtems/license.html. |
---|
[ac7d5ef0] | 13 | * |
---|
| 14 | * $Id$ |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #ifndef __NO_BSP_h |
---|
| 18 | #define __NO_BSP_h |
---|
| 19 | |
---|
| 20 | #ifdef __cplusplus |
---|
| 21 | extern "C" { |
---|
| 22 | #endif |
---|
| 23 | |
---|
[42705e11] | 24 | #include <bspopts.h> |
---|
| 25 | |
---|
[ac7d5ef0] | 26 | #include <rtems.h> |
---|
[3a4ae6c] | 27 | #include <console.h> |
---|
[7f6a24ab] | 28 | #include <clockdrv.h> |
---|
[ac7d5ef0] | 29 | |
---|
[df49c60] | 30 | /* |
---|
| 31 | * confdefs.h overrides for this BSP: |
---|
| 32 | * - number of termios serial ports (defaults to 1) |
---|
| 33 | * - Interrupt stack space is not minimum if defined. |
---|
| 34 | */ |
---|
| 35 | |
---|
| 36 | /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ |
---|
| 37 | #define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024) |
---|
| 38 | |
---|
[ac7d5ef0] | 39 | /* |
---|
| 40 | * Define the time limits for RTEMS Test Suite test durations. |
---|
| 41 | * Long test and short test duration limits are provided. These |
---|
| 42 | * values are in seconds and need to be converted to ticks for the |
---|
| 43 | * application. |
---|
| 44 | * |
---|
| 45 | */ |
---|
| 46 | |
---|
| 47 | #define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */ |
---|
| 48 | #define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */ |
---|
| 49 | |
---|
| 50 | /* |
---|
| 51 | * Stuff for Time Test 27 |
---|
| 52 | */ |
---|
| 53 | |
---|
| 54 | #define MUST_WAIT_FOR_INTERRUPT 0 |
---|
| 55 | |
---|
| 56 | #define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 ) |
---|
| 57 | |
---|
| 58 | #define Cause_tm27_intr() |
---|
| 59 | |
---|
| 60 | #define Clear_tm27_intr() |
---|
| 61 | |
---|
| 62 | #define Lower_tm27_intr() |
---|
| 63 | |
---|
| 64 | /* |
---|
| 65 | * Simple spin delay in microsecond units for device drivers. |
---|
| 66 | * This is very dependent on the clock speed of the target. |
---|
| 67 | */ |
---|
| 68 | |
---|
[cbb5fc7] | 69 | #define rtems_bsp_delay( microseconds ) \ |
---|
[ac7d5ef0] | 70 | { \ |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | /* Constants */ |
---|
| 74 | |
---|
| 75 | #define RAM_START 0 |
---|
| 76 | #define RAM_END 0x100000 |
---|
| 77 | |
---|
| 78 | /* miscellaneous stuff assumed to exist */ |
---|
| 79 | |
---|
| 80 | extern rtems_configuration_table BSP_Configuration; |
---|
| 81 | |
---|
[7f6a24ab] | 82 | /* |
---|
[3a4ae6c] | 83 | * Device Driver Table Entries |
---|
| 84 | */ |
---|
| 85 | |
---|
| 86 | /* |
---|
| 87 | * NOTE: Use the standard Console driver entry |
---|
[7f6a24ab] | 88 | */ |
---|
| 89 | |
---|
| 90 | /* |
---|
| 91 | * NOTE: Use the standard Clock driver entry |
---|
| 92 | */ |
---|
| 93 | |
---|
[ac7d5ef0] | 94 | /* functions */ |
---|
| 95 | |
---|
| 96 | void bsp_cleanup( void ); |
---|
| 97 | |
---|
| 98 | no_cpu_isr_entry set_vector( /* returns old vector */ |
---|
| 99 | rtems_isr_entry handler, /* isr routine */ |
---|
| 100 | rtems_vector_number vector, /* vector number */ |
---|
| 101 | int type /* RTEMS or RAW intr */ |
---|
| 102 | ); |
---|
| 103 | |
---|
| 104 | #ifdef __cplusplus |
---|
| 105 | } |
---|
| 106 | #endif |
---|
| 107 | |
---|
| 108 | #endif |
---|
| 109 | /* end of include file */ |
---|