tecscde 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rubocop.yml +125 -0
  4. data/.rubocop_todo.yml +188 -0
  5. data/CHANGELOG.md +3 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE +46 -0
  8. data/LICENSE.ja +32 -0
  9. data/README.ja.md +200 -0
  10. data/README.md +35 -0
  11. data/Rakefile +27 -0
  12. data/bin/tecscde +64 -0
  13. data/glade/tecscde-cell-property.glade +205 -0
  14. data/glade/tecscde-celltype-property.glade +172 -0
  15. data/glade/tecscde-celltype.glade +414 -0
  16. data/glade/tecscde-export.glade +161 -0
  17. data/glade/test-cell-plugin.rb +51 -0
  18. data/glade/test-cell-property.rb +35 -0
  19. data/glade/test-export.rb +35 -0
  20. data/glade/test-palette.rb +26 -0
  21. data/lib/tcflow.rb +148 -0
  22. data/lib/tecscde.rb +65 -0
  23. data/lib/tecscde/NewCell.png +0 -0
  24. data/lib/tecscde/SelectArrow.png +0 -0
  25. data/lib/tecscde/attr_tree_view.rb +253 -0
  26. data/lib/tecscde/cell_plugin_dialog.glade +294 -0
  27. data/lib/tecscde/cell_plugin_dialog.rb +89 -0
  28. data/lib/tecscde/celltype_tree_view.rb +105 -0
  29. data/lib/tecscde/change_set_control.rb +35 -0
  30. data/lib/tecscde/change_set_control/change_set.rb +32 -0
  31. data/lib/tecscde/change_set_control/change_set_manager.rb +62 -0
  32. data/lib/tecscde/command.rb +35 -0
  33. data/lib/tecscde/control.rb +491 -0
  34. data/lib/tecscde/highlighted_objects.rb +180 -0
  35. data/lib/tecscde/logger.rb +74 -0
  36. data/lib/tecscde/main_view_and_model.rb +80 -0
  37. data/lib/tecscde/palette.glade +553 -0
  38. data/lib/tecscde/palette.rb +174 -0
  39. data/lib/tecscde/preferences.glade +117 -0
  40. data/lib/tecscde/preferences.rb +44 -0
  41. data/lib/tecscde/tecs_model.rb +1137 -0
  42. data/lib/tecscde/tecs_model/hbar.rb +68 -0
  43. data/lib/tecscde/tecs_model/tm_c_port.rb +122 -0
  44. data/lib/tecscde/tecs_model/tm_c_port_array.rb +98 -0
  45. data/lib/tecscde/tecs_model/tm_cell.rb +496 -0
  46. data/lib/tecscde/tecs_model/tm_e_port.rb +126 -0
  47. data/lib/tecscde/tecs_model/tm_e_port_array.rb +78 -0
  48. data/lib/tecscde/tecs_model/tm_join.rb +293 -0
  49. data/lib/tecscde/tecs_model/tm_join_bar.rb +146 -0
  50. data/lib/tecscde/tecs_model/tm_port.rb +238 -0
  51. data/lib/tecscde/tecs_model/tm_port_array.rb +246 -0
  52. data/lib/tecscde/tecs_model/tm_region.rb +107 -0
  53. data/lib/tecscde/tecs_model/tm_uneditable.rb +68 -0
  54. data/lib/tecscde/tecs_model/vbar.rb +68 -0
  55. data/lib/tecscde/templates/_cell_info.cde.erb +15 -0
  56. data/lib/tecscde/templates/_join_info.cde.erb +28 -0
  57. data/lib/tecscde/templates/main.cde.erb +49 -0
  58. data/lib/tecscde/tm_object.rb +91 -0
  59. data/lib/tecscde/version.rb +4 -0
  60. data/lib/tecscde/view.rb +58 -0
  61. data/lib/tecscde/view/cairo_matrix.rb +90 -0
  62. data/lib/tecscde/view/canvas.rb +59 -0
  63. data/lib/tecscde/view/constants.rb +114 -0
  64. data/lib/tecscde/view/main_view.rb +1245 -0
  65. data/lib/tecsflow.rb +475 -0
  66. data/lib/tecsflow/C_parser.tab.rb +2471 -0
  67. data/lib/tecsflow/C_parser.y.rb +1087 -0
  68. data/lib/tecsflow/classes.rb +421 -0
  69. data/lib/tecsgen.rb +581 -0
  70. data/lib/tecsgen/core/C_parser.tab.rb +2477 -0
  71. data/lib/tecsgen/core/C_parser.y +1032 -0
  72. data/lib/tecsgen/core/bnf-deb.tab.rb +5193 -0
  73. data/lib/tecsgen/core/bnf.tab.rb +5193 -0
  74. data/lib/tecsgen/core/bnf.y +2211 -0
  75. data/lib/tecsgen/core/componentobj.rb +7901 -0
  76. data/lib/tecsgen/core/ctypes.rb +226 -0
  77. data/lib/tecsgen/core/expression.rb +1031 -0
  78. data/lib/tecsgen/core/gen_xml.rb +374 -0
  79. data/lib/tecsgen/core/generate.rb +5206 -0
  80. data/lib/tecsgen/core/location.rb +116 -0
  81. data/lib/tecsgen/core/messages.rb +101 -0
  82. data/lib/tecsgen/core/optimize.rb +456 -0
  83. data/lib/tecsgen/core/plugin.rb +332 -0
  84. data/lib/tecsgen/core/pluginModule.rb +165 -0
  85. data/lib/tecsgen/core/syntaxobj.rb +1234 -0
  86. data/lib/tecsgen/core/tecs_lang.rb +306 -0
  87. data/lib/tecsgen/core/tecsgen.rb +453 -0
  88. data/lib/tecsgen/core/tecsinfo.rb +860 -0
  89. data/lib/tecsgen/core/tool_info.rb +258 -0
  90. data/lib/tecsgen/core/types.rb +1632 -0
  91. data/lib/tecsgen/core/unjoin_plugin.rb +218 -0
  92. data/lib/tecsgen/core/value.rb +650 -0
  93. data/lib/tecsgen/messages/messages_console_en_US.rb +1171 -0
  94. data/lib/tecsgen/messages/messages_console_ja_JP.rb +1171 -0
  95. data/lib/tecsgen/messages/messages_file_en_US.rb +334 -0
  96. data/lib/tecsgen/messages/messages_file_ja_JP.rb +163 -0
  97. data/lib/tecsgen/plugin/ATK1AlarmPlugin.rb +196 -0
  98. data/lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb +106 -0
  99. data/lib/tecsgen/plugin/ATK1EventPlugin.rb +147 -0
  100. data/lib/tecsgen/plugin/ATK1ISRPlugin.rb +174 -0
  101. data/lib/tecsgen/plugin/ATK1KernelPlugin.rb +287 -0
  102. data/lib/tecsgen/plugin/ATK1ResourcePlugin.rb +124 -0
  103. data/lib/tecsgen/plugin/ATK1TaskPlugin.rb +220 -0
  104. data/lib/tecsgen/plugin/C2TECSBridgePlugin.rb +210 -0
  105. data/lib/tecsgen/plugin/CellPlugin.rb +61 -0
  106. data/lib/tecsgen/plugin/CelltypePlugin.rb +72 -0
  107. data/lib/tecsgen/plugin/CompositePlugin.rb +66 -0
  108. data/lib/tecsgen/plugin/DomainPlugin.rb +89 -0
  109. data/lib/tecsgen/plugin/HRP2AlarmHandlerPlugin.rb +76 -0
  110. data/lib/tecsgen/plugin/HRP2Cache.rb +1 -0
  111. data/lib/tecsgen/plugin/HRP2CyclicHandlerPlugin.rb +75 -0
  112. data/lib/tecsgen/plugin/HRP2DataqueuePlugin.rb +68 -0
  113. data/lib/tecsgen/plugin/HRP2EventflagPlugin.rb +68 -0
  114. data/lib/tecsgen/plugin/HRP2FixedSizeMemoryPoolPlugin.rb +68 -0
  115. data/lib/tecsgen/plugin/HRP2HandlerPlugin.rb +117 -0
  116. data/lib/tecsgen/plugin/HRP2KernelObjectPlugin.rb +372 -0
  117. data/lib/tecsgen/plugin/HRP2ObjectPlugin.rb +94 -0
  118. data/lib/tecsgen/plugin/HRP2Plugin.rb +140 -0
  119. data/lib/tecsgen/plugin/HRP2PostHook.rb +111 -0
  120. data/lib/tecsgen/plugin/HRP2PriorityDataqueuePlugin.rb +66 -0
  121. data/lib/tecsgen/plugin/HRP2RPCPlugin.rb +319 -0
  122. data/lib/tecsgen/plugin/HRP2SVCPlugin.rb +473 -0
  123. data/lib/tecsgen/plugin/HRP2SemaphorePlugin.rb +67 -0
  124. data/lib/tecsgen/plugin/HRP2TaskPlugin.rb +200 -0
  125. data/lib/tecsgen/plugin/HRPHandlerPlugin.rb +125 -0
  126. data/lib/tecsgen/plugin/HRPKernelObjectManager.rb +72 -0
  127. data/lib/tecsgen/plugin/HRPKernelObjectPlugin.rb +333 -0
  128. data/lib/tecsgen/plugin/HRPObjectPlugin.rb +93 -0
  129. data/lib/tecsgen/plugin/HRPPlugin.rb +356 -0
  130. data/lib/tecsgen/plugin/HRPRPCPlugin.rb +407 -0
  131. data/lib/tecsgen/plugin/HRPSVCPlugin.rb +859 -0
  132. data/lib/tecsgen/plugin/HRPTaskPlugin.rb +107 -0
  133. data/lib/tecsgen/plugin/Mruby2CBridgePlugin.rb +86 -0
  134. data/lib/tecsgen/plugin/MrubyBridgeCellPlugin.rb +264 -0
  135. data/lib/tecsgen/plugin/MrubyBridgeCelltypePlugin.rb +293 -0
  136. data/lib/tecsgen/plugin/MrubyBridgeCompositePlugin.rb +49 -0
  137. data/lib/tecsgen/plugin/MrubyBridgePlugin.rb +67 -0
  138. data/lib/tecsgen/plugin/MrubyBridgeSignaturePlugin.rb +1307 -0
  139. data/lib/tecsgen/plugin/MrubyInfoBridgePlugin.rb +14 -0
  140. data/lib/tecsgen/plugin/MrubyInfoBridgeSignaturePlugin.rb +994 -0
  141. data/lib/tecsgen/plugin/MultiPlugin.rb +57 -0
  142. data/lib/tecsgen/plugin/NotifierPlugin.rb +1217 -0
  143. data/lib/tecsgen/plugin/OpaqueMarshalerPlugin.rb +81 -0
  144. data/lib/tecsgen/plugin/OpaqueRPCPlugin.rb +323 -0
  145. data/lib/tecsgen/plugin/RPCPlugin.rb +266 -0
  146. data/lib/tecsgen/plugin/RepeatCellPlugin.rb +166 -0
  147. data/lib/tecsgen/plugin/RepeatJoinPlugin.rb +130 -0
  148. data/lib/tecsgen/plugin/SharedOpaqueRPCPlugin.rb +357 -0
  149. data/lib/tecsgen/plugin/SharedRPCPlugin.rb +329 -0
  150. data/lib/tecsgen/plugin/SignaturePlugin.rb +77 -0
  151. data/lib/tecsgen/plugin/TECS2CBridgePlugin.rb +178 -0
  152. data/lib/tecsgen/plugin/TECSInfoPlugin.rb +280 -0
  153. data/lib/tecsgen/plugin/ThroughPlugin.rb +333 -0
  154. data/lib/tecsgen/plugin/TracePlugin.rb +484 -0
  155. data/lib/tecsgen/plugin/lib/GenHRP2Marshaler.rb +761 -0
  156. data/lib/tecsgen/plugin/lib/GenOpaqueMarshaler.rb +1107 -0
  157. data/lib/tecsgen/plugin/lib/GenParamCopy.rb +365 -0
  158. data/lib/tecsgen/plugin/lib/GenTransparentMarshaler.rb +683 -0
  159. data/lib/tecsgen/plugin/lib/MrubyBridgeCelltypePluginModule.rb +283 -0
  160. data/lib/tecsgen/plugin/lib/MrubyBridgeSignaturePluginModule.rb +277 -0
  161. data/lib/tecsgen/version.rb +6 -0
  162. data/samples/FigureSamples/active/active.cde +104 -0
  163. data/samples/FigureSamples/active/active.cdl +20 -0
  164. data/samples/FigureSamples/active/active.pdf +0 -0
  165. data/samples/FigureSamples/active/active.png +0 -0
  166. data/samples/FigureSamples/active/gen/tmp_C_src.c +36 -0
  167. data/samples/FigureSamples/active/gen/tmp_cygwin_tecs.h +1908 -0
  168. data/samples/FigureSamples/active/gen/tmp_plugin_post_code.cdl +0 -0
  169. data/samples/FigureSamples/allocator/allocator-internal.png +0 -0
  170. data/samples/FigureSamples/allocator/allocator.cde +171 -0
  171. data/samples/FigureSamples/allocator/allocator.cdl +58 -0
  172. data/samples/FigureSamples/allocator/allocator.png +0 -0
  173. data/samples/FigureSamples/basic/Makefile +87 -0
  174. data/samples/FigureSamples/basic/SimpleSample-trace.cdl +50 -0
  175. data/samples/FigureSamples/basic/SimpleSample.cde +91 -0
  176. data/samples/FigureSamples/basic/SimpleSample.cdl +47 -0
  177. data/samples/FigureSamples/basic/basic.cde +93 -0
  178. data/samples/FigureSamples/basic/basic.cdl +46 -0
  179. data/samples/FigureSamples/basic/basic.png +0 -0
  180. data/samples/FigureSamples/callback/callback.cde +130 -0
  181. data/samples/FigureSamples/callback/callback.cdl +29 -0
  182. data/samples/FigureSamples/callback/callback.png +0 -0
  183. data/samples/FigureSamples/carray/carray.cde +144 -0
  184. data/samples/FigureSamples/carray/carray.cdl +38 -0
  185. data/samples/FigureSamples/carray/carray.png +0 -0
  186. data/samples/FigureSamples/cearray/cearray.cde +314 -0
  187. data/samples/FigureSamples/cearray/cearray.cdl +60 -0
  188. data/samples/FigureSamples/cearray/cearray.png +0 -0
  189. data/samples/FigureSamples/composite/composite-internal.png +0 -0
  190. data/samples/FigureSamples/composite/composite.cde +216 -0
  191. data/samples/FigureSamples/composite/composite.cdl +95 -0
  192. data/samples/FigureSamples/composite/composite.png +0 -0
  193. data/samples/FigureSamples/earray/earray.cde +142 -0
  194. data/samples/FigureSamples/earray/earray.cdl +38 -0
  195. data/samples/FigureSamples/earray/earray.png +0 -0
  196. data/samples/FigureSamples/join/Makefile +87 -0
  197. data/samples/FigureSamples/join/join.cde +132 -0
  198. data/samples/FigureSamples/join/join.cdl +40 -0
  199. data/samples/FigureSamples/join/join.png +0 -0
  200. data/samples/FigureSamples/relay/Makefile +99 -0
  201. data/samples/FigureSamples/relay/relay-internal.png +0 -0
  202. data/samples/FigureSamples/relay/relay.cde +284 -0
  203. data/samples/FigureSamples/relay/relay.cdl +52 -0
  204. data/samples/FigureSamples/relay/relay.png +0 -0
  205. data/samples/FigureSamples/rpc/Makefile +123 -0
  206. data/samples/FigureSamples/rpc/rpc-expand.png +0 -0
  207. data/samples/FigureSamples/rpc/rpc.cde +245 -0
  208. data/samples/FigureSamples/rpc/rpc.png +0 -0
  209. data/samples/FigureSamples/rpc/rpc_sample.cdl +53 -0
  210. data/samples/SimpleSample/Makefile +25 -0
  211. data/samples/SimpleSample/SimpleSample/Makefile +86 -0
  212. data/samples/SimpleSample/SimpleSample/Makefile-trace +91 -0
  213. data/samples/SimpleSample/SimpleSample/README.txt +106 -0
  214. data/samples/SimpleSample/SimpleSample/SimpleSample-trace.cdl +50 -0
  215. data/samples/SimpleSample/SimpleSample/SimpleSample.cdl +45 -0
  216. data/samples/SimpleSample/SimpleSample/src/tSample.c +77 -0
  217. data/samples/SimpleSample/SimpleSample/src/tSimple.c +48 -0
  218. data/samples/SimpleSample/SimpleSample/src/tecs-types.h +27 -0
  219. data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile +51 -0
  220. data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile-trace +91 -0
  221. data/samples/SimpleSample/SimpleSampleOpaqueRPC/README.txt +106 -0
  222. data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample-trace.cdl +80 -0
  223. data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample.cdl +77 -0
  224. data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSample/Makefile +112 -0
  225. data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSimple/Makefile +109 -0
  226. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSample.c +80 -0
  227. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSimple.c +47 -0
  228. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tTaskMain.c +66 -0
  229. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tecs-types.h +27 -0
  230. data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile +125 -0
  231. data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile-trace +130 -0
  232. data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample-trace.cdl +54 -0
  233. data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample.cdl +53 -0
  234. data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSample.c +80 -0
  235. data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSimple.c +54 -0
  236. data/tecscde.gemspec +41 -0
  237. metadata +353 -0
@@ -0,0 +1,123 @@
1
+ # このファイルは tecsgen により自動生成されました
2
+ # Makefile.temp は gen の一つ上のディレクトリに移して使用します
3
+ # % mv Makefile.temp Makefile
4
+ #
5
+ # clean のデフォルト動作は $(GEN_DIR)/Makefile.* を削除します
6
+ #
7
+ # このファイルは GNU make で gcc を用い POSIX 環境で動作するモジュールをビルドするのに適切なように生成されています
8
+ # vpath, CFLAGS, OTHER_OBJS などを調整する必要があるかもしれません
9
+ # 他の環境やターゲットの場合、このファイルを元に変更する必要があります
10
+
11
+ # 変数 #_MVAR_#
12
+ # fixed variable (unchangeable by config or plugin)
13
+ TARGET_BASE = rpc
14
+ BASE_DIR = .
15
+ GEN_DIR = $(BASE_DIR)/gen
16
+ INCLUDES = -I $(BASE_DIR)/. -I $(TECSPATH) -I $(BASE_DIR)/../../cygwin/ -I $(BASE_DIR)/../../../tecsgen/tecs/rpc -I $(GEN_DIR)
17
+ DEFINES =
18
+
19
+ # end of fixed variable (unchangeable by config or plugin)
20
+ #default C Compiler
21
+ CC = gcc
22
+
23
+ #default C Compiler options
24
+ CFLAGS = $(INCLUDES) $(DEFINES) -D "Inline=static inline"
25
+
26
+ #default Liknker
27
+ LD = gcc
28
+
29
+ #default Liknker Options
30
+ LDFLAGS =
31
+
32
+ #default source directory
33
+ SRC_DIR = $(BASE_DIR)/src
34
+
35
+ #default target name
36
+ TARGET = $(TARGET_BASE).exe
37
+
38
+ #default TECS generator
39
+ TECSGEN = tecsgen
40
+
41
+ #Time Stamp
42
+ TIMESTAMP = $(GEN_DIR)/tecsgen.timestamp
43
+
44
+ #default relocatable object (.o) directory
45
+ _TECS_OBJ_DIR = $(GEN_DIR)/
46
+
47
+
48
+
49
+ # Pre-tecsgen target
50
+ PRE_TECSGEN_TARGET =
51
+
52
+ # Post-tecsgen target
53
+ POST_TECSGEN_TARGET =
54
+
55
+ # vpath for C sources and headers
56
+ vpath %.c $(SRC_DIR) $(GEN_DIR) $(TECSPATH) ../../cygwin/ ../../../tecsgen/tecs/rpc
57
+ vpath %.h $(SRC_DIR) $(GEN_DIR) $(TECSPATH) ../../cygwin/ ../../../tecsgen/tecs/rpc
58
+
59
+ # Other objects (out of tecsgen)
60
+ OTHER_OBJS = # Add objects out of tecs care.
61
+ # OTHER_OBJS = $(_TECS_OBJ_DIR)vasyslog.o
62
+ # ルール #_MRUL_#
63
+ allall: tecs
64
+ make all # in order to include generated Makefile.tecsgen & Makefile.depend
65
+
66
+ all : $(TARGET)
67
+
68
+
69
+ # depend を include #_MDEP_#
70
+ -include $(GEN_DIR)/Makefile.tecsgen
71
+ -include $(GEN_DIR)/Makefile.depend
72
+
73
+ $(TARGET) : $(TIMESTAMP) $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS)
74
+ $(LD) -o $(TARGET) $(TECSGEN_COBJS) $(CELLTYPE_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(LDFLAGS)
75
+
76
+ clean :
77
+ rm -f $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(TARGET) $(TIMESTAMP)
78
+ rm -rf $(GEN_DIR)
79
+
80
+ tecs : $(PRE_TECSGEN_TARGET) $(TIMESTAMP) $(POST_TECSGEN_TARGET)
81
+
82
+ $(TIMESTAMP) : $(TECS_IMPORTS)
83
+ $(TECSGEN) rpc.cdl
84
+ # generic target for objs
85
+ $(_TECS_OBJ_DIR)%.o : %.c
86
+ $(CC) -c $(CFLAGS) -o $@ $<
87
+
88
+ $(_TECS_OBJ_DIR)tTask.o : tTask.c
89
+ $(CC) -c $(CFLAGS) -o $@ $<
90
+
91
+ $(_TECS_OBJ_DIR)tSemaphore.o : tSemaphore.c
92
+ $(CC) -c $(CFLAGS) -o $@ $<
93
+
94
+ $(_TECS_OBJ_DIR)tEventflag.o : tEventflag.c
95
+ $(CC) -c $(CFLAGS) -o $@ $<
96
+
97
+ $(_TECS_OBJ_DIR)tDataqueuePeer.o : tDataqueuePeer.c
98
+ $(CC) -c $(CFLAGS) -o $@ $<
99
+
100
+ $(_TECS_OBJ_DIR)tSysLog.o : tSysLog.c
101
+ $(CC) -c $(CFLAGS) -o $@ $<
102
+
103
+ $(_TECS_OBJ_DIR)tTDR.o : tTDR.c
104
+ $(CC) -c $(CFLAGS) -o $@ $<
105
+
106
+ $(_TECS_OBJ_DIR)tRPCDedicatedTaskMain.o : tRPCDedicatedTaskMain.c
107
+ $(CC) -c $(CFLAGS) -o $@ $<
108
+
109
+ $(_TECS_OBJ_DIR)tDataqueueAdaptor.o : tDataqueueAdaptor.c
110
+ $(CC) -c $(CFLAGS) -o $@ $<
111
+
112
+ $(_TECS_OBJ_DIR)tCelltype2.o : tCelltype2.c
113
+ $(CC) -c $(CFLAGS) -o $@ $<
114
+
115
+ $(_TECS_OBJ_DIR)tCelltype1.o : tCelltype1.c
116
+ $(CC) -c $(CFLAGS) -o $@ $<
117
+
118
+ $(_TECS_OBJ_DIR)tMarshaler_sSignature.o : tMarshaler_sSignature.c
119
+ $(CC) -c $(CFLAGS) -o $@ $<
120
+
121
+ $(_TECS_OBJ_DIR)tUnmarshaler_sSignature.o : tUnmarshaler_sSignature.c
122
+ $(CC) -c $(CFLAGS) -o $@ $<
123
+
@@ -0,0 +1,245 @@
1
+ __tool_info__ ("tecsgen") {
2
+ "tecscde_version" : "1.D.1.0",
3
+ "cde_format_version" : "0.5.0.0",
4
+ "save_date" : "2016-05-04T09:03:20+01:00",
5
+ "base_dir" : [
6
+ "C:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/rpc"
7
+ ],
8
+ "define_macro" : [
9
+
10
+ ],
11
+ "import_path" : [
12
+ ".",
13
+ "../../../test/cygwin",
14
+ "../../../tecsgen/tecs/rpc"
15
+ ],
16
+ "direct_import" : [
17
+ "rpc_sample.cdl"
18
+ ]
19
+ }
20
+
21
+
22
+ /*************************************************
23
+ * TOOL INFORMATION FOR TECSCDE *
24
+ * This information is used by tecscde *
25
+ * please don't touch if you are not familiar *
26
+ ************************************************/
27
+ __tool_info__ ("tecscde") {
28
+ "paper" : {
29
+ "type" : "paper",
30
+ "size" : "A3",
31
+ "orientation" : "LANDSCAPE"
32
+ },
33
+ "cell_list" : [
34
+ { /** cell_list[ 0 ] **/
35
+ "type" : "cell_location",
36
+ "name" : "SysLog",
37
+ "location" : [ 181.0, 10.0, 25.0, 15.0 ],
38
+ "region" : "::",
39
+ "port_location" : [
40
+ {
41
+ "type" : "port_location",
42
+ "port_name" : "eSysLog",
43
+ "edge" : "EDGE_LEFT",
44
+ "offset" : 4.0
45
+ }
46
+ ]
47
+ },
48
+ { /** cell_list[ 1 ] **/
49
+ "type" : "cell_location",
50
+ "name" : "Cell2",
51
+ "location" : [ 118.0, 10.0, 25.0, 15.0 ],
52
+ "region" : "::",
53
+ "port_location" : [
54
+ {
55
+ "type" : "port_location",
56
+ "port_name" : "eEntry",
57
+ "edge" : "EDGE_LEFT",
58
+ "offset" : 4.0
59
+ }
60
+ ]
61
+ },
62
+ { /** cell_list[ 2 ] **/
63
+ "type" : "cell_location",
64
+ "name" : "Cell1",
65
+ "location" : [ 65.0, 10.0, 25.0, 15.0 ],
66
+ "region" : "::",
67
+ "port_location" : [
68
+ {
69
+ "type" : "port_location",
70
+ "port_name" : "cCall",
71
+ "edge" : "EDGE_RIGHT",
72
+ "offset" : 4.0
73
+ }
74
+ ]
75
+ },
76
+ { /** cell_list[ 3 ] **/
77
+ "type" : "cell_location",
78
+ "name" : "RPCPlugin__0_Channel",
79
+ "location" : [ 192.0, 59.0, 32.0, 16.0 ],
80
+ "region" : "::",
81
+ "port_location" : [
82
+ {
83
+ "type" : "port_location",
84
+ "port_name" : "eTDR",
85
+ "edge" : "EDGE_LEFT",
86
+ "offset" : 3.0
87
+ },
88
+ {
89
+ "type" : "port_location",
90
+ "port_name" : "eDataqueue",
91
+ "edge" : "EDGE_LEFT",
92
+ "offset" : 8.0
93
+ },
94
+ {
95
+ "type" : "port_location",
96
+ "port_name" : "eEventflag",
97
+ "edge" : "EDGE_LEFT",
98
+ "offset" : 13.0
99
+ }
100
+ ]
101
+ },
102
+ { /** cell_list[ 4 ] **/
103
+ "type" : "cell_location",
104
+ "name" : "RPCPlugin__0",
105
+ "location" : [ 72.0, 53.0, 72.0, 24.0 ],
106
+ "region" : "::",
107
+ "port_location" : [
108
+ {
109
+ "type" : "port_location",
110
+ "port_name" : "cTDR",
111
+ "edge" : "EDGE_RIGHT",
112
+ "offset" : 9.0
113
+ },
114
+ {
115
+ "type" : "port_location",
116
+ "port_name" : "cEventflag",
117
+ "edge" : "EDGE_RIGHT",
118
+ "offset" : 19.0
119
+ },
120
+ {
121
+ "type" : "port_location",
122
+ "port_name" : "cCall",
123
+ "edge" : "EDGE_RIGHT",
124
+ "offset" : 3.0
125
+ },
126
+ {
127
+ "type" : "port_location",
128
+ "port_name" : "eThroughEntry",
129
+ "edge" : "EDGE_LEFT",
130
+ "offset" : 4.0
131
+ }
132
+ ]
133
+ }
134
+ ],
135
+ "join_list" : [
136
+ { /** join_list[ 0 ] **/
137
+ "type" : "join_location",
138
+ "call_cell" : "Cell1",
139
+ "call_region" : "::",
140
+ "call_port" : "cCall",
141
+ "entry_cell" : "Cell2",
142
+ "entry_region": "::",
143
+ "entry_port" : "eEntry",
144
+ "bar_list" : [
145
+ {
146
+ "type" : "HBar",
147
+ "position" : 100.0
148
+ }, {
149
+ "type" : "VBar",
150
+ "position" : 14.0
151
+ }, {
152
+ "type" : "HBar",
153
+ "position" : 108.0
154
+ }, {
155
+ "type" : "VBar",
156
+ "position" : 14.0
157
+ }, {
158
+ "type" : "HBar",
159
+ "position" : 118.0
160
+ }
161
+ ]
162
+ },
163
+ { /** join_list[ 1 ] **/
164
+ "type" : "join_location",
165
+ "call_cell" : "RPCPlugin__0",
166
+ "call_region" : "::",
167
+ "call_port" : "cCall",
168
+ "entry_cell" : "Cell2",
169
+ "entry_region": "::",
170
+ "entry_port" : "eEntry",
171
+ "bar_list" : [
172
+ {
173
+ "type" : "HBar",
174
+ "position" : 154.0
175
+ }, {
176
+ "type" : "VBar",
177
+ "position" : 30.0
178
+ }, {
179
+ "type" : "HBar",
180
+ "position" : 112.0
181
+ }, {
182
+ "type" : "VBar",
183
+ "position" : 14.0
184
+ }, {
185
+ "type" : "HBar",
186
+ "position" : 118.0
187
+ }
188
+ ]
189
+ },
190
+ { /** join_list[ 2 ] **/
191
+ "type" : "join_location",
192
+ "call_cell" : "RPCPlugin__0",
193
+ "call_region" : "::",
194
+ "call_port" : "cTDR",
195
+ "entry_cell" : "RPCPlugin__0_Channel",
196
+ "entry_region": "::",
197
+ "entry_port" : "eTDR",
198
+ "bar_list" : [
199
+ {
200
+ "type" : "HBar",
201
+ "position" : 153.0
202
+ }, {
203
+ "type" : "VBar",
204
+ "position" : 62.0
205
+ }, {
206
+ "type" : "HBar",
207
+ "position" : 177.0
208
+ }, {
209
+ "type" : "VBar",
210
+ "position" : 62.0
211
+ }, {
212
+ "type" : "HBar",
213
+ "position" : 192.0
214
+ }
215
+ ]
216
+ },
217
+ { /** join_list[ 3 ] **/
218
+ "type" : "join_location",
219
+ "call_cell" : "RPCPlugin__0",
220
+ "call_region" : "::",
221
+ "call_port" : "cEventflag",
222
+ "entry_cell" : "RPCPlugin__0_Channel",
223
+ "entry_region": "::",
224
+ "entry_port" : "eEventflag",
225
+ "bar_list" : [
226
+ {
227
+ "type" : "HBar",
228
+ "position" : 154.0
229
+ }, {
230
+ "type" : "VBar",
231
+ "position" : 72.0
232
+ }, {
233
+ "type" : "HBar",
234
+ "position" : 182.0
235
+ }, {
236
+ "type" : "VBar",
237
+ "position" : 72.0
238
+ }, {
239
+ "type" : "HBar",
240
+ "position" : 192.0
241
+ }
242
+ ]
243
+ }
244
+ ]
245
+ }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Simple な Sample
3
+ *
4
+ * +-------------+ +-------------+ +-------------+
5
+ * | | | | | |
6
+ * | tTask | sTaskBody | tSimple | sSample | tSample |
7
+ * | Task |-----------|> Simple |----------|> Sample |
8
+ * | |cTask eBody| |cCall eEnt| |
9
+ * | |Body | | | |
10
+ * +-------------+ +-------------+ +-------------+
11
+ */
12
+
13
+
14
+ // cygwin 用の簡易な型定義
15
+ import( <cygwin_kernel.cdl> );
16
+ // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
17
+
18
+ import( <tSysLog.cdl> );
19
+ import( <rpc.cdl> );
20
+ import( <tDataqueueOWChannel.cdl> );
21
+
22
+ cell tSysLog SysLog {};
23
+
24
+ signature sSignature {
25
+ ER sayHello( [in]int32_t times );
26
+ ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
27
+ };
28
+
29
+ celltype tCelltype2 {
30
+ entry sSignature eEntry;
31
+ };
32
+
33
+ celltype tCelltype1 {
34
+ call sSignature cCall;
35
+ // entry sTaskBody eBody;
36
+ };
37
+
38
+ cell tCelltype2 Cell2 {
39
+ };
40
+
41
+ cell tCelltype1 Cell1 {
42
+ [through(RPCPlugin,"")]
43
+ cCall = Cell2.eEntry;
44
+ };
45
+
46
+ /*
47
+ cell tTask Task {
48
+ cBody = Simple.eBody;
49
+ priority = 11;
50
+ stackSize = 1024;
51
+ taskAttribute = C_EXP( "TA_ACT" );
52
+ };
53
+ */
@@ -0,0 +1,25 @@
1
+ TECSGEN=tecsgen
2
+
3
+ .PHONY : allall
4
+ allall :
5
+ make tecs
6
+ make all
7
+
8
+ .PHONY : all
9
+ all :
10
+ cd SimpleSample; make all TECSGEN_EXE=$(TECSGEN_EXE)
11
+ cd SimpleSampleOpaqueRPC; make all TECSGEN_EXE=$(TECSGEN_EXE)
12
+ cd SimpleSampleTransparentRPC; make all TECSGEN_EXE=$(TECSGEN_EXE)
13
+
14
+ .PHONY : tecs
15
+ tecs :
16
+ cd SimpleSample; make tecs TECSGEN=$(TECSGEN_EXE)
17
+ cd SimpleSampleOpaqueRPC; make tecs TECSGEN=$(TECSGEN_EXE)
18
+ cd SimpleSampleTransparentRPC; make tecs TECSGEN=$(TECSGEN_EXE)
19
+
20
+ .PHONY : clean
21
+ clean :
22
+ cd SimpleSample; make clean
23
+ cd SimpleSampleOpaqueRPC; make clean
24
+ cd SimpleSampleTransparentRPC; make clean
25
+