Commit 831d02ea authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add body template for SDL

parent ef856fae
......@@ -13,42 +13,34 @@
@@-- @_Property_Values_@ : List of User-defined properties (values)
@@-- @_Is_Type_@ : Flag, True if function is a component type
@@-- @_Instance_Of_@ : Optional name of component type
@@IF@@ @_Is_Type_@
process type @_CAPITALIZE:Name_@;
@@ELSE@@
process @_CAPITALIZE:Name_@;
@@END_IF@@
/* Body file for function @_Name_@
* Generated by TASTE on @_NOW_@
* You can edit this file, it will not be overwritten
* Provided interfaces : @_List_Of_PIs_@
* Required interfaces : @_List_Of_RIs_@
* User-defined properties for this function:
@@IF@@ @_Timers'Length_@ > 0
/* CIF TEXT (10, 10), (200, 250) */
-- Timers defined in the interface view
-- Use SET_TIMER (value, timer name)
-- and RESET_TIMER (timer name) in a
-- PROCEDURE CALL symbol to use them
@@TABLE@@
* |_ @_Property_Names_@ = @_Property_Values_@
timer @_Timers_@;
@@END_TABLE@@
* Timers : @_Timers_@
*/
#include "@_LOWER:Name_@.h"
@@IF@@ @_Has_Context_@
/* Include Context Parameters (constants defined in the Interface View) */
#include "Context-@_REPLACE((_)/-):LOWER:Name_@.h"
/* CIF ENDTEXT */
@@END_IF@@
void @_LOWER:Name_@_startup()
{
// Write your initialisation code, but DO NOT CALL REQUIRED INTERFACES
// puts ("[@_Name_@] Startup");
}
/* CIF START (320, 10), (70, 35) */
start;
nextstate Wait;
@@TABLE@@
void @_LOWER:Name_@_PI_@_Provided_Interfaces_@
{
// Write your code here
}
@@END_TABLE@@
/* CIF STATE (450, 10), (70, 35) */
state Wait;
endstate;
@@TABLE@@
void @_LOWER:Name_@_PI_@_Timers_@()
{
// This function is called when the timer expires
}
@@END_TABLE@@
@@IF@@ @_Is_Type_@
endprocess type;
@@ELSE@@
endprocess;
@@END_IF@@
Supports Markdown
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