comparison packages/hal/arm/edb7xxx/current/include/plf_stub.h @ 54:f10165814f1e ecos-sw-1999-11-19

Merge from eCos master repository on 1999-11-19-22:24:39-GMT
author jlarmour
date Fri, 19 Nov 1999 23:37:56 +0000
parents
children c38311975d4f
comparison
equal deleted inserted replaced
53:bf22a672b71b 54:f10165814f1e
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 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.
29 // All Rights Reserved.
30 // -------------------------------------------
31 //
32 //####COPYRIGHTEND####
33 //=============================================================================
34 //#####DESCRIPTIONBEGIN####
35 //
36 // Author(s): jskov
37 // Contributors:jskov, gthomas
38 // Date: 1999-04-21
39 // Purpose: Platform HAL stub support for Cirrus EDB7XXX boards.
40 // Usage: #include <cyg/hal/plf_stub.h>
41 //
42 //####DESCRIPTIONEND####
43 //
44 //=============================================================================
45
46 #include <pkgconf/hal.h>
47 #include <pkgconf/hal_arm_edb7xxx.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/arm_stub.h> // architecture stub support
54
55 //----------------------------------------------------------------------------
56 // Define serial stuff.
57
58 extern void hal_edb7xxx_init_serial(void);
59 extern int hal_edb7xxx_get_char(void);
60 extern void hal_edb7xxx_put_char(int c);
61 extern int hal_edb7xxx_interruptible(int);
62
63 #define HAL_STUB_PLATFORM_INIT_SERIAL() hal_edb7xxx_init_serial()
64 #define HAL_STUB_PLATFORM_GET_CHAR() hal_edb7xxx_get_char()
65 #define HAL_STUB_PLATFORM_PUT_CHAR(c) hal_edb7xxx_put_char((c))
66 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud))
67 #define HAL_STUB_PLATFORM_INTERRUPTIBLE (&hal_edb7xxx_interruptible)
68 #define HAL_STUB_PLATFORM_INIT_BREAK_IRQ() CYG_EMPTY_STATEMENT
69
70 //----------------------------------------------------------------------------
71 // Stub initializer.
72 #define HAL_STUB_PLATFORM_STUBS_INIT() CYG_EMPTY_STATEMENT
73
74 //----------------------------------------------------------------------------
75 // Reset.
76
77 // Try and force the board into a reset state. Since this hardware requires
78 // a "wakeup" signal, we can't just use a watchdog/reset approach.
79 externC void reset_platform(void);
80 #define HAL_STUB_PLATFORM_RESET() reset_platform()
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