OpenCores
URL https://opencores.org/ocsvn/sockit_owm/sockit_owm/trunk

Subversion Repositories sockit_owm

[/] [sockit_owm/] [trunk/] [sockit_owm_sw.tcl] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 iztok
###############################################################################
2
#                                                                             #
3
#  Minimalistic 1-wire (onewire) master with Avalon MM bus interface          #
4
#                                                                             #
5
#  Copyright (C) 2010  Iztok Jeras                                            #
6
#                                                                             #
7
###############################################################################
8
#                                                                             #
9
#  This script is free software: you can redistribute it and/or modify        #
10
#  it under the terms of the GNU Lesser General Public License                #
11
#  as published by the Free Software Foundation, either                       #
12
#  version 3 of the License, or (at your option) any later version.           #
13
#                                                                             #
14
#  This RTL is distributed in the hope that it will be useful,                #
15
#  but WITHOUT ANY WARRANTY; without even the implied warranty of             #
16
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              #
17
#  GNU General Public License for more details.                               #
18
#                                                                             #
19
#  You should have received a copy of the GNU General Public License          #
20
#  along with this program.  If not, see <http:#www.gnu.org/licenses/>.       #
21
#                                                                             #
22
###############################################################################
23 2 iztok
 
24
# Create a new driver
25
create_driver sockit_owm_driver
26
 
27
# Association with hardware
28
set_sw_property hw_class_name sockit_owm
29
 
30
# Driver version
31 3 iztok
set_sw_property version 1.3
32 2 iztok
 
33 3 iztok
# This driver is compatible with version 1.3 and above
34
set_sw_property min_compatible_hw_version 1.3
35 2 iztok
 
36 3 iztok
# Interrupt properties
37 2 iztok
set_sw_property isr_preemption_supported true
38
set_sw_property supported_interrupt_apis "legacy_interrupt_api enhanced_interrupt_api"
39
 
40
# Initialize the driver in alt_sys_init()
41
set_sw_property auto_initialize true
42
 
43
# Location in generated BSP that above sources will be copied into
44
set_sw_property bsp_subdirectory drivers
45
 
46 3 iztok
# C source files
47
add_sw_property       c_source HAL/src/sockit_owm.c
48
add_sw_property       c_source HAL/src/ownet.c
49
add_sw_property       c_source HAL/src/owtran.c
50
add_sw_property       c_source HAL/src/owlnk.c
51
add_sw_property       c_source HAL/src/owses.c
52 2 iztok
 
53
# Include files
54 3 iztok
add_sw_property include_source inc/sockit_owm_regs.h
55
add_sw_property include_source HAL/inc/sockit_owm.h
56 2 iztok
add_sw_property include_source HAL/inc/ownet.h
57
 
58
# Common files
59 3 iztok
add_sw_property       c_source HAL/src/owerr.c
60
add_sw_property       c_source HAL/src/crcutil.c
61 2 iztok
add_sw_property include_source HAL/inc/findtype.h
62
add_sw_property       c_source HAL/src/findtype.c
63
 
64 3 iztok
# device files (thermometer)
65
add_sw_property include_source HAL/inc/temp10.h
66
add_sw_property       c_source HAL/src/temp10.c
67
add_sw_property include_source HAL/inc/temp28.h
68
add_sw_property       c_source HAL/src/temp28.c
69
add_sw_property include_source HAL/inc/temp42.h
70
add_sw_property       c_source HAL/src/temp42.c
71
 
72 2 iztok
# This driver supports HAL & UCOSII BSP (OS) types
73
add_sw_property supported_bsp_type HAL
74
add_sw_property supported_bsp_type UCOSII
75
 
76
# Driver configuration options
77 5 iztok
add_sw_setting boolean_define_only public_mk_define polling_driver_enable  SOCKIT_OWM_POLLING    true "Small-footprint (polled mode) driver"
78
add_sw_setting boolean_define_only public_mk_define hardware_delay_enable  SOCKIT_OWM_HW_DLY     true "Mili second delay implemented in hardware"
79
add_sw_setting boolean_define_only public_mk_define error_detection_enable SOCKIT_OWM_ERR_ENABLE true "Implement error detection support"
80
add_sw_setting boolean_define_only public_mk_define error_detection_small  SOCKIT_OWM_ERR_SMALL  true "Reduced memory consumption for error detection"
81 2 iztok
 
82
# Enable application layer code
83
#add_sw_setting boolean_define_only public_mk_define enable_A SOCKIT_OWM_A false "Enable driver A"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.