Commit 115cb4d5 by Tobias Langer

Fixed implementation of data arrays.

parent 7c2360ca
...@@ -14,18 +14,22 @@ struct {{name}} { ...@@ -14,18 +14,22 @@ struct {{name}} {
{{/fields}} {{/fields}}
}; };
{{/data_description}}
{{#data}} {{#data}}
{{type}} {{name}}[] = { {{type}} {{name}}[] = {
{{#elem}} {{#elem}}
.wcet = {{wcet}} {
.period = {{period}} .offset = {{offset}},
.deadline = {{deadline}} .wcet = {{wcet}},
.periodical = {{periodical}} .period = {{period}},
.ticktype = {{ticktype}} .deadline = {{deadline}},
{{/elem}} .periodical = {{periodical}},
}; },
{{/data}} {{/elem}}
};
const int {{name}}_length = sizeof({{name}}) / sizeof({{type}});
{{/data}}
{{#executions}} {{#executions}}
int executions = 500; int executions = 500;
{{/executions}} {{/executions}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment