-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsensor.aadl
More file actions
66 lines (57 loc) · 1.7 KB
/
sensor.aadl
File metadata and controls
66 lines (57 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package codegen_demo::sensor
public
with codegen_demo::datatypes;
with arinc653;
process sensor
features
altitude_value : out data port codegen_demo::datatypes::altitude {arinc653::sampling_refresh_period => 10 ms;};
end sensor;
process implementation sensor.i
subcomponents
thr : thread sensor_thr.i;
connections
c0 : port thr.altitude_value -> altitude_value;
end sensor.i;
process sensors
features
altitude_value0 : out data port codegen_demo::datatypes::altitude {arinc653::sampling_refresh_period => 10 ms;};
altitude_value1 : out data port codegen_demo::datatypes::altitude {arinc653::sampling_refresh_period => 10 ms;};
end sensors;
process implementation sensors.i
subcomponents
thr0 : thread sensor_thr.i;
thr1 : thread sensor_thr.i;
connections
c0 : port thr0.altitude_value -> altitude_value0;
c1 : port thr1.altitude_value -> altitude_value1;
end sensors.i;
thread sensor_thr
features
altitude_value : out data port codegen_demo::datatypes::altitude;
end sensor_thr;
thread implementation sensor_thr.i
calls
call1 : { pspg : subprogram sensor_simulator;};
connections
c0 : parameter pspg.altitude_value -> altitude_value;
properties
Priority => 1;
dispatch_protocol => periodic;
period => 1000ms;
deadline => 500ms;
compute_execution_time => 0ms .. 1ms;
Code_Size => 4 Kbyte;
Stack_Size => 30 Kbyte;
Data_Size => 4 Kbyte;
end sensor_thr.i;
subprogram sensor_simulator
features
altitude_value : out parameter codegen_demo::datatypes::altitude;
properties
source_name => "sensor_simulation";
source_language => (C);
Source_Text => ("sensor.c");
Code_Size => 2 Kbyte;
Data_Size => 2 Kbyte;
end sensor_simulator;
end codegen_demo::sensor;