OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [m68k/] [arch/] [v2_0/] [include/] [hal_diag.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#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/Red Hat. 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 Red Hat.
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
//####ECOSGPLCOPYRIGHTBEGIN####
32
// -------------------------------------------
33
// This file is part of eCos, the Embedded Configurable Operating System.
34
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
35
//
36
// eCos is free software; you can redistribute it and/or modify it under
37
// the terms of the GNU General Public License as published by the Free
38
// Software Foundation; either version 2 or (at your option) any later version.
39
//
40
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
41
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
42
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
43
// for more details.
44
//
45
// You should have received a copy of the GNU General Public License along
46
// with eCos; if not, write to the Free Software Foundation, Inc.,
47
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
48
//
49
// As a special exception, if other files instantiate templates or use macros
50
// or inline functions from this file, or you compile this file and link it
51
// with other works to produce a work based on this file, this file does not
52
// by itself cause the resulting work to be covered by the GNU General Public
53
// License. However the source code for this file must still be made available
54
// in accordance with section (3) of the GNU General Public License.
55
//
56
// This exception does not invalidate any other reasons why a work based on
57
// this file might be covered by the GNU General Public License.
58
//
59
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
60
// at http://sources.redhat.com/ecos/ecos-license/
61
// -------------------------------------------
62
//####ECOSGPLCOPYRIGHTEND####
63
//=============================================================================
64
 
65
#include <pkgconf/hal.h>
66
 
67
#include <cyg/infra/cyg_type.h>
68
 
69
//-----------------------------------------------------------------------------
70
// functions implemented in hal_diag.c
71
 
72
externC void hal_diag_init(void);
73
 
74
externC void hal_diag_write_char(cyg_int8 c);
75
 
76
externC cyg_int8 hal_diag_read_char(void);
77
 
78
//-----------------------------------------------------------------------------
79
 
80
#define HAL_DIAG_INIT() hal_diag_init()
81
 
82
#define HAL_DIAG_WRITE_CHAR(_c_) hal_diag_write_char(_c_)
83
 
84
#define HAL_DIAG_READ_CHAR(_c_) ((_c_) = hal_diag_read_char())
85
 
86
//-----------------------------------------------------------------------------
87
// end of hal_diag.h
88
#endif // CYGONCE_HAL_HAL_DIAG_H
89
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.