|
2
|
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 |
|
|
38 // Date: 1999-02-15 |
|
|
39 // Purpose: Platform HAL stub support for ARM/PID 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_pid.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_pid_init_serial(void); |
|
|
59 extern int hal_pid_get_char(void); |
|
|
60 extern void hal_pid_put_char(int c); |
|
|
61 extern int hal_pid_interruptible(int); |
|
|
62 |
|
|
63 #define HAL_STUB_PLATFORM_INIT_SERIAL() hal_pid_init_serial() |
|
|
64 #define HAL_STUB_PLATFORM_GET_CHAR() hal_pid_get_char() |
|
|
65 #define HAL_STUB_PLATFORM_PUT_CHAR(c) hal_pid_put_char((c)) |
|
|
66 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud)) |
|
|
67 #define HAL_STUB_PLATFORM_INTERRUPTIBLE (&hal_pid_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 #define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT |
|
|
77 |
|
|
78 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS |
|
|
79 |
|
|
80 //----------------------------------------------------------------------------- |
|
|
81 #endif // CYGONCE_HAL_PLF_STUB_H |
|
|
82 // End of plf_stub.h |