⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hal_h8s_h8s2357_mcu2357.cdl

📁 ecos移植到R8H系列的源码。源码包来自http://www.cetoni.de/develop/develop_ecosh8s_en.html
💻 CDL
📖 第 1 页 / 共 2 页
字号:
# ====================================================================
#
#      hal_h8s_h8s2357_mcu2357.cdl
#
#      Cetoni MCU2357 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):      Uwe Kindler
# Original data:  Uwe Kindler
# Contributors:
# Date:           2003-02-24
#
#####DESCRIPTIONEND####
#
# ====================================================================

cdl_package CYGPKG_HAL_H8S_H8S2357_MCU2357 {
    display       "Cetoni MCU2357 platform"
    parent        CYGPKG_HAL_H8S
    requires      CYGPKG_HAL_H8S_H8S2357  
    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_h8s2357_mcu2357.h
    include_dir   cyg/hal
    description   "
           The Cetoni MCU2357 HAL package provides the support needed to run
           eCos on a Cetoni microcontroller unit for H8S/2357" 

    compile       plf_misc.c plf_diag.c delay_us.S

    define_proc {
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_h8s_h8s2357.h>"
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_h8s_h8s2357_mcu2357.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 0xffdc00"
        puts $::cdl_header "#define CYGHWR_HAL_VECTOR_TABLE 0xffde00"
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"H8S/2357F-ZTAT\""
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Cetoni MCU2357\""
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
    }

    cdl_component CYG_HAL_STARTUP {
        display       "Startup type"
        flavor        data
        calculated    {"ROM"}
	    no_define
	    define       -file system.h CYG_HAL_STARTUP
        description   "
           When targetting the Cetoni MCU2357 board, it is possible to build the system 
           only for ROM bootstrap because it does not have enough RAM form RAM or
           RAMROM bootstrap. The ROM bootstrap requires that the eCos 
           application be blown into H8S/2357 FLASH."
           
        cdl_component CYGHWR_MEMORY_LAYOUT {
            display "Memory layout"
            flavor data
            no_define                                               
            calculated { (CYG_HAL_STARTUP == "RAM")    ? "h8s_h8s2357_mcu2357_ram"    : \
                         (CYG_HAL_STARTUP == "ROMRAM") ? "h8s_h8s2357_mcu2357_romram" : \                         (CYG_HAL_STARTUP == "ROM")    ? "h8s_h8s2357_mcu2357_rom"    : \
                                                         "h8s_h8s2357_mcu2357_ramapp" } 
            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_h8s2357_mcu2357_ram.ldi>"    : \                             (CYG_HAL_STARTUP == "ROMRAM") ? "<pkgconf/mlt_h8s_h8s2357_mcu2357_romram.ldi>" : \                             (CYG_HAL_STARTUP == "ROM")    ? "<pkgconf/mlt_h8s_h8s2357_mcu2357_rom.ldi>"    : \
                                                             "<pkgconf/mlt_h8s_h8s2357_mcu2357_ramapp.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_h8s2357_mcu2357_ram.h>"    : \                             (CYG_HAL_STARTUP == "ROMRAM") ? "<pkgconf/mlt_h8s_h8s2357_mcu2357_romram.h>" : \                             (CYG_HAL_STARTUP == "ROM")    ? "<pkgconf/mlt_h8s_h8s2357_mcu2357_rom.h>"    : \
                                                             "<pkgconf/mlt_h8s_h8s2357_mcu2357_ramapp.h>" }
            }
        }
    }
    
 
    cdl_component CYGPKG_HAL_H8S_H8S2357_MCU2357_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   3
            description  " 
               The H8S/2357 has three independent serial communication channels 
               (SCI0, SCI1 and SCI2). The Cetoni MCU2357 board supports all
               three channels."
        }

        cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
            display          "Debug serial channel"
            flavor           data
            default_value    0
            legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
            description      "
                This option chooses which channel will be used to connect to a host
                running GDB. On the Cetoni MCU2357 board all three channels of 
                H8S/2357 are connected to an RS-232 interface and can be used for 
                debugging"  
        }
        
        cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
            display       "Debug serial channel baud rate"
            flavor        data
            legal_values  9600 14400 19200 38400 57600 115200
            default_value 57600
            description   "
                This option selects the baud rate used for the GDB debug channel. 
                The debug channel is used for debug connections to GDB.
                Note: this should match the value chosen for the diagnostic port if 
                the debug and diagnostic channel are the same."    
        }
      
        cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
            display          "Diagnostic channel"
            flavor data
            default_value    1
            legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
            description      "
                This option chooses which channel will be used for diagnostic output.
	            On the Cetoni MCU2357 board only all H8S/2357 serial channels are 
	            connected to an  RS-232 interface and can be used for diagnostic 
	            output."
        } 
     
        cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
            display       "Diagnostic serial channel baud rate"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -