defines.h 745 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 27 28 29 30
{{type}} {{name}}[] = {
{{#elem}}
    {
        .offset = {{offset}},
        .wcet = {{wcet}},
        .period = {{period}},
        .deadline = {{deadline}},
        .periodical = {{periodical}},
    },
{{/elem}}
};
const int {{name}}_length = sizeof({{name}}) / sizeof({{type}});
31

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