Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
a3d9a20d
Commit
a3d9a20d
authored
Apr 28, 2021
by
Maxime Perrotin
Browse files
Add C++ code in RPI test case
parent
455cb823
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/rpi_hello_world/DeploymentView.aadl
View file @
a3d9a20d
...
...
@@ -77,6 +77,6 @@ PROPERTIES
Taste::coordinates => "0 0 297000 210000";
Taste::version => "2.4";
Taste::interfaceView => "InterfaceView.aadl";
Taste::HWLibraries => ("
../../../..
/tool-inst/share/ocarina/AADLv2/ocarina_components.aadl");
Taste::HWLibraries => ("
/home/taste
/tool-inst/share/ocarina/AADLv2/ocarina_components.aadl");
END deploymentview::DV;
test/rpi_hello_world/work/function1/CPP/src/function1.cc
View file @
a3d9a20d
...
...
@@ -10,7 +10,7 @@
#include
"function1.h"
#include
"function1_state.h"
//
#include <iostream>
#include
<iostream>
// Define and use function state inside this context structure
// avoid defining global/static variable elsewhere
...
...
@@ -20,7 +20,7 @@ function1_state ctxt_function1;
void
function1_startup
(
void
)
{
// Write your initialisation code, but DO NOT CALL REQUIRED INTERFACES
//
std::cout << "[Function1] Startup" << std::endl;
std
::
cout
<<
"[Function1] Startup"
<<
std
::
endl
;
}
void
function1_PI_pulse
(
void
)
...
...
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