ossc/ip/i2c_opencores/i2c_opencores_sw.tcl

57 lines
1.8 KiB
Tcl

#
# opencores_i2c_sw.tcl
#
# Create a new driver
create_driver i2c_opencores_driver
# Associate it with some hardware known as "opencores_i2c"
set_sw_property hw_class_name i2c_opencores
# The version of this driver
set_sw_property version 11.0
# 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.1
# 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
# Interrupt properties:
# This peripheral has an IRQ output but the driver doesn't currently
# have any interrupt service routine. To ensure that the BSP tools
# do not otherwise limit the BSP functionality for users of the
# Nios II enhanced interrupt port, these settings advertise
# compliance with both legacy and enhanced interrupt APIs, and to state
# that any driver ISR supports preemption. If an interrupt handler
# is added to this driver, these must be re-examined for validity.
set_sw_property isr_preemption_supported true
set_sw_property supported_interrupt_apis "legacy_interrupt_api enhanced_interrupt_api"
#
# Source file listings...
#
# C/C++ source files
add_sw_property c_source HAL/src/i2c_opencores.c
# Include files
add_sw_property include_source HAL/inc/i2c_opencores.h
add_sw_property include_source inc/i2c_opencores_regs.h
# This driver supports HAL & UCOSII BSP (OS) types
add_sw_property supported_bsp_type HAL
add_sw_property supported_bsp_type UCOSII
# End of file