comparison packages/hal/mips/vrc4373/current/include/plf_stub.h @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents
children 25e238959bae
comparison
equal deleted inserted replaced
75:41bf073c0c32 76:435cced73e2f
1 #ifndef CYGONCE_HAL_PLF_STUB_H
2 #define CYGONCE_HAL_PLF_STUB_H
3
4 //=============================================================================
5 //
6 // plf_stub.h
7 //
8 // Platform header for GDB stub support.
9 //
10 //=============================================================================
11 //####COPYRIGHTBEGIN####
12 //
13 // -------------------------------------------
14 // The contents of this file are subject to the Red Hat eCos Public License
15 // Version 1.1 (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://www.redhat.com/
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 Configurable Operating System,
25 // released September 30, 1998.
26 //
27 // The Initial Developer of the Original Code is Red Hat.
28 // Portions created by Red Hat are
29 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
30 // All Rights Reserved.
31 // -------------------------------------------
32 //
33 //####COPYRIGHTEND####
34 //=============================================================================
35 //#####DESCRIPTIONBEGIN####
36 //
37 // Author(s): jskov
38 // Contributors:jskov
39 // Date: 1999-02-12
40 // Purpose: Platform HAL stub support for MIPS/Vrc4373 boards.
41 // Usage: #include <cyg/hal/plf_stub.h>
42 //
43 //####DESCRIPTIONEND####
44 //
45 //=============================================================================
46
47 #include <pkgconf/hal.h>
48
49 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
50
51 #include <cyg/infra/cyg_type.h> // CYG_UNUSED_PARAM
52
53 #include <cyg/hal/mips-stub.h> // architecture stub support
54
55 //----------------------------------------------------------------------------
56 // Define serial stuff.
57 extern void hal_plf_init_serial( void );
58 extern int hal_plf_get_char( void );
59 extern void hal_plf_put_char( int c );
60
61 #define HAL_STUB_PLATFORM_INIT_SERIAL() hal_plf_init_serial()
62 #define HAL_STUB_PLATFORM_GET_CHAR() hal_plf_get_char()
63 #define HAL_STUB_PLATFORM_PUT_CHAR(c) hal_plf_put_char((c))
64 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud))
65 #define HAL_STUB_PLATFORM_INTERRUPTIBLE 0
66 #define HAL_STUB_PLATFORM_INIT_BREAK_IRQ() CYG_EMPTY_STATEMENT
67
68 //----------------------------------------------------------------------------
69 // Stub initializer.
70
71 extern void hal_plf_stub_init(void);
72
73 #define HAL_STUB_PLATFORM_INIT() hal_plf_stub_init();
74
75 //----------------------------------------------------------------------------
76 // Reset.
77
78 #define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT
79
80 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
81
82 //-----------------------------------------------------------------------------
83 #endif // CYGONCE_HAL_PLF_STUB_H
84 // End of plf_stub.h