1 |
2 |
iztok |
#
|
2 |
|
|
# sockit_owm_sw.tcl
|
3 |
|
|
#
|
4 |
|
|
|
5 |
|
|
# Create a new driver
|
6 |
|
|
create_driver sockit_owm_driver
|
7 |
|
|
|
8 |
|
|
# Association with hardware
|
9 |
|
|
set_sw_property hw_class_name sockit_owm
|
10 |
|
|
|
11 |
|
|
# Driver version
|
12 |
|
|
set_sw_property version 1.1
|
13 |
|
|
|
14 |
|
|
# This driver is proclaimed to be compatible with sockit_owm hardware
|
15 |
|
|
# as old as version "1.0". If the hardware component version number is not
|
16 |
|
|
# equal or greater than the min_compatable_hw_version number, the driver
|
17 |
|
|
# source files will not be copied over to the BSP drivers subdirectory
|
18 |
|
|
set_sw_property min_compatible_hw_version 1.1
|
19 |
|
|
|
20 |
|
|
# Interrupt properties: This driver supports both legacy and enhanced
|
21 |
|
|
# interrupt APIs, as well as ISR preemption.
|
22 |
|
|
set_sw_property isr_preemption_supported true
|
23 |
|
|
set_sw_property supported_interrupt_apis "legacy_interrupt_api enhanced_interrupt_api"
|
24 |
|
|
|
25 |
|
|
# Initialize the driver in alt_sys_init()
|
26 |
|
|
set_sw_property auto_initialize true
|
27 |
|
|
|
28 |
|
|
# Location in generated BSP that above sources will be copied into
|
29 |
|
|
set_sw_property bsp_subdirectory drivers
|
30 |
|
|
|
31 |
|
|
#
|
32 |
|
|
# Source file listings...
|
33 |
|
|
#
|
34 |
|
|
|
35 |
|
|
# C/C++ source files
|
36 |
|
|
add_sw_property c_source HAL/src/ownet.c
|
37 |
|
|
add_sw_property c_source HAL/src/owtran.c
|
38 |
|
|
add_sw_property c_source HAL/src/owlnk.c
|
39 |
|
|
add_sw_property c_source HAL/src/owses.c
|
40 |
|
|
add_sw_property c_source HAL/src/owerr.c
|
41 |
|
|
add_sw_property c_source HAL/src/crcutil.c
|
42 |
|
|
add_sw_property c_source HAL/src/sockit_owm.c
|
43 |
|
|
|
44 |
|
|
# Include files
|
45 |
|
|
add_sw_property include_source HAL/inc/ownet.h
|
46 |
|
|
add_sw_property include_source HAL/inc/sockit_owm.h
|
47 |
|
|
add_sw_property include_source inc/sockit_owm_regs.h
|
48 |
|
|
|
49 |
|
|
# Common files
|
50 |
|
|
add_sw_property include_source HAL/inc/findtype.h
|
51 |
|
|
add_sw_property c_source HAL/src/findtype.c
|
52 |
|
|
|
53 |
|
|
# This driver supports HAL & UCOSII BSP (OS) types
|
54 |
|
|
add_sw_property supported_bsp_type HAL
|
55 |
|
|
add_sw_property supported_bsp_type UCOSII
|
56 |
|
|
|
57 |
|
|
# Driver configuration options
|
58 |
|
|
add_sw_setting boolean_define_only public_mk_define enable_polling_driver SOCKIT_OWM_POLLING false "Small-footprint (polled mode) driver"
|
59 |
|
|
add_sw_setting boolean_define_only public_mk_define enable_hardware_delay SOCKIT_OWM_HW_DLY false "Mili second delay implemented in hardware"
|
60 |
|
|
|
61 |
|
|
# Enable application layer code
|
62 |
|
|
#add_sw_setting boolean_define_only public_mk_define enable_A SOCKIT_OWM_A false "Enable driver A"
|
63 |
|
|
|
64 |
|
|
# End of file
|