Commit a05e7790 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Improve RI/PI messages, make frame timings better for non-interrupted printf...

Improve RI/PI messages, make frame timings better for non-interrupted printf outputs, match the Q size with the hardcoded value (appease Ocarina bug).
parent b81d849f
......@@ -54,13 +54,6 @@ void user_ports_polling ()
MESSAGE_SIZE_TYPE len;
PARTITION_ID_TYPE self_id;
debug_counter = debug_counter + 1;
if (10 == debug_counter) {
printf("Polling ports for partition \n");
debug_counter = 0;
}
mynode = __po_hi_transport_get_mynode ();
for (portno = 0 ; portno < __PO_HI_NB_PORTS ; portno++) {
......@@ -80,8 +73,8 @@ void user_ports_polling ()
if (rc == NO_ERROR) {
__po_hi_main_deliver (&request);
} else {
printf("There was an error of %d for AIR port %d\n",
rc, __po_hi_transport_air_get_port (portno));
// printf("There was an error of %d for AIR port %d\n",
// rc, __po_hi_transport_air_get_port (portno));
}
}
}
......
......@@ -28,7 +28,7 @@ void vm_@_LOWER:Parent_Function_@_@_LOWER:Name_@
@@TABLE@@
// @_Calling_Threads_@ calling thread
if (@_LOWER:Partition_Name_@_@_LOWER:Calling_Threads_@_k == current_task) {
puts("[TASTE] Sporadic call of @_Name_@ from thread @_LOWER:Partition_Name_@_@_LOWER:Calling_Threads_@");
// puts("[TASTE] Sporadic call of @_Name_@ from thread @_LOWER:Partition_Name_@_@_LOWER:Calling_Threads_@");
@@IF@@ @_Param_Names'Length_@ > 0
@@INLINE( )( \n )(\n)@@
__po_hi_request_t request;
......@@ -64,7 +64,7 @@ size_IN_buf_@_LOWER:Param_Names_@;
@@END_TABLE@@
@@ELSE@@ @@-- Protected call
puts("[TASTE] Protected call of @_Name_@");
// puts("[TASTE] Protected call of @_Name_@");
@@TABLE@@
pro_@_LOWER:Remote_Function_Names_@_@_LOWER:Remote_Interface_Names_@
@@INLINE( \()(,\n )(\);\n)@@
......
......@@ -121,13 +121,13 @@ PROPERTIES
Actual_Processor_Binding => (reference (proc1)) APPLIES TO part2_VP;
Actual_Processor_Binding => (reference (part2_VP)) APPLIES TO part2;
Actual_Memory_Binding => (reference (main_memory.part2_Segment)) APPLIES TO part2;
ARINC653::Module_Major_Frame => 3000ms APPLIES TO proc1;
ARINC653::Module_Major_Frame => 1000ms APPLIES TO proc1;
ARINC653::Module_Schedule => (
[ Partition => reference(part1_VP);
Duration => 1600ms;
Duration => 450ms;
Periodic_Processing_Start => False; ],
[ Partition => reference(part2_VP);
Duration => 1400ms;
Duration => 450ms;
Periodic_Processing_Start => False; ]
) APPLIES TO proc1;
END Node1.others;
......
......@@ -17,7 +17,7 @@ FEATURES
Taste::encoding => NATIVE;
};
PROPERTIES
Taste::Associated_Queue_Size => 5;
Taste::Associated_Queue_Size => 1;
END PI_s;
SUBPROGRAM IMPLEMENTATION PI_s.others
......@@ -30,7 +30,7 @@ FEATURES
PI_s : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::hello::PI_s.others {
Taste::coordinates => "129130 47716";
Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 10 ms;
Taste::RCMperiod => 1000 ms;
Taste::Deadline => 5 ms;
Taste::InterfaceName => "s";
};
......@@ -76,7 +76,7 @@ FEATURES
PI_h : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::read::PI_h.others {
Taste::coordinates => "189601 53700";
Taste::RCMoperationKind => cyclic;
Taste::RCMperiod => 100 ms;
Taste::RCMperiod => 1000 ms;
Taste::Deadline => 10 ms;
Taste::InterfaceName => "h";
};
......
......@@ -11,6 +11,6 @@ void hello_startup()
void hello_PI_s(const asn1SccTASTE_Boolean *IN_t)
{
/* Write your code here! */
printf("hello.c got async message with value %s", *IN_t?"TRUE":"FALSE");
printf("hello.c got %s ", *IN_t?"TRUE\n":"FALSE\n");
}
......@@ -12,7 +12,7 @@ void read_PI_h()
{
static asn1SccT_Boolean someBool = true;
/* Write your code here! */
printf("executing partition defined by TASTE\n");
printf("read_RI_s is sending %s\n", someBool?"TRUE":"FALSE");
read_RI_s(&someBool);
someBool = someBool?false:true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment