Mercurial > ecos
annotate packages/hal/arm/pid/current/include/plf_stub.h @ 50:a0774359f013 ecos-sw-1999-11-02
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
| author | jlarmour |
|---|---|
| date | Tue, 02 Nov 1999 20:57:07 +0000 |
| parents | 443894e2e912 |
| children | c38311975d4f |
| rev | line source |
|---|---|
| 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. | |
|
50
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
76 #ifdef CYG_HAL_STARTUP_STUBS |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
77 // Just call the ROM's entry point. Not as safe as a reset, but the PID |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
78 // doesn't have a watchdog, so this'll have to do. |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
79 externC void reset_vector(void); |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
80 #define HAL_STUB_PLATFORM_RESET() reset_vector() |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
81 #else |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
82 #define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
83 #endif |
| 2 | 84 |
| 85 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS | |
| 86 | |
| 87 //----------------------------------------------------------------------------- | |
| 88 #endif // CYGONCE_HAL_PLF_STUB_H | |
| 89 // End of plf_stub.h |
