📄 hal_h8s_h8s2357_mcu2357.cdl
字号:
flavor data
legal_values 9600 14400 19200 38400 57600 115200
default_value 57600
description "
This option selects the baud rate used for the diagnostic port.
Note: this should match the value chosen for the GDB port if
the diagnostic and GDB port are the same."
}
}
# Real-time clock/counter specifics
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
display "Real-time clock constants."
flavor none
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
display "Real-time clock numerator"
flavor data
calculated 1000000000
description "
The NUMERATOR divided by the DENOMINATOR gives the number of
nanoseconds per tick."
}
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
display "Real-time clock denominator"
flavor data
calculated 100
description "
The NUMERATOR divided by the DENOMINATOR gives the number of
nanoseconds per tick."
}
cdl_option CYGNUM_HAL_RTC_PERIOD {
display "Real-time clock period"
flavor data
calculated { 18432 }
description "
The PERIOD is the divider to be programmed into a hardware timer that is driven
from an appropriate hardware clock, such that the timer overflows once per tick.
The MCU2357 board uses the TPU channel 5 as hardware timer."
}
}
cdl_option CYGHWR_HAL_H8S_CPG_INPUT {
display "OSC/Clock Frequency"
flavor data
calculated 7372800
description "
The value of the crystal is 7.3728 MHz."
}
cdl_component CYGBLD_GLOBAL_OPTIONS {
display "Global build options"
flavor none
parent CYGPKG_NONE
description "
Global build options including control over
compiler flags, linker flags and choice of toolchain."
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
display "Global command prefix"
flavor data
no_define
default_value { "h8300-elf" }
description "
This option specifies the command prefix used when
invoking the build tools."
}
cdl_option CYGBLD_GLOBAL_CFLAGS {
display "Global compiler flags"
flavor data
no_define
default_value { CYGBLD_BUILD_FOR_DEBUG == 0 ? "-ms -mint32 -mecos -g -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -fsigned-char -fdata-sections -fno-rtti -fno-exceptions -finit-priority -finline-limit=100000" : \
"-ms -mint32 -mecos -g -g2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -fsigned-char -fdata-sections -fno-rtti -fno-exceptions -finit-priority -finline-limit=100000" }
description "
This option controls the global compiler flags which
are used to compile all packages by
default. Individual packages may define
options which override these global flags."
}
cdl_option CYGBLD_GLOBAL_LDFLAGS {
display "Global linker flags"
flavor data
no_define
default_value { CYGBLD_BUILD_FOR_DEBUG == 0 ? "-ms -mint32 -mecos -g -nostdlib -Wl,--gc-sections -Wl,-static" : \
"-ms -mint32 -mecos -g -g2 -nostdlib -Wl,--gc-sections -Wl,-static" }
description "
This option controls the global linker flags. Individual
packages may define options which override these global flags."
}
cdl_option CYGBLD_BUILD_FOR_DEBUG {
display "Build for debugging"
default_value 0
description "
This option controls the global compiler and linker flags. If active the
optimization level is 0 and debug level is 2"
}
cdl_option CYGBLD_BUILD_GDB_STUBS {
display "Build GDB stub ROM image"
default_value 0
requires CYGSEM_HAL_ROM_MONITOR
requires CYGBLD_BUILD_COMMON_GDB_STUBS
requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
no_define
description "
This option enables the building of the GDB stubs for the
board. The common HAL controls takes care of most of the
build process, but the final conversion from ELF image to
binary data is handled by the platform CDL, allowing
relocation of the data if necessary."
make -priority 320 {
<PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.elf
$(OBJCOPY) --strip-debug $< $(@:.bin=.img)
$(OBJCOPY) -O srec $< $(@:.bin=.srec)
$(OBJCOPY) -O binary $< $@
}
}
}
cdl_option CYGSEM_HAL_ROM_MONITOR {
display "Behave as a ROM monitor"
flavor bool
default_value { CYGPKG_REDBOOT ? 1 : 0 }
parent CYGPKG_HAL_ROM_MONITOR
requires { CYG_HAL_STARTUP == "ROM" || \
CYG_HAL_STARTUP == "ROMRAM" || \
CYGBLD_BUILD_REDBOOT}
description "
Enable this option if this program is to be used as a ROM monitor,
i.e. applications will be loaded into RAM on the board, and this
ROM monitor may process exceptions or interrupts generated from the
application. This enables features such as utilizing a separate
interrupt stack when exceptions are generated. You should also
enable this option if you build a RedBoot image for RAM startup. This
is possible for H8S architecture because a shadow vector table in RAM
is used for processing interrupts which can be overwritten by a RAM
RedBoot image."
}
cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
display "Work with a ROM monitor"
flavor booldata
legal_values { "Generic" "GDB_stubs" }
default_value { (CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "RAMAPP") ? "GDB_stubs" : "" }
parent CYGPKG_HAL_ROM_MONITOR
requires { CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "RAMAPP" }
description "
Support can be enabled for different varieties of ROM monitor.
This support changes various eCos semantics such as the encoding
of diagnostic output, or the overriding of hardware interrupt
vectors.
Firstly there is \"Generic\" support which prevents the HAL
from overriding the hardware vectors that it does not use, to
instead allow an installed ROM monitor to handle them. This is
the most basic support which is likely to be common to most
implementations of ROM monitor.
\"GDB_stubs\" provides support when GDB stubs are included in
the ROM monitor or boot ROM."
}
cdl_option CYGBLD_BUILD_REDBOOT_BIN {
display "Build Redboot ROM binary image"
parent CYGPKG_REDBOOT_H8S_OPTIONS
active_if CYGBLD_BUILD_REDBOOT
default_value 1
no_define
description "This option enables the conversion of the Redboot ELF
image to a binary image suitable for ROM programming."
make -priority 325 {
<PREFIX>/bin/redboot.bin : <PREFIX>/bin/redboot.elf
$(OBJCOPY) --strip-debug $< $(@:.bin=.img)
$(OBJCOPY) -O srec $< $(@:.bin=.srec)
$(OBJCOPY) -O binary $< $@
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -