defines.h 817 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
{{/includes}}

10 11 12 13
using cpp_time_base = {{cpp_time_base}};
using embb_time_base = {{embb_time_base}};
using base_clock = {{base_clock}};

14
{{#data_description}}
Tobias Langer committed
15 16 17 18 19
struct {{name}} {
    {{#fields}}
    {{type}} {{name}};
    {{/fields}}
};
20

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

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