comparison packages/hal/mn10300/stb/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 AM33/STB boards.
41 // Usage: #include <cyg/hal/plf_stub.h>
42 //
43 //####DESCRIPTIONEND####
44 //
45 //=============================================================================
46
47 #include <pkgconf/hal.h>
48 #include <pkgconf/hal_mn10300_am33_stb.h>
49
50 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
51
52 #include <cyg/infra/cyg_type.h> // CYG_UNUSED_PARAM
53
54 #include <cyg/hal/mn10300_stub.h> // architecture stub support
55
56 //----------------------------------------------------------------------------
57 // Define serial stuff.
58 extern void hal_stb_init_serial( void );
59 extern int hal_stb_get_char( void );
60 extern void hal_stb_put_char( int c );
61 extern int hal_stb_interruptible(int state);
62 extern void hal_stb_init_break_irq( void );
63
64 #define HAL_STUB_PLATFORM_INIT_SERIAL() hal_stb_init_serial()
65 #define HAL_STUB_PLATFORM_GET_CHAR() hal_stb_get_char()
66 #define HAL_STUB_PLATFORM_PUT_CHAR(c) hal_stb_put_char((c))
67 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud))
68 #define HAL_STUB_PLATFORM_INTERRUPTIBLE (&hal_stb_interruptible)
69 #define HAL_STUB_PLATFORM_INIT_BREAK_IRQ() hal_stb_init_break_irq()
70
71 //----------------------------------------------------------------------------
72 // Stub initializer.
73
74 externC void hal_stb_platform_init(void);
75
76 #define HAL_STUB_PLATFORM_INIT() hal_stb_platform_init()
77
78 //----------------------------------------------------------------------------
79 // Reset.
80 #define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT
81
82 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
83
84 //-----------------------------------------------------------------------------
85 #endif // CYGONCE_HAL_PLF_STUB_H
86 // End of plf_stub.h