Commit bf5505ae authored by Maxime Perrotin's avatar Maxime Perrotin

Don't generate declaratio of timers in generics

parent 7fd92b9d
......@@ -850,18 +850,20 @@ package {process_name} is'''.format(generic=generic_spec,
.format(re=each, t=timer))
taste_template.append('')
else:
ads_template.append(u'procedure SET_{}(val: access asn1SccT_UInt32);'
.format(timer))
if not generic:
ads_template.append(
elif not generic:
ads_template.append(
u'procedure SET_{}(val: access asn1SccT_UInt32);'.format(timer))
ads_template.append(
u'pragma import(C, SET_{timer}, "{proc}_RI_set_{timer}");'
.format(timer=timer, proc=process_name))
ads_template.append(u'procedure RESET_{};'.format(timer))
if not generic:
ads_template.append(
ads_template.append(
u'pragma import(C, RESET_{timer}, "{proc}_RI_reset_{timer}");'
.format(timer=timer, proc=process_name))
else:
# Generic functions get the SET and RESET from template
pass
if instance:
# Instance of a process type, all the RIs (including timers) must
......
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