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

📄 eth_ocm_sw.tcl

📁 sopc builder 中网络的eth_ocm核
💻 TCL
字号:
#
# eth_ocm_sw.tcl
#

# Create a new driver
create_driver eth_ocm_driver

# Associate it with some hardware known as "eth_ocm"
set_sw_property hw_class_name eth_ocm 

# The version of this driver is "7.2"
set_sw_property version 7.2

# This driver may be incompatible with versions of hardware less
# than specified below. Updates to hardware and device drivers
# rendering the driver incompatible with older versions of
# hardware are noted with this property assignment.
#
# Multiple-Version compatibility was introduced in version 7.1;
# prior versions are therefore excluded.
set_sw_property min_compatible_hw_version 7.2

# Initialize the driver in alt_sys_init()
set_sw_property auto_initialize true

# Location in generated BSP that above sources will be copied into
set_sw_property bsp_subdirectory drivers

#
# Source file listings...
#

# C/C++ source files
add_sw_property c_source HAL/src/ins_eth_ocm.c
add_sw_property c_source HAL/src/eth_ocm_phy.c

# Include files
add_sw_property include_source HAL/inc/eth_ocm.h
add_sw_property include_source HAL/inc/ins_eth_ocm.h
add_sw_property include_source HAL/inc/eth_ocm_phy.h
add_sw_property include_source HAL/inc/eth_ocm_desc.h
add_sw_property include_source inc/eth_ocm_regs.h

# This driver supports HAL & UCOSII BSP (OS) types
add_sw_property supported_bsp_type HAL
add_sw_property supported_bsp_type UCOSII

# Add the following per_driver configuration option to the BSP:
#  o Type of setting (boolean_define_only translates to "either
#    emit a #define if true, or don't if false"). Useful for
#    source code with "#ifdef" style build-options.
#  o Generated file to write to (public_mk_define -> public.mk)
#  o Name of setting for use with bsp command line settings tools
#    (enable_small_driver). This name will be combined with the
#    driver class to form a settings hierarchy to assure unique
#    settings names
#  o '#define' in driver code (and therefore string in generated
#     makefile): "ALTERA_TRIPLE_SPEED_MAC", which means: "emit
#     CPPFLAGS += ALTERA_TRIPLE_SPEED_MAC in generated makefile
#  o Default value (if the user doesn't specify at BSP creation): true
#    (which means: 'emit above CPPFLAGS string in generated makefile)
#  o Description text
add_sw_setting boolean_define_only public_mk_define enable_uncached_packets ALTERA_TRIPLE_SPEED_MAC true "Enable uncached packet allocation for InterNiche Stack"


# End of file

⌨️ 快捷键说明

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