Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
fe0fefe2
Commit
fe0fefe2
authored
Jun 11, 2016
by
yoogx
Browse files
* Add timestemps to debug
parent
9144921c
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/aadlv2/rma/hello.c
View file @
fe0fefe2
/*
* 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
}
examples/aadlv2/rma/rma.aadl
View file @
fe0fefe2
...
...
@@ -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
=>
1000
ms
;
Compute_Execution_time
=>
0
ms
..
3
ms
;
Deadline
=>
1000
ms
;
Period
=>
100
ms
;
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
=>
500
ms
;
Compute_Execution_time
=>
0
ms
..
3
ms
;
Deadline
=>
500
ms
;
Period
=>
50
ms
;
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment