Commit e566bfc0 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Merge branch 'fix_rpi' into 'feature_buster'

Fix rpi

See merge request !20
parents df3ed5ce c91dad91
Pipeline #3751 passed with stage
in 34 minutes and 57 seconds
{% comment %}
Template for generation of XML scheme of function.
The following tags are available in this sub-template:
func : Instance of function (provided by a top level template)
func.attributes : |_ List of all attributes of function
attr : |_ Instance of attriubute
attr.name : |_ Name of attribute
attr.value : |_ Value of attribute
func.properties : |_ List of all properties of function
prop : |_ Instance of property
prop.name : |_ Name of property
prop.value : |_ Value of property
func.interfaces : |_ List of all interfaces of function
iface : |_ Instance of interface
func.functions : |_ List of all nested functions of function
func : |_ Instance of nested function
func.comments : |_ List of all nested comments of function
comm : |_ Instance of nested comment
func.connections: |_ List of all nested connections of function
conn : |_ Instance of nested connections
func : Instance of function (provided by a top level template)
func.name : |_ Function name
func.attributes : |_ List of all attributes of function
attr : |_ Instance of attriubute
attr.name : |_ Name of attribute
attr.value : |_ Value of attribute
func.properties : |_ List of all properties of function
prop : |_ Instance of property
prop.name : |_ Name of property
prop.value : |_ Value of property
func.contextParameters : |_ List of all context parameters of function
param : |_ Instance of context parameter
param.name : |_ Name of context parameter
param.type : |_ Type name context parameter (from ASN.1 for example)
param.defaultValue : |_ Value of context parameter
func.interfaces : |_ List of all interfaces of function
iface : |_ Instance of interface
func.functions : |_ List of all nested functions of function
func : |_ Instance of nested function
func.comments : |_ List of all nested comments of function
comm : |_ Instance of nested comment
func.connections : |_ List of all nested connections of function
conn : |_ Instance of nested connections
func.connectedFunctions : |_ List of connected functions
connectedFunc : |_ List of parent Functions names
{% endcomment %}
{% for func in func.functions %}
......@@ -43,11 +51,16 @@ SYSTEM {{ func.name }}
FEATURES
{% endif %}
{% for iface in func.interfaces %}
{% for endpoint in iface.connectedInterfaces %}
{% if iface.isProvided %}
PI_{{ iface.name }} : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::{% for item in endpoint %} {% if not forloop.last %}{{ item }}::{% endif %}{% endfor %}PI_{{ endpoint|last }}.others {
PI_{{ iface.name }} : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::{{ func.name }}::PI_{{ iface.name }}.others {
{% else %}
{% for endpoint in iface.connectedInterfaces %}
{% comment %}
The following works only because there is no multicast, otherwise it would repeat the same RI name multiple times
In case of multiple RI->one PI connection there should be a different name for the RI here
{% endcomment %}
RI_{{ iface.name }} : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::{% for item in endpoint %} {% if not forloop.last %}{{ item }}::{% endif %}{% endfor %}PI_{{ endpoint|last }}.others {
{% endfor %}
{% endif %}
{% for ifprop in iface.properties %}
{% if ifprop.name == "Taste::InheritPI" %}
......@@ -58,6 +71,8 @@ FEATURES
-- Ignored InnerCoordinates (unknown TASTE property)
{% elif ifprop.name == "Taste::RootCoordinates" %}
-- Ignored RootCoordinates (unknown TASTE property)
{% elif ifprop.name == "Taste::coordinates" %}
-- Ignored coordinates (incompatible with Ellidiss GUI)
{% else %}
{{ ifprop.name }} => "{{ ifprop.value }}";
{% endif %}
......@@ -79,7 +94,6 @@ FEATURES
{% endfor %}
};
{% endfor %}
{% endfor %}
PROPERTIES
{% for attr in func.attributes %}
{% if attr.name == "language" %}
......
{% comment %}
{% comment %}
The following tags are available in this sub-template:
iface : Instance of interface (provided by a top level template)
iface.isProvided : |_ Whether interface is provided
iface.isRequired : |_ Whether interface is required
iface.attributes : |_ List of all available attributes
attr : |_ Instance of attriubute
attr.name : |_ Name of attribute
attr.value : |_ Value of attribute
iface.params : |_ List of params of interface
param : |_ Instance of param
param.isIn : |_ Whether param is IN
param.isOut : |_ Whether param is OUT
param.name : |_ Name of param
param.type : |_ Type of param
param.encoding : |_ Encoding of param
iface.properties : |_ List of all available properties
prop : |_ Instance of property
prop.name : |_ Name of property
prop.value : |_ Value of property
iface : Instance of interface (provided by a top level template)
iface.name : |_ Interface name
iface.isProvided : |_ Whether interface is provided
iface.isRequired : |_ Whether interface is required
iface.connectedInterfaces : |_ List of endpoint interfaces linked to current one
iface.attributes : |_ List of all available attributes
attr : |_ Instance of attriubute
attr.name : |_ Name of attribute
attr.value : |_ Value of attribute
iface.params : |_ List of params of interface
param : |_ Instance of param
param.isIn : |_ Whether param is IN
param.isOut : |_ Whether param is OUT
param.name : |_ Name of param
param.underscoredName : |_ Name of param with " " replaced by "_" (spaces repladed with underscore)
param.type : |_ Type of param
param.underscoredType : |_ Type of param with "-" replaced by "_" (dashes repladed with underscore)
param.encoding : |_ Encoding of param
iface.properties : |_ List of all available properties
prop : |_ Instance of property
prop.name : |_ Name of property
prop.value : |_ Value of property
{% endcomment %}
{% for allattr in iface.attributes %}
{% if allattr.name == "name" %}
......
......@@ -10,6 +10,12 @@ conngroups : |_ Instance of connection
Comments : List of all available NON-nested comments (provided by application)
comm : |_ Instance of comment
{% endcomment %}
---------------------------------------------------
-- AADL2.2
-- TASTE type interfaceview
--
-- generated code: do not edit
---------------------------------------------------
{% for func in Functions %}
{% include "function.tmplt" %}
{% endfor %}
......@@ -35,13 +41,7 @@ SUBCOMPONENTS
{% for func in Functions %}
{% for attr in func.attributes %}
{% if attr.name == "name" %}
{{ attr.value }} : SYSTEM interfaceview::IV::{{ attr.value }}::{{ attr.value }}.others {
{% for prop in func.properties %}
{% if prop.name != "Taste::RootCoordinates" and prop.name != "Taste.InnerCoordinates" %}
{{ prop.name }} => "{{ prop.value }}";
{% endif %}
{% endfor %}
};
{{ attr.value }} : SYSTEM interfaceview::IV::{{ attr.value }}::{{ attr.value }}.others;
{% endif %}
{% endfor %}
{% endfor %}
......
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