polyorb_hi_drivers_gruart.ads 915 Bytes
Newer Older
1
2
3
4
with PolyORB_HI.Errors;
with PolyORB_HI_Generated.Deployment;
with PolyORB_HI.Streams;
with PolyORB_HI.Utils;
jhugues's avatar
jhugues committed
5
with System;
6

7
package PolyORB_HI_Drivers_GRUART is
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

   use PolyORB_HI.Errors;
   use PolyORB_HI_Generated.Deployment;
   use PolyORB_HI.Streams;

   procedure Initialize (Name_Table : PolyORB_HI.Utils.Naming_Table_Type);

   procedure Receive;

   function Send
     (Node    : Node_Type;
      Message : Stream_Element_Array;
      Size    : Stream_Element_Offset)
     return Error_Kind;

jhugues's avatar
jhugues committed
23
24
25
26
27
28
29
30
31
32
   task Idle_Task is
      --  Dummy idle task to work around an issue in the GRSPW driver
      --  in gnatforleon: if no task executes, the node goes in sleep
      --  mode, and cannot be awaken when a packet comes in. This task
      --  simulates a constant workload to prevent the node to
      --  hibernate.

      pragma Priority (System.Priority'First);
   end Idle_Task;

33
end PolyORB_HI_Drivers_GRUART;