|
2
|
1 #ifndef CYGONCE_HAL_DIAG_H |
|
|
2 #define CYGONCE_HAL_DIAG_H |
|
|
3 |
|
|
4 /*============================================================================= |
|
|
5 // |
|
|
6 // hal_diag.h |
|
|
7 // |
|
|
8 // HAL Support for Kernel Diagnostic Routines |
|
|
9 // |
|
|
10 //============================================================================= |
|
|
11 //####COPYRIGHTBEGIN#### |
|
|
12 // |
|
|
13 // ------------------------------------------- |
|
|
14 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
15 // Version 1.0 (the "License"); you may not use this file except in |
|
|
16 // compliance with the License. You may obtain a copy of the License at |
|
|
17 // http://sourceware.cygnus.com/ecos |
|
|
18 // |
|
|
19 // Software distributed under the License is distributed on an "AS IS" |
|
|
20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
21 // License for the specific language governing rights and limitations under |
|
|
22 // the License. |
|
|
23 // |
|
|
24 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
25 // September 30, 1998. |
|
|
26 // |
|
|
27 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
28 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
|
|
29 // ------------------------------------------- |
|
|
30 // |
|
|
31 //####COPYRIGHTEND#### |
|
|
32 //============================================================================= |
|
|
33 //#####DESCRIPTIONBEGIN#### |
|
|
34 // |
|
|
35 // Author(s): nickg, gthomas |
|
|
36 // Contributors: nickg, gthomas |
|
|
37 // Date: 1998-09-11 |
|
|
38 // Purpose: HAL Support for Kernel Diagnostic Routines |
|
|
39 // Description: Diagnostic routines for use during kernel development. |
|
|
40 // Usage: #include <cyg/hal/hal_diag.h> |
|
|
41 // |
|
|
42 //####DESCRIPTIONEND#### |
|
|
43 // |
|
|
44 //===========================================================================*/ |
|
|
45 |
|
|
46 #include <pkgconf/hal.h> |
|
|
47 |
|
|
48 #include <cyg/infra/cyg_type.h> |
|
|
49 |
|
|
50 /*---------------------------------------------------------------------------*/ |
|
|
51 /* functions implemented in hal_diag.c */ |
|
|
52 |
|
|
53 externC void hal_diag_init(void); |
|
|
54 externC void hal_diag_write_char(char c); |
|
|
55 externC void hal_diag_read_char(char *c); |
|
|
56 |
|
|
57 /*---------------------------------------------------------------------------*/ |
|
|
58 |
|
|
59 #define HAL_DIAG_INIT() hal_diag_init() |
|
|
60 |
|
|
61 #define HAL_DIAG_WRITE_CHAR(_c_) hal_diag_write_char(_c_) |
|
|
62 |
|
|
63 #define HAL_DIAG_READ_CHAR(_c_) hal_diag_read_char(&_c_) |
|
|
64 |
|
|
65 /*---------------------------------------------------------------------------*/ |
|
|
66 /* end of hal_diag.h */ |
|
|
67 #endif /* CYGONCE_HAL_DIAG_H */ |