Commit 90670e1b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix typo when generating a shared library

parent ee7e5222
......@@ -332,8 +332,8 @@ package {process_name} is'''.format(process_name=process_name,
param_spec = ''
if 'type' in signal:
typename = type_name(signal['type'])
param_spec = u'({pName}: access {sort})'.format(pName=param_name,
sort=typename)
param_spec = u'({pName}: access {sort}; Size: Integer)' \
.format(pName=param_name, sort=typename)
ads_template.append(u'-- Required interface "' + signal['name'] + '"')
if simu:
# When generating a shared library, we need a callback mechanism
......@@ -341,7 +341,7 @@ package {process_name} is'''.format(process_name=process_name,
.format(signal['name'], param_spec))
ads_template.append('pragma Convention(Convention => C,'
' Entity => {}_T);'.format(signal['name']))
ads_template.append('{sig} : {sig}_T; size: Integer'
ads_template.append('{sig} : {sig}_T;'
.format(sig=signal['name']))
ads_template.append('procedure Register_{sig}(Callback: {sig}_T);'
.format(sig=signal['name']))
......
......@@ -9,5 +9,5 @@ cd simu
aadl2glueC.py DataView.aadl orchestrator_interface.aadl
asn2dataModel.py -toPython dataview-uniq.asn
make -f Makefile.python
echo "errCodes=$(python $(taste-config --prefix)/share/asn1-editor/errCode.py ./dataview-uniq.h)" >>datamodel.py
LD_LIBRARY_PATH=. taste_gui -l
echo "errCodes=$(taste-asn1-errCodes ./dataview-uniq.h)" >>datamodel.py
LD_LIBRARY_PATH=. taste-gui -l
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