4.104.115
Last change
on this file since 89fc9341 was
4909a30,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/10/08 at 21:35:37
|
2008-09-10 Joel Sherrill <joel.sherrill@…>
- include/bsp.h: Review of all bsp_cleanup() implementations. In this
phase, all prototypes were removed from bsp.h and empty
implementations were removed and made to use the shared stub.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains some definitions specific to the |
---|
4 | * h8 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 |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _BSP_H |
---|
17 | #define _BSP_H |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <bspopts.h> |
---|
24 | |
---|
25 | #include <rtems.h> |
---|
26 | #include <rtems/iosupp.h> |
---|
27 | #include <rtems/console.h> |
---|
28 | #include <rtems/clockdrv.h> |
---|
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 | |
---|
35 | #define rtems_bsp_delay( microseconds ) \ |
---|
36 | { register uint32_t _delay=(microseconds); \ |
---|
37 | register uint32_t _tmp = 0; /* initialized to avoid warning */ \ |
---|
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 | /* |
---|
52 | * Device Driver Table Entries |
---|
53 | */ |
---|
54 | |
---|
55 | /* |
---|
56 | * NOTE: Use the standard Console driver entry |
---|
57 | */ |
---|
58 | |
---|
59 | /* |
---|
60 | * NOTE: Use the standard Clock driver entry |
---|
61 | */ |
---|
62 | |
---|
63 | #ifdef __cplusplus |
---|
64 | } |
---|
65 | #endif |
---|
66 | |
---|
67 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.