1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_h8300_h8300h_sim.cdl
|
4 |
|
|
#
|
5 |
|
|
# AKI3068NET board HAL package configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later version.
|
16 |
|
|
##
|
17 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
22 |
|
|
## You should have received a copy of the GNU General Public License along
|
23 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
##
|
26 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
## or inline functions from this file, or you compile this file and link it
|
28 |
|
|
## with other works to produce a work based on this file, this file does not
|
29 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
## License. However the source code for this file must still be made available
|
31 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
##
|
33 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
## this file might be covered by the GNU General Public License.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): jskov
|
44 |
|
|
# Original data: bartv
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 1999-11-02
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_HAL_H8300_H8300H_AKI3068NET {
|
53 |
|
|
display "AKI3068NET"
|
54 |
|
|
parent CYGPKG_HAL_H8300
|
55 |
|
|
requires CYGPKG_HAL_H8300_H8300H
|
56 |
|
|
implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
|
57 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS
|
58 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
|
59 |
|
|
define_header hal_h8300_h8300h_aki3068net.h
|
60 |
|
|
include_dir cyg/hal
|
61 |
|
|
description "
|
62 |
|
|
The aki HAL package provides the support needed to run
|
63 |
|
|
eCos on a Akizuki H8/3068 Network micom board."
|
64 |
|
|
|
65 |
|
|
compile hal_diag.c plf_misc.c delay_us.S
|
66 |
|
|
|
67 |
|
|
define_proc {
|
68 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H "
|
69 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
|
70 |
|
|
|
71 |
|
|
puts $::cdl_header "#define CYG_HAL_H8300"
|
72 |
|
|
puts $::cdl_header "#define CYGNUM_HAL_H8300_SCI_PORTS 1"
|
73 |
|
|
puts $::cdl_header "#define CYGHWR_HAL_VECTOR_TABLE 0xfffe20"
|
74 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_CPU \"H8/300H\""
|
75 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Akizuki H8/3068 Network micom\""
|
76 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\""
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
cdl_component CYG_HAL_STARTUP {
|
80 |
|
|
display "Startup type"
|
81 |
|
|
flavor data
|
82 |
|
|
legal_values {"ROM" "RAM"}
|
83 |
|
|
default_value {"ROM"}
|
84 |
|
|
no_define
|
85 |
|
|
define -file system.h CYG_HAL_STARTUP
|
86 |
|
|
description "
|
87 |
|
|
When targetting the AKI3068NET board it is possible to
|
88 |
|
|
build the system for either RAM bootstrap or ROM bootstrap.
|
89 |
|
|
RAM bootstrap generally requires that the board
|
90 |
|
|
is equipped with ROMs containing a suitable ROM monitor or
|
91 |
|
|
equivalent software that allows GDB to download the eCos
|
92 |
|
|
application and extend Memory on to the board.
|
93 |
|
|
The ROM bootstrap typically
|
94 |
|
|
requires that the eCos application be blown into EPROMs or
|
95 |
|
|
equivalent technology."
|
96 |
|
|
}
|
97 |
|
|
|
98 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
|
99 |
|
|
display "Number of communication channels on the board"
|
100 |
|
|
flavor data
|
101 |
|
|
calculated 1
|
102 |
|
|
}
|
103 |
|
|
|
104 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
|
105 |
|
|
display "Debug serial port"
|
106 |
|
|
flavor data
|
107 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
108 |
|
|
default_value 0
|
109 |
|
|
description "
|
110 |
|
|
The AKI3068NET board has only one serial port. This option
|
111 |
|
|
chooses which port will be used to connect to a host
|
112 |
|
|
running GDB."
|
113 |
|
|
}
|
114 |
|
|
|
115 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
|
116 |
|
|
display "Diagnostic serial port"
|
117 |
|
|
flavor data
|
118 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
119 |
|
|
default_value 0
|
120 |
|
|
description "
|
121 |
|
|
The CQ/7708 board has only one serial port. This option
|
122 |
|
|
chooses which port will be used for diagnostic output."
|
123 |
|
|
}
|
124 |
|
|
|
125 |
|
|
# Real-time clock/counter specifics
|
126 |
|
|
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
|
127 |
|
|
display "Real-time clock constants."
|
128 |
|
|
flavor none
|
129 |
|
|
|
130 |
|
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
|
131 |
|
|
display "Real-time clock numerator"
|
132 |
|
|
flavor data
|
133 |
|
|
calculated 1000000000
|
134 |
|
|
}
|
135 |
|
|
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
|
136 |
|
|
display "Real-time clock denominator"
|
137 |
|
|
flavor data
|
138 |
|
|
calculated 100
|
139 |
|
|
}
|
140 |
|
|
cdl_option CYGNUM_HAL_H8300_RTC_PRESCALE {
|
141 |
|
|
display "Real-time clock base prescale"
|
142 |
|
|
flavor data
|
143 |
|
|
calculated 8192
|
144 |
|
|
}
|
145 |
|
|
# Isn't a nice way to handle freq requirement!
|
146 |
|
|
cdl_option CYGNUM_HAL_RTC_PERIOD {
|
147 |
|
|
display "Real-time clock period"
|
148 |
|
|
flavor data
|
149 |
|
|
calculated 10
|
150 |
|
|
}
|
151 |
|
|
}
|
152 |
|
|
|
153 |
|
|
cdl_option CYGHWR_HAL_H8300_CPG_INPUT {
|
154 |
|
|
display "OSC/Clock Freqency"
|
155 |
|
|
flavor data
|
156 |
|
|
default_value 20000000
|
157 |
|
|
}
|
158 |
|
|
|
159 |
|
|
cdl_option CYGHWR_HAL_AKI3068NET_EXTRAM {
|
160 |
|
|
display "Extend DRAM Using"
|
161 |
|
|
flavor bool
|
162 |
|
|
default_value 1
|
163 |
|
|
}
|
164 |
|
|
|
165 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
166 |
|
|
display "Global build options"
|
167 |
|
|
flavor none
|
168 |
|
|
parent CYGPKG_NONE
|
169 |
|
|
description "
|
170 |
|
|
Global build options including control over
|
171 |
|
|
compiler flags, linker flags and choice of toolchain."
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
175 |
|
|
display "Global command prefix"
|
176 |
|
|
flavor data
|
177 |
|
|
no_define
|
178 |
|
|
default_value { "h8300-elf" }
|
179 |
|
|
description "
|
180 |
|
|
This option specifies the command prefix used when
|
181 |
|
|
invoking the build tools."
|
182 |
|
|
}
|
183 |
|
|
|
184 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
185 |
|
|
display "Global compiler flags"
|
186 |
|
|
flavor data
|
187 |
|
|
no_define
|
188 |
|
|
default_value { "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -mh -mint32 -fsigned-char -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
|
189 |
|
|
description "
|
190 |
|
|
This option controls the global compiler flags which
|
191 |
|
|
are used to compile all packages by
|
192 |
|
|
default. Individual packages may define
|
193 |
|
|
options which override these global flags."
|
194 |
|
|
}
|
195 |
|
|
|
196 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
197 |
|
|
display "Global linker flags"
|
198 |
|
|
flavor data
|
199 |
|
|
no_define
|
200 |
|
|
default_value { "-g -nostdlib -Wl,--gc-sections -Wl,-static -mh" }
|
201 |
|
|
description "
|
202 |
|
|
This option controls the global linker flags. Individual
|
203 |
|
|
packages may define options which override these global flags."
|
204 |
|
|
}
|
205 |
|
|
}
|
206 |
|
|
|
207 |
|
|
cdl_component CYGHWR_MEMORY_LAYOUT {
|
208 |
|
|
display "Memory layout"
|
209 |
|
|
flavor data
|
210 |
|
|
no_define
|
211 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "h8300_h8300h_aki3068net_ram" : \
|
212 |
|
|
"h8300_h8300h_aki3068net_rom" }
|
213 |
|
|
|
214 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
|
215 |
|
|
display "Memory layout linker script fragment"
|
216 |
|
|
flavor data
|
217 |
|
|
no_define
|
218 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
|
219 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
|
220 |
|
|
"" }
|
221 |
|
|
}
|
222 |
|
|
|
223 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_H {
|
224 |
|
|
display "Memory layout header file"
|
225 |
|
|
flavor data
|
226 |
|
|
no_define
|
227 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_H
|
228 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
|
229 |
|
|
"" }
|
230 |
|
|
}
|
231 |
|
|
}
|
232 |
|
|
cdl_option CYGSEM_HAL_ROM_MONITOR {
|
233 |
|
|
display "Behave as a ROM monitor"
|
234 |
|
|
flavor bool
|
235 |
|
|
default_value 0
|
236 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
237 |
|
|
requires { CYG_HAL_STARTUP == "ROM" }
|
238 |
|
|
description "
|
239 |
|
|
Enable this option if this program is to be used as a ROM monitor,
|
240 |
|
|
i.e. applications will be loaded into RAM on the board, and this
|
241 |
|
|
ROM monitor may process exceptions or interrupts generated from the
|
242 |
|
|
application. This enables features such as utilizing a separate
|
243 |
|
|
interrupt stack when exceptions are generated."
|
244 |
|
|
}
|
245 |
|
|
}
|