|
2
|
1 #ifndef CYGONCE_PKGCONF_HAL_SPARCLITE_SIM_H |
|
|
2 #define CYGONCE_PKGCONF_HAL_SPARCLITE_SIM_H |
|
|
3 // ==================================================================== |
|
|
4 // |
|
|
5 // pkgconf/hal_sparclite_sim.h |
|
|
6 // |
|
|
7 // HAL configuration file |
|
|
8 // |
|
|
9 // ==================================================================== |
|
|
10 //####COPYRIGHTBEGIN#### |
|
|
11 // |
|
|
12 // ------------------------------------------- |
|
|
13 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
14 // Version 1.0 (the "License"); you may not use this file except in |
|
|
15 // compliance with the License. You may obtain a copy of the License at |
|
|
16 // http://sourceware.cygnus.com/ecos |
|
|
17 // |
|
|
18 // Software distributed under the License is distributed on an "AS IS" |
|
|
19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
20 // License for the specific language governing rights and limitations under |
|
|
21 // the License. |
|
|
22 // |
|
|
23 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
24 // September 30, 1998. |
|
|
25 // |
|
|
26 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
27 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
|
|
28 // ------------------------------------------- |
|
|
29 // |
|
|
30 //####COPYRIGHTEND#### |
|
|
31 // ==================================================================== |
|
|
32 //#####DESCRIPTIONBEGIN#### |
|
|
33 // |
|
|
34 // Author(s): bartv |
|
|
35 // Contributors: bartv, hmt |
|
|
36 // Date: 1998-09-02 |
|
|
37 // Purpose: To allow the user to edit HAL configuration options. |
|
|
38 // Description: |
|
|
39 // |
|
|
40 //####DESCRIPTIONEND#### |
|
|
41 // |
|
|
42 // ==================================================================== |
|
|
43 |
|
|
44 |
|
|
45 /* --------------------------------------------------------------------- |
|
|
46 {{CFG_DATA |
|
|
47 |
|
|
48 cdl_package CYGPKG_HAL_SPARCLITE_SLEB { |
|
|
49 display "SPARClite MB8683x evaluation board" |
|
|
50 type radio |
|
|
51 parent CYGPKG_HAL_SPARCLITE |
|
|
52 platform sleb |
|
|
53 description " |
|
|
54 The SPARClite evaluation board HAL package is provided for use |
|
|
55 with the Fujitsu MB8683x boards." |
|
|
56 } |
|
|
57 |
|
|
58 cdl_option CYGHWR_HAL_SPARCLITE_SLEB_STARTUP { |
|
|
59 display "Startup type" |
|
|
60 parent CYGPKG_HAL_SPARCLITE_SLEB |
|
|
61 #type count |
|
|
62 type enum |
|
|
63 legal_values ram rom |
|
|
64 startup |
|
|
65 description " |
|
|
66 When targetting the SPARClite Evaluation Board it is possible to |
|
|
67 build the system for either RAM bootstrap or ROM bootstrap. The |
|
|
68 former generally requires that the board is equipped with ROMs |
|
|
69 containing the Cygmon ROM monitor or equivalent software that |
|
|
70 allows gdb to download the eCos application on to the board. The |
|
|
71 latter typically requires that the eCos application be blown |
|
|
72 into EPROMs or equivalent technology." |
|
|
73 } |
|
|
74 |
|
|
75 }}CFG_DATA */ |
|
|
76 |
|
|
77 #define CYGHWR_HAL_SPARCLITE_SLEB_STARTUP ram |
|
|
78 |
|
|
79 /* -------------------------------------------------------------------*/ |
|
|
80 // The following are NOT config options for now: support for the native |
|
|
81 // Fujitsu ROMs is not a requirement, just a handy thing to have: |
|
|
82 |
|
|
83 #ifdef CYG_HAL_STARTUP_RAM |
|
|
84 // then there is a ROM Monitor of some sort: |
|
|
85 |
|
|
86 // CYG_HAL_USE_ROM_MONITOR_CYGMON: |
|
|
87 // This is defined by default to allow interworking with CygMon and thus |
|
|
88 // GDB so that Breakpoints and ^C interrupts and the like work. |
|
|
89 // |
|
|
90 // Undefine it if building to run with the native Fujitsu boot proms (NOT |
|
|
91 // CYGMON) ie. a "load-and-go" type startup by means of |
|
|
92 // (gdb) target sparclite udp sleb0 |
|
|
93 // or |
|
|
94 // (gdb) target sparclite serial /dev/ttyS0 |
|
|
95 // as opposed to the CygMon way: |
|
|
96 // (gdb) set remotebaud 19200 |
|
|
97 // (gdb) target remote /dev/ttyS0 |
|
|
98 // |
|
|
99 // Such builds will load-and-go when using CygMon, but load-and-go is all |
|
|
100 // the interaction you get. |
|
|
101 |
|
|
102 #define CYG_HAL_USE_ROM_MONITOR_CYGMON |
|
|
103 |
|
|
104 // If using CygMon it's generally helpful to wrap output characters in the |
|
|
105 // GDB protocol as $O packets; CYG_KERNEL_DIAG_GDB enables this by means of |
|
|
106 // calling into CygMon through the vectors provided; this therefore also |
|
|
107 // works with eg. ethernet debugging. |
|
|
108 // |
|
|
109 // Disable CYG_KERNEL_DIAG_GDB and output goes direct, in clear, to |
|
|
110 // serial port 0 (CON1). |
|
|
111 |
|
|
112 #ifdef CYG_HAL_USE_ROM_MONITOR_CYGMON |
|
|
113 #define CYG_KERNEL_DIAG_GDB |
|
|
114 #endif |
|
|
115 |
|
|
116 // However, you might want to force GDB-encoded output to the serial port |
|
|
117 // NOT using CygMon to perform the formatting; this is really only here as |
|
|
118 // a debugging option, in case GDB is behaving oddly. Define |
|
|
119 // CYG_KERNEL_DIAG_GDB_SERIAL_DIRECT + CYG_KERNEL_DIAG_GDB to make GDB $O |
|
|
120 // packets come out the serial port (CON1) |
|
|
121 |
|
|
122 #ifdef CYG_KERNEL_DIAG_GDB |
|
|
123 #undef CYG_KERNEL_DIAG_GDB_SERIAL_DIRECT |
|
|
124 #endif |
|
|
125 |
|
|
126 |
|
|
127 #endif // CYG_HAL_STARTUP_RAM |
|
|
128 |
|
|
129 /* -------------------------------------------------------------------*/ |
|
|
130 #endif /* CYGONCE_PKGCONF_HAL_SPARCLITE_SIM_H */ |
|
|
131 /* EOF hal_sparclite_sim.h */ |