Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
112fe28b
Commit
112fe28b
authored
Mar 31, 2017
by
yoogx
Browse files
* File testcase for issue #61
parent
0702af52
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/github/issue_61/pingpong/pingmain.c
0 → 100755
View file @
112fe28b
#include
<po_hi_gqueue.h>
#include
<request.h>
#include
<stdio.h>
#include
<deployment.h>
void
ping
()
{
__po_hi_request_t
request
;
printf
(
"ping
\n
"
);
__po_hi_gqueue_store_out
(
pingpong_ping1_k
,
ping1_local_output_ev
,
&
request
);
}
void
pong
(
__po_hi_task_id
self
)
{
printf
(
"pong: %i
\n
"
,
self
);
}
tests/github/issue_61/pingpong/pingpong.aadl
0 → 100755
View file @
112fe28b
package
pingpong
public
with
Deployment
;
system
t
end
t
;
system
implementation
t
.
i
subcomponents
subsys1
:
system
s
.
i
;
subsys2
:
system
s
.
i
;
end
t
.
i
;
system
s
end
s
;
system
implementation
s
.
i
subcomponents
pingpong
:
process
pp
.
i
;
cpu1
:
processor
cpu
;
properties
Actual_Processor_Binding
=>
(
reference
(
cpu1
))
applies
to
pingpong
;
end
s
.
i
;
process
pp
end
pp
;
process
implementation
pp
.
i
subcomponents
ping1
:
thread
ping
.
i
;
pong1
:
thread
pong
.
i
;
connections
c1
:
port
ping1
.
output_ev
->
pong1
.
input_ev
;
end
pp
.
i
;
thread
pong
features
input_ev
:
in
event
port
{
Compute_Entrypoint_Source_Text
=>
"pong"
;};
end
pong
;
thread
ping
features
output_ev
:
out
event
port
;
end
ping
;
thread
implementation
ping
.
i
calls
entry
:
{
first
:
subprogram
main
;};
properties
Dispatch_Protocol
=>
Periodic
;
Period
=>
1000
ms
;
end
ping
.
i
;
thread
implementation
pong
.
i
properties
Dispatch_Protocol
=>
Sporadic
;
Period
=>
100
ms
;
end
pong
.
i
;
subprogram
main
properties
source_language
=>
(
C
);
source_name
=>
"ping"
;
source_text
=>
(
"pingmain.c"
);
end
main
;
processor
cpu
properties
Deployment
::
Execution_Platform
=>
native
;
Priority_Range
=>
0
..
255
;
end
cpu
;
end
pingpong
;
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