GeMRTOS
grtos_sw.tcl
Go to the documentation of this file.
1 #
2 # altera_avalon_jtag_uart_driver.tcl
3 #
4 
5 # See create_os page
6 # https://www.intel.co.jp/content/dam/altera-www/global/ja_JP/pdfs/literature/hb/nios2/n2sw_nii5v2_04.pdf
7 # https://github.com/EngineeringSpirit/FreeLwIP-Nios-II/blob/master/alt-freertos-lwip-do-install.sh
8 
9 
10 # Create a new driver
11 create_driver grtos_driver
12 
13 # Associate it with some hardware known as "altera_avalon_jtag_uart"
14 set_sw_property hw_class_name grtos
15 
16 # Set UI display name
17 set_sw_property display_name "GeMRTOS Controller 0.9"
18 
19 # The version of this driver
20 set_sw_property version 0.9
21 
22 # This driver may be incompatible with versions of hardware less
23 # than specified below. Updates to hardware and device drivers
24 # rendering the driver incompatible with older versions of
25 # hardware are noted with this property assignment.
26 #
27 # Multiple-Version compatibility was introduced in version 0.0;
28 # prior versions are therefore excluded.
29 set_sw_property min_compatible_hw_version 0.0
30 
31 # Initialize the driver in alt_sys_init()
32 set_sw_property auto_initialize true
33 
34 # Initialize the driver in alt_irq_init() if this module
35 # is recognized as containing an interrupt controller.
36 set_sw_property irq_auto_initialize true
37 
38 # Location in generated BSP that above sources will be copied into
39 set_sw_property bsp_subdirectory drivers
40 
41 # set up module instance callbacks
42 set_sw_property callback_source_file callbacks.tcl
43 set_sw_property initialization_callback initialize
44 set_sw_property generation_callback generate
45 set_sw_property validation_callback validate
46 
47 # set up per class callbacks
48 #set_sw_property class_initialization_callback class_initialize
49 #set_sw_property class_validation_callback class_validate
50 
51 # Interrupt properties: This driver supports both legacy and enhanced
52 # interrupt APIs, as well as ISR preemption.
53 set_sw_property isr_preemption_supported true
54 set_sw_property supported_interrupt_apis "legacy_interrupt_api enhanced_interrupt_api"
55 
56 #
57 # Source file listings...
58 #
59 
60 # C source files
61 add_sw_property c_source HAL/src/gemrtos_core.c
62 # add_sw_property c_source HAL/src/grtos_init.c
63 add_sw_property c_source HAL/src/listfunctions.c
64 add_sw_property c_source HAL/src/grtos_kernel.c
65 add_sw_property c_source HAL/src/monitor.c
66 add_sw_property c_source HAL/src/grtosuserfunctions.c
67 # add_sw_property c_source HAL/src/tasks.c
68 # add_sw_property c_source HAL/src/ext_isr.c
69 add_sw_property c_source HAL/src/mq.c
70 add_sw_property c_source HAL/src/sem.c
71 
72 # ASM source files
73 add_sw_property asm_source HAL/src/grtos_switch.S
74 
75 # Include files
76 add_sw_property include_source inc/grtos_regs.h
77 add_sw_property include_source HAL/inc/gemrtos_core.h
78 # add_sw_property include_source HAL/inc/gemrtos_core_api.h
79 add_sw_property include_source HAL/inc/grtos.h
80 add_sw_property include_source HAL/inc/grtosdefinitions.h
81 # add_sw_property include_source HAL/inc/grtosuserapi.h
82 # add_sw_property include_source HAL/inc/ext_isr.h
83 add_sw_property include_source HAL/inc/mq.h
84 add_sw_property include_source HAL/inc/sem.h
85 
86 #Override HAL functions
87 # add_sw_property excluded_hal_source HAL/src/alt_iic.c
88 # add_sw_property excluded_hal_source HAL/src/alt_load.c
89 # add_sw_property excluded_hal_source HAL/src/alt_main.c
90 #
91 #
92 # add_sw_property c_source HAL/src/alt_iic.c
93 # add_sw_property c_source HAL/src/alt_load.c
94 # add_sw_property c_source HAL/src/alt_main.c
95 
96 
97 
98 #add_sw_property systemh_generation_script copyfiles.tcl
99 
100 
101 #
102 # System settings
103 #
104 
105 # set region_info [get_memory_region onchip_memory2_0]
106 
107 # add_sw_setting unquoted_string system_h_define system.memory_region MEMORY_REGION $region_info "Sets the priority of the software timer service/daemon task. See the FreeRTOS software timers page for a full description."
108 
109 add_sw_setting decimal_number system_h_define system.timer_task_priority OS_TIMER_TASK_PRIORITY 5 "Sets the priority of the software timer service/daemon task. See the FreeRTOS software timers page for a full description."
110 
111 
112 #
113 # GRTOS settings
114 #
115 
116 
117 # Only defines the parameter but no value is assigned
118 add_sw_setting boolean_define_only system_h_define gemrtos.semaphore GRTOS_INCLUDE_SEMAPHORE 1 "Set to include semaphore support to GeMRTOS."
119 
120 add_sw_setting boolean system_h_define gemrtos.message_queue GRTOS_INCLUDE_MESSAGE_QUEUE 1 "Set to include message queue support to GeMRTOS."
121 
122 # set module_name [get_module_name]
123 # add_sw_setting unquoted_string system_h_define gemrtos.IORD_GRTOS_SMP GRTOS_IORD_GRTOS_SMP "command" "Sets the priority of the software timer service/daemon task. See the FreeRTOS software timers page for a full description."
124 
125 
126 
127 # See create_os page
128 # https://www.intel.co.jp/content/dam/altera-www/global/ja_JP/pdfs/literature/hb/nios2/n2sw_nii5v2_04.pdf
129 
130 # This driver supports HAL types
131 add_sw_property supported_bsp_type HAL
132 
133 
134 
135 
136 # Add the following per_driver configuration option to the BSP:
137 # o Type of setting (boolean_define_only translates to "either
138 # emit a #define if true, or don't if false"). Useful for
139 # source code with "#ifdef" style build-options.
140 # o Generated file to write to (public_mk_define -> public.mk)
141 # o Name of setting for use with bsp command line settings tools
142 # (enable_small_driver). This name will be combined with the
143 # driver class to form a settings hierarchy to assure unique
144 # settings names
145 # o '#define' in driver code (and therefore string in generated
146 # makefile): "ALTERA_AVALON_JTAG_UART_SMALL", which means: "emit
147 # CPPFLAGS += ALTERA_AVALON_JTAG_UART_SMALL in generated makefile
148 # o Default value (if the user doesn't specify at BSP creation): false
149 # (which means: 'do not emit above CPPFLAGS string in generated makefile)
150 # o Description text
151 #add_sw_setting boolean_define_only public_mk_define enable_small_driver ALTERA_AVALON_JTAG_UART_SMALL false "Small-footprint (polled mode) driver"
152 
153 
154 
155 
156 
157 # End of file