defines.h 765 Bytes
Newer Older
Tobias Langer committed
1 2 3 4 5
/**
 * Automatically generated declarations for the experiment.
 * Plese don't modify manually, but use the generator.py script.
 */

6
{{#includes}}
7
#include {{{name}}}
8 9 10
{{/includes}}

{{#data_description}}
Tobias Langer committed
11 12 13 14 15
struct {{name}} {
    {{#fields}}
    {{type}} {{name}};
    {{/fields}}
};
16

17
{{/data_description}}
18
{{#data}}
19 20 21 22 23 24 25 26
{{type}} {{name}}[] = {
{{#elem}}
    {
        .offset = {{offset}},
        .wcet = {{wcet}},
        .period = {{period}},
        .deadline = {{deadline}},
        .periodical = {{periodical}},
27
        .count = 0,
28 29 30 31
    },
{{/elem}}
};
const int {{name}}_length = sizeof({{name}}) / sizeof({{type}});
32

33
{{/data}}
34
{{#executions}}
Tobias Langer committed
35
const int NUM_EXECUTIONS = {{executions}};
36 37
{{/executions}}
{{^executions}}
38
const int NUM_EXECUTIONS = 1;
39
{{/executions}}