Mercurial > ecos-v2_0-branch
annotate packages/hal/arm/pid/current/include/hal_platform_setup.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_PLATFORM_SETUP_H |
| 2 #define CYGONCE_HAL_PLATFORM_SETUP_H | |
| 3 | |
| 4 /*============================================================================= | |
| 5 // | |
| 6 // hal_platform_setup.h | |
| 7 // | |
| 8 // Platform specific support for HAL (assembly code) | |
| 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. All Rights Reserved. | |
| 29 // ------------------------------------------- | |
| 30 // | |
| 31 //####COPYRIGHTEND#### | |
| 32 //============================================================================= | |
| 33 //#####DESCRIPTIONBEGIN#### | |
| 34 // | |
| 35 // Author(s): gthomas | |
| 36 // Contributors: gthomas | |
| 37 // Date: 1999-04-13 | |
| 38 // Purpose: ARM/PID platform specific support routines | |
| 39 // Description: | |
| 40 // Usage: #include <cyg/hal/hal_platform_setup.h> | |
| 41 // | |
| 42 //####DESCRIPTIONEND#### | |
| 43 // | |
| 44 //===========================================================================*/ | |
| 45 | |
|
50
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
46 |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
47 // Define macro used to diddle the LEDs during early initialization. |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
48 // Can use r0+r1. Argument in \x. |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
49 // Control the LEDs PP0-PP3. This requires the jumpers on pins 9-16 to |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
50 // be set on LK11 in order to be visible. Otherwise the parallel port |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
51 // data pins are diddled instead. |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
52 #ifdef CYGHWR_HAL_ARM_PID_DIAG_LEDS |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
53 #define CYGHWR_LED_MACRO \ |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
54 ldr r0,=0x0d800040 ;\ |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
55 mov r1, #((15 & (\x)) << 4) ;\ |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
56 strb r1, [r0] ; |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
57 #endif |
|
a0774359f013
Merge from eCos master repository on 1999-11-02-17:02:15-GMT
jlarmour
parents:
2
diff
changeset
|
58 |
| 2 | 59 #define MEM_RESET 0x0B000020 // Write to this location to enable RAM |
| 60 | |
| 61 #define PLATFORM_SETUP1 \ | |
| 62 ldr r0,=MEM_RESET /* enable RAM */ ;\ | |
| 63 str r0,[r0] | |
| 64 | |
| 65 /*---------------------------------------------------------------------------*/ | |
| 66 /* end of hal_platform_setup.h */ | |
| 67 #endif /* CYGONCE_HAL_PLATFORM_SETUP_H */ |
