serial-raw.aadl 994 Bytes
Newer Older
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
package ocarina_drivers_serial

public


subprogram spg_serial_poller_linux
properties
	Source_Language => C;
	Source_Name => "__po_hi_c_driver_serial_linux_poller";
end spg_serial_poller_linux;


subprogram spg_serial_sender_linux
properties
	Source_Language => C;
	Source_Name => "__po_hi_c_driver_serial_linux_sender";
end spg_serial_sender_linux;


subprogram spg_serial_init_linux
properties
	Source_Language => C;
	Source_Name => "__po_hi_c_driver_serial_linux_init";
end spg_serial_init_linux;


thread serial_poller
end serial_poller;

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


abstract serial_driver
end serial_driver;

abstract implementation serial_driver.linux
subcomponents
   receiver : thread serial_poller.linux;
   sender   : subprogram spg_serial_sender_linux;
end serial_driver.linux;

end ocarina_drivers_serial;