4.104.114.84.95
Last change
on this file since 2ee14950 was
2ee14950,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/22/04 at 13:27:01
|
2004-04-22 Ralf Corsepius <ralf_corsepius@…>
- include/bsp.h: Split out tmtest27 support.
- include/tm27.h: New.
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[501d312] | 1 | /* bsp.h |
---|
| 2 | * |
---|
| 3 | * This include file contains some definitions specific to the |
---|
| 4 | * i960 simulator in gdb. |
---|
| 5 | * |
---|
| 6 | * COPYRIGHT (c) 1989-1999. |
---|
| 7 | * On-Line Applications Research Corporation (OAR). |
---|
| 8 | * |
---|
| 9 | * The license and distribution terms for this file may be |
---|
| 10 | * found in the file LICENSE in this distribution or at |
---|
[366e548] | 11 | * http://www.rtems.com/license/LICENSE. |
---|
[501d312] | 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #ifndef __CVME961_h |
---|
| 17 | #define __CVME961_h |
---|
| 18 | |
---|
| 19 | #ifdef __cplusplus |
---|
| 20 | extern "C" { |
---|
| 21 | #endif |
---|
| 22 | |
---|
[9f70652b] | 23 | #include <bspopts.h> |
---|
| 24 | |
---|
[501d312] | 25 | #include <rtems.h> |
---|
[fb7a141] | 26 | #include <rtems/iosupp.h> |
---|
| 27 | #include <rtems/console.h> |
---|
| 28 | #include <rtems/clockdrv.h> |
---|
[501d312] | 29 | |
---|
| 30 | /* |
---|
| 31 | * Simple spin delay in microsecond units for device drivers. |
---|
| 32 | * This is very dependent on the clock speed of the target. |
---|
| 33 | */ |
---|
| 34 | |
---|
[cf282090] | 35 | #define rtems_bsp_delay( microseconds ) \ |
---|
[195e6663] | 36 | { register uint32_t _delay=(microseconds); \ |
---|
| 37 | register uint32_t _tmp = 0; /* initialized to avoid warning */ \ |
---|
[501d312] | 38 | asm volatile( "0: \ |
---|
| 39 | remo 3,31,%0 ; \ |
---|
| 40 | cmpo 0,%0 ; \ |
---|
| 41 | subo 1,%1,%1 ; \ |
---|
| 42 | cmpobne.t 0,%1,0b " \ |
---|
| 43 | : "=d" (_tmp), "=d" (_delay) \ |
---|
| 44 | : "0" (_tmp), "1" (_delay) ); \ |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | /* Constants */ |
---|
| 48 | |
---|
| 49 | /* miscellaneous stuff assumed to exist */ |
---|
| 50 | |
---|
| 51 | extern rtems_configuration_table BSP_Configuration; |
---|
| 52 | |
---|
| 53 | /* |
---|
| 54 | * Device Driver Table Entries |
---|
| 55 | */ |
---|
| 56 | |
---|
| 57 | /* |
---|
| 58 | * NOTE: Use the standard Console driver entry |
---|
| 59 | */ |
---|
[6128a4a] | 60 | |
---|
[501d312] | 61 | /* |
---|
| 62 | * NOTE: Use the standard Clock driver entry |
---|
| 63 | */ |
---|
| 64 | |
---|
| 65 | /* functions */ |
---|
| 66 | |
---|
| 67 | void bsp_cleanup( void ); |
---|
| 68 | |
---|
| 69 | /* |
---|
| 70 | i960_isr_entry set_vector( rtems_isr_entry, unsigned int, unsigned int ); |
---|
| 71 | */ |
---|
| 72 | |
---|
| 73 | #ifdef __cplusplus |
---|
| 74 | } |
---|
| 75 | #endif |
---|
| 76 | |
---|
| 77 | #endif |
---|
| 78 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.