|
2
|
1 #ifndef CYGONCE_HAL_HAL_DIAG_H |
|
|
2 #define CYGONCE_HAL_HAL_DIAG_H |
|
|
3 |
|
|
4 //============================================================================= |
|
|
5 // |
|
|
6 // hal_diag.h |
|
|
7 // |
|
|
8 // HAL Support for Kernel Diagnostic Routines |
|
|
9 // |
|
|
10 //============================================================================= |
|
|
11 //####UNSUPPORTEDBEGIN#### |
|
|
12 // |
|
|
13 // ------------------------------------------- |
|
|
14 // This source file has been contributed to eCos/Cygnus. It may have been |
|
|
15 // changed slightly to provide an interface consistent with those of other |
|
|
16 // files. |
|
|
17 // |
|
|
18 // The functionality and contents of this file is supplied "AS IS" |
|
|
19 // without any form of support and will not necessarily be kept up |
|
|
20 // to date by Cygnus. |
|
|
21 // |
|
|
22 // All inquiries about this file, or the functionality provided by it, |
|
|
23 // should be directed to the 'ecos-discuss' mailing list (see |
|
|
24 // http://sourceware.cygnus.com/ecos/intouch.html for details). |
|
|
25 // |
|
|
26 // Maintained by: <Unmaintained> |
|
|
27 // ------------------------------------------- |
|
|
28 // |
|
|
29 //####UNSUPPORTEDEND#### |
|
|
30 //============================================================================= |
|
|
31 //####COPYRIGHTBEGIN#### |
|
|
32 // |
|
|
33 // ------------------------------------------- |
|
|
34 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
35 // Version 1.0 (the "License"); you may not use this file except in |
|
|
36 // compliance with the License. You may obtain a copy of the License at |
|
|
37 // http://sourceware.cygnus.com/ecos |
|
|
38 // |
|
|
39 // Software distributed under the License is distributed on an "AS IS" |
|
|
40 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
41 // License for the specific language governing rights and limitations under |
|
|
42 // the License. |
|
|
43 // |
|
|
44 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
45 // September 30, 1998. |
|
|
46 // |
|
|
47 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
48 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
|
|
49 // ------------------------------------------- |
|
|
50 // |
|
|
51 //####COPYRIGHTEND#### |
|
|
52 //============================================================================= |
|
|
53 //#####DESCRIPTIONBEGIN#### |
|
|
54 // |
|
|
55 // Author(s): nickg |
|
|
56 // Contributors:nickg |
|
|
57 // Date: 1998-03-02 |
|
|
58 // Purpose: HAL Support for Kernel Diagnostic Routines |
|
|
59 // Description: Diagnostic routines for use during kernel development. |
|
|
60 // Usage: #include <cyg/hal/hal_diag.h> |
|
|
61 // |
|
|
62 //####DESCRIPTIONEND#### |
|
|
63 // |
|
|
64 //============================================================================= |
|
|
65 |
|
|
66 #include <pkgconf/hal.h> |
|
|
67 |
|
|
68 #include <cyg/infra/cyg_type.h> |
|
|
69 |
|
|
70 //----------------------------------------------------------------------------- |
|
|
71 // functions implemented in hal_diag.c |
|
|
72 |
|
|
73 externC void hal_diag_init(void); |
|
|
74 |
|
|
75 externC void hal_diag_write_char(char c); |
|
|
76 |
|
|
77 externC void hal_diag_read_char(char *c); |
|
|
78 |
|
|
79 //----------------------------------------------------------------------------- |
|
|
80 |
|
|
81 #define HAL_DIAG_INIT() hal_diag_init() |
|
|
82 |
|
|
83 #define HAL_DIAG_WRITE_CHAR(_c_) hal_diag_write_char(_c_) |
|
|
84 |
|
|
85 #define HAL_DIAG_READ_CHAR(_c_) hal_diag_read_char(&_c_) |
|
|
86 |
|
|
87 //----------------------------------------------------------------------------- |
|
|
88 // end of hal_diag.h |
|
|
89 #endif // CYGONCE_HAL_HAL_DIAG_H |