Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
bf5505ae
Commit
bf5505ae
authored
Mar 07, 2018
by
Maxime Perrotin
Browse files
Don't generate declaratio of timers in generics
parent
7fd92b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
bf5505ae
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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