rasta-serial.aadl 1.28 KB
Newer Older
1
2
3
4
package ocarina_drivers_rasta_serial

public

5
with Deployment;
6
with ocarina_buses;
7
with ocarina_drivers;
8
9
10

subprogram spg_serial_poller_rasta
properties
11
	Source_Language => (C);
12
13
14
15
16
17
	Source_Name => "__po_hi_c_driver_serial_rasta_poller";
end spg_serial_poller_rasta;


subprogram spg_serial_sender_rasta
properties
18
	Source_Language => (C);
19
20
21
22
23
24
25
26
	Source_Name => "__po_hi_c_driver_serial_rasta_sender";
end spg_serial_sender_rasta;




subprogram spg_serial_init_rasta
properties
27
	Source_Language => (C);
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
	Source_Name => "__po_hi_c_driver_serial_rasta_init";
end spg_serial_init_rasta;


thread serial_poller
end serial_poller;


thread implementation serial_poller.rasta
calls
	mycall : {
	  pspg : subprogram spg_serial_poller_rasta;
	};
properties
   Period => 1000ms;
   Dispatch_Protocol => Periodic;
end serial_poller.rasta;

abstract serial_driver
47
48
properties
   Deployment::Configuration_Type => classifier (ocarina_drivers::configuration_type_serial);
49
50
   Deployment::Version  => "0.1beta";
   Deployment::Help     => "Write your ASN.1 configuration here";
51
52
53
54
end serial_driver;

abstract implementation serial_driver.rasta
subcomponents
55
   receiver_rasta_serial : thread serial_poller.rasta;
56
   sender                : subprogram spg_serial_sender_rasta;
57
58
59
end serial_driver.rasta;

end ocarina_drivers_rasta_serial;