equal
deleted
inserted
replaced
189 "#define heartbeat_index "+str(hmi_tree_hearbeat_index) |
189 "#define heartbeat_index "+str(hmi_tree_hearbeat_index) |
190 ] |
190 ] |
191 if hasattr(node, "iectype"): |
191 if hasattr(node, "iectype"): |
192 sz = DebugTypesSize.get(node.iectype, 0) |
192 sz = DebugTypesSize.get(node.iectype, 0) |
193 variable_decl_array += [ |
193 variable_decl_array += [ |
194 "{&(" + node.cpath + "), " + node.iectype + { |
194 "HMITREE_ITEM_INITIALIZER(" + node.cpath + ", " + node.iectype + { |
195 "EXT": "_P_ENUM", |
195 "EXT": "_P_ENUM", |
196 "IN": "_P_ENUM", |
196 "IN": "_P_ENUM", |
197 "MEM": "_O_ENUM", |
197 "MEM": "_O_ENUM", |
198 "OUT": "_O_ENUM", |
198 "OUT": "_O_ENUM", |
199 "VAR": "_ENUM" |
199 "VAR": "_ENUM" |
200 }[node.vartype] + ", " + |
200 }[node.vartype] + ", " + |
201 str(buf_index) + ", 0, }"] |
201 str(buf_index) + ")"] |
202 buf_index += sz |
202 buf_index += sz |
203 item_count += 1 |
203 item_count += 1 |
204 if len(node.path) == 1: |
204 if len(node.path) == 1: |
205 extern_variables_declarations += [ |
205 extern_variables_declarations += [ |
206 "extern __IEC_" + node.iectype + "_" + |
206 "extern __IEC_" + node.iectype + "_" + |