Commit fe0fefe2 authored by yoogx's avatar yoogx

* Add timestemps to debug

parent 9144921c
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2016 ESA & ISAE.
*/
#include <stdio.h>
#include <po_hi_time.h>
void user_hello_spg_1 (void)
{
#if 1
printf ("FIRST TASK\n");
fflush (stdout);
printf ("[%d] FIRST TASK\n", milliseconds_since_epoch());
fflush (stdout);
#endif
}
void user_hello_spg_2 (void)
{
#if 1
printf ("SECOND TASK\n");
fflush (stdout);
printf ("[%d] SECOND TASK\n", milliseconds_since_epoch());
fflush (stdout);
#endif
}
......@@ -36,28 +36,24 @@ thread Task
end Task;
thread implementation Task.impl_1
calls
calls
Mycalls: {
P_Spg : subprogram Hello_Spg_1;
};
properties
Dispatch_Protocol => periodic;
Period => 1000ms;
Compute_Execution_time => 0 ms .. 3 ms;
Deadline => 1000 ms;
Period => 100ms;
Priority => 1;
end Task.impl_1;
thread implementation Task.impl_2
calls
calls
Mycalls: {
P_Spg : subprogram Hello_Spg_2;
};
properties
Dispatch_Protocol => periodic;
Period => 500ms;
Compute_Execution_time => 0 ms .. 3 ms;
Deadline => 500 ms;
Period => 50ms;
Priority => 2;
end Task.impl_2;
......@@ -67,7 +63,7 @@ end Task.impl_2;
processor cpurm
properties
Deployment::Execution_Platform => leon_rtems;
Deployment::Execution_Platform => native;
end cpurm;
processor implementation cpurm.impl
......@@ -92,7 +88,7 @@ end node_a.impl;
-- System --
------------
system rma
system rma
end rma;
system implementation rma.impl
......
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