📄 hal_h8s_h8s2638_edk2638ex.cdl
字号:
# ====================================================================
#
# hal_h8s_h8s2674_edk2638ex.cdl
#
# EDK2638 HAL package configuration data
#
# ====================================================================
#####ECOSGPLCOPYRIGHTBEGIN####
## -------------------------------------------
## This file is part of eCos, the Embedded Configurable Operating System.
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
##
## eCos is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free
## Software Foundation; either version 2 or (at your option) any later version.
##
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
## for more details.
##
## You should have received a copy of the GNU General Public License along
## with eCos; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
##
## As a special exception, if other files instantiate templates or use macros
## or inline functions from this file, or you compile this file and link it
## with other works to produce a work based on this file, this file does not
## by itself cause the resulting work to be covered by the GNU General Public
## License. However the source code for this file must still be made available
## in accordance with section (3) of the GNU General Public License.
##
## This exception does not invalidate any other reasons why a work based on
## this file might be covered by the GNU General Public License.
##
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
## at http://sources.redhat.com/ecos/ecos-license/
## -------------------------------------------
#####ECOSGPLCOPYRIGHTEND####
# ====================================================================
######DESCRIPTIONBEGIN####
#
# Author(s): yoshinori sato
# Original data: yoshinori sato, Uwe Kindler
# Contributors:
# Date: 2003-02-24
#
#####DESCRIPTIONEND####
#
# ====================================================================
cdl_package CYGPKG_HAL_H8S_H8S2638_EDK2638EX {
display "EDK2638EX platform"
parent CYGPKG_HAL_H8S
requires CYGPKG_HAL_H8S_H8S2638
implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
implements CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
implements CYGINT_HAL_DEBUG_GDB_STUBS
implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
implements CYGINT_HAL_H8S_USE_COMMON_SCI_CODE
implements CYGINT_HAL_H8S_USE_COMMON_DIAG_CODE
implements CYGINT_HAL_H8S_USE_COMMON_GDB_STUB
define_header hal_h8s_h8s2638_edk2638ex.h
include_dir cyg/hal
description "
The EDK2638EX HAL package provides the support needed to run
eCos on a extended Renesas Evaluation Design Kit for H8S/2638."
compile plf_misc.c plf_diag.c delay_us.S
define_proc {
puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_h8s_h8s2638.h>"
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_h8s_h8s2638_edk2638ex.h>"
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_IO_H <cyg/hal/plf_io.h>"
puts $::cdl_header "#define CYG_HAL_H8S"
puts $::cdl_header "#define CYGHWR_HAL_VSR_TABLE 0xFFEAC0"
puts $::cdl_header "#define CYGHWR_HAL_VECTOR_TABLE 0xFFECC0"
puts $::cdl_header "#define HAL_PLATFORM_CPU \"H8S/2638\""
puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Renesas EDK2638EX\""
puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"extended by Cetoni\""
}
cdl_component CYG_HAL_STARTUP {
display "Startup type"
flavor data
legal_values {"ROM" "RAM" "ROMRAM"}
default_value {CYGPKG_REDBOOT ? "ROM" : "RAM"}
no_define
define -file system.h CYG_HAL_STARTUP
description "
When targetting the EDK2638EX board, it is possible to build the system
for RAM, ROM or ROMRAM bootstrap. RAM bootstrap generally requires that
the boards main FLASH contains a suitable ROM monitor software
(preferably RedBoot) that allows GDB to download the eCos application into
RAM. The ROM and ROMRAM bootstrap typically requires that the eCos
application be blown into the board's main FLASH. ROMRAM startup requires
extra RAM memory because the complete image will be copied from ROM into
RAM before startup."
cdl_component CYGHWR_MEMORY_LAYOUT {
display "Memory layout"
flavor data
no_define
calculated { (CYG_HAL_STARTUP == "RAM") ? "h8s_h8s2638_edk2638ex_ram" : \
(CYG_HAL_STARTUP == "ROMRAM") ? "h8s_h8s2638_edk2638ex_romram" : \ "h8s_h8s2638_edk2638ex_rom" }
description "
This is the memory layout used for building. It is selected according to
the startup (RAM, ROM, ROMRAM) settings."
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
display "Memory layout linker script fragment"
flavor data
no_define
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
calculated { (CYG_HAL_STARTUP == "RAM") ? "<pkgconf/mlt_h8s_h8s2638_edk2638ex_ram.ldi>" : \ (CYG_HAL_STARTUP == "ROMRAM") ? "<pkgconf/mlt_h8s_h8s2638_edk2638ex_romram.ldi>" : \ "<pkgconf/mlt_h8s_h8s2638_edk2638ex_rom.ldi>" }
}
cdl_option CYGHWR_MEMORY_LAYOUT_H {
display "Memory layout header file"
flavor data
no_define
define -file system.h CYGHWR_MEMORY_LAYOUT_H
calculated { (CYG_HAL_STARTUP == "RAM") ? "<pkgconf/mlt_h8s_h8s2638_edk2638ex_ram.h>" : \ (CYG_HAL_STARTUP == "ROMRAM") ? "<pkgconf/mlt_h8s_h8s2638_edk2638ex_romram.h>" : \ "<pkgconf/mlt_h8s_h8s2638_edk2638ex_rom.h>" }
}
}
}
cdl_option CYGSEM_WORK_WITH_CETONI_BOOTLOADER {
implements CYGINT_HAL_H8S_HWVECT_USE_SHADOW_VECT
display "Work with Cetoni bootloader"
flavor bool
default_value { 1 }
requires { CYG_HAL_STARTUP == "ROM" || \
CYG_HAL_STARTUP == "ROMRAM"}
description "
The Cetoni bootloader is a very small ROM monitor that resides
in on-chip flash of H8S2638. This bootloader is only for loading
programms into flash an does not provide any services that can be
used by an eCos application. Because of this bootloader the eCos
application cannot use the hardware vectors at adress 0x000000. But
the bootloader provides a shadow vector table at address 0x004000.
If this option is enabled, then the eCos application use this
shadow vector table as hardware vector table."
}
cdl_component CYGPKG_HAL_H8S_H8S2638_EDK2638EX_IO_OPTIONS {
display "I/O related options"
flavor none
description "
I/O related options including control over
communications channels, debug and console channel."
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
display "Number of communication channels on the board"
flavor data
calculated 1
description "
The H8S/2638 has three independent serial communication channels
(SCI0, SCI1 and SCI2). On the EDK2638EX board only one channel, SCI1,
is connected to an RS-232 interface"
}
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
display "Debug serial channel"
flavor data
calculated 0
description "
This option chooses which channel will be used to connect to a host
running GDB. On the EDOSK board only one channel is connected to an
RS-232 interface and can be used for debugging (SCI1)"
}
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
display "Console channel"
flavor data
calculated 0
description "
This option chooses which channel will be used for diagnostic output.
On the EDOSK board only one channel is connected to an RS-232 interface and
can be used for diagnostic output (SCI1)."
}
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
display "GDB/Diagnostic serial port baud rate"
flavor data
legal_values 9600 14400 19200 38400 57600
default_value 57600
description "
This option selects the baud rate for the diagnostic/debug serial
channel SCI2"
}
}
# Real-time clock/counter specifics
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
display "Real-time clock constants."
flavor none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -