1 |
147 |
lanttu |
#
|
2 |
|
|
# hibi_pe_dma_driver.tcl
|
3 |
|
|
#
|
4 |
|
|
|
5 |
|
|
# Create a new driver
|
6 |
|
|
create_driver hibi_pe_dma_driver
|
7 |
|
|
|
8 |
|
|
# Associate it with some hardware known as "hibi_pe_dma"
|
9 |
|
|
set_sw_property hw_class_name hibi_pe_dma
|
10 |
|
|
|
11 |
|
|
# The version of this driver
|
12 |
|
|
set_sw_property version 11.0
|
13 |
|
|
|
14 |
|
|
# This driver may be incompatible with versions of hardware less
|
15 |
|
|
# than specified below.
|
16 |
|
|
set_sw_property min_compatible_hw_version 1.0
|
17 |
|
|
|
18 |
|
|
# Initialize the driver in alt_sys_init()
|
19 |
|
|
set_sw_property auto_initialize true
|
20 |
|
|
|
21 |
|
|
# Location in generated BSP that above sources will be copied into
|
22 |
|
|
set_sw_property bsp_subdirectory drivers
|
23 |
|
|
|
24 |
|
|
# Interrupt properties: This driver supports enhanced interrupt API
|
25 |
|
|
#set_sw_property isr_preemption_supported true
|
26 |
|
|
set_sw_property supported_interrupt_apis "enhanced_interrupt_api"
|
27 |
|
|
|
28 |
|
|
#,
|
29 |
|
|
# Source file listings...
|
30 |
|
|
#
|
31 |
|
|
|
32 |
|
|
# C/C++ source files
|
33 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_read.c
|
34 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_write.c
|
35 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_open.c
|
36 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_close.c
|
37 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_lseek.c
|
38 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_ioctl.c
|
39 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_init.c
|
40 |
|
|
add_sw_property c_source HAL/src/hibi_pe_dma_cbuffer.c
|
41 |
|
|
|
42 |
|
|
# Include files
|
43 |
|
|
add_sw_property include_source HAL/inc/hibi_pe_dma.h
|
44 |
|
|
add_sw_property include_source HAL/inc/hibi_pe_dma_defines.h
|
45 |
|
|
add_sw_property include_source HAL/inc/hibi_pe_dma_cbuffer.h
|
46 |
|
|
add_sw_property include_source HAL/inc/hibi_endpoints.h
|
47 |
|
|
add_sw_property include_source inc/hibi_pe_dma_regs.h
|
48 |
|
|
|
49 |
|
|
# This driver supports UCOSII BSP (OS) types
|
50 |
|
|
# add_sw_property supported_bsp_type HAL
|
51 |
|
|
add_sw_property supported_bsp_type UCOSII
|
52 |
|
|
|
53 |
|
|
# Add the following settings
|
54 |
|
|
add_sw_setting boolean_define_only public_mk_define enable_debug_prints HIBI_PE_DMA_DRIVER_TEST false "Enable Debug Prints in HIBI PE DMA Driver"
|
55 |
|
|
add_sw_setting decimal_number system_h_define number_of_channels HIBI_PE_DMA_CHANNELS 8 "Number of HIBI PE DMA Channels"
|
56 |
|
|
add_sw_setting decimal_number system_h_define channel_buffer_size HIBI_PE_DMA_BUFFER_SIZE 100 "HIBI PE DMA Channel RX/TX Buffer Size (bytes)"
|
57 |
|
|
add_sw_setting unquoted_string system_h_define hibi_shared_memory_name HIBI_PE_DMA_SHARED_MEMORY_NAME HIBI_PE_DMA_SHARED_MEMORY "HIBI PE DMA Shared Memory Name"
|
58 |
|
|
|
59 |
|
|
# End of file
|