Commit 1a45000e authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

update templates documentation + minor fixes

parent 39271cfb
@@-- The following tags are available in this template: @@-- The following tags are available in this template:
@@-- @@--
@@-- @_Thread_Name_@ : Thread name @@-- @_Thread_Name_@ : Thread name
@@-- @_Entry_Port_Name_@ : Name of the PI @@-- @_Entry_Port_Name_@ : Name of the PI
@@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION" @@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION"
@@-- @_Pro_Block_Name_@ : Name of the protected function @@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node @@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list @@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_Remote_PIs_@ : |_ Associated PI Name @@-- @_RI_Port_Name_@ : |_ Corresponding local RI name
@@-- @_Remote_PIs_@ : |_ Associated PI Name
@@-- @_Remote_PI_Sorts_@ : |_ Optional param type of the remote thread
@@-- @_Remote_PI_Modules_@ : |_ Asn1 module of the optional param type
@@-- Tags related to the PI that is at the origin of the thread creation: @@-- Tags related to the PI that is at the origin of the thread creation:
@@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here @@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here
@@-- @_Param_Names_@, _Types_@, _Encodings_@, _Directions_@ : param vector tag @@-- @_Param_Names_@, _Types_@, _ASN1_Modules, _Encodings_@, _Directions_@ : param vector tag
@@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here @@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here
@@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag) @@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag)
@@-- @@--
@@-- Matrix of output ports: Remote thread/corresponding remote PI @@-- Matrix of output ports: Remote thread/corresponding remote PI @_Name_@
@_Thread_Name_@ @_Thread_Name_@
...@@ -61,10 +61,14 @@ properties ...@@ -61,10 +61,14 @@ properties
Dispatch_Protocol => Periodic; Dispatch_Protocol => Periodic;
@@END_IF@@ @@END_IF@@
@@END_INLINE@@ @@END_INLINE@@
@@IF@@ @_TRIM:Period_@ /= "0"
Period => @_Period_@ ms; Period => @_Period_@ ms;
Dispatch_Offset => 0; @@ELSE@@
Period => 1 ms;
@@END_IF@@
Dispatch_Offset => 0 ms;
Compute_Execution_Time => @_WCET_@ ms .. @_WCET_@ ms; Compute_Execution_Time => @_WCET_@ ms .. @_WCET_@ ms;
Stack_Size => 50 KBytes; Stack_Size => 50 KByte;
Priority => 1; Priority => 1;
end @_CAPITALIZE:Thread_Name_@.others; end @_CAPITALIZE:Thread_Name_@.others;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
@@-- @_Pro_Block_Name_@ : Name of the protected function @@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node @@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list @@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_RI_Port_Name_@ : |_ Corresponding local RI name
@@-- @_Remote_PIs_@ : |_ Associated PI Name @@-- @_Remote_PIs_@ : |_ Associated PI Name
@@-- @_Remote_PI_Sorts_@ : |_ Optional param type of the remote thread @@-- @_Remote_PI_Sorts_@ : |_ Optional param type of the remote thread
@@-- @_Remote_PI_Modules_@ : |_ Asn1 module of the optional param type @@-- @_Remote_PI_Modules_@ : |_ Asn1 module of the optional param type
......
@@-- The following tags are available in this template: @@-- The following tags are available in this template:
@@-- @@--
@@-- @_Thread_Name_@ : Thread name @@-- @_Thread_Name_@ : Thread name
@@-- @_Entry_Port_Name_@ : Name of the PI @@-- @_Entry_Port_Name_@ : Name of the PI
@@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION" @@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION"
@@-- @_Pro_Block_Name_@ : Name of the protected function @@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node @@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list @@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_Remote_PIs_@ : |_ Associated PI Name @@-- @_RI_Port_Name_@ : |_ Corresponding local RI name
@@-- @_Remote_PIs_@ : |_ Associated PI Name
@@-- @_Remote_PI_Sorts_@ : |_ Optional param type of the remote thread
@@-- @_Remote_PI_Modules_@ : |_ Asn1 module of the optional param type
@@-- Tags related to the PI that is at the origin of the thread creation: @@-- Tags related to the PI that is at the origin of the thread creation:
@@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here @@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here
@@-- @_Param_Names_@, _Types_@, _Encodings_@, _Directions_@ : param vector tag @@-- @_Param_Names_@, _Types_@, _ASN1_Modules, _Encodings_@, _Directions_@ : param vector tag
@@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here @@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here
@@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag) @@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag)
@@-- @@--
@@-- Matrix of output ports: Remote thread/corresponding remote PI @@-- Matrix of output ports: Remote thread/corresponding remote PI @_Name_@
task @_CAPITALIZE:Thread_Name_@ is task @_CAPITALIZE:Thread_Name_@ is
Port : @_Entry_Port_Name_@ Port : @_Entry_Port_Name_@
Protected Block : @_Pro_Block_Name_@ Protected Block : @_Pro_Block_Name_@
......
@@-- The following tags are available in this template: @@-- The following tags are available in this template:
@@-- @@--
@@-- @_Thread_Name_@ : Thread name @@-- @_Thread_Name_@ : Thread name
@@-- @_Entry_Port_Name_@ : Name of the PI @@-- @_Entry_Port_Name_@ : Name of the PI
@@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION" @@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION"
@@-- @_Pro_Block_Name_@ : Name of the protected function @@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node @@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list @@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_Remote_PIs_@ : |_ Associated PI Name @@-- @_RI_Port_Name_@ : |_ Corresponding local RI name
@@-- @_Remote_PIs_@ : |_ Associated PI Name
@@-- @_Remote_PI_Sorts_@ : |_ Optional param type of the remote thread
@@-- @_Remote_PI_Modules_@ : |_ Asn1 module of the optional param type
@@-- Tags related to the PI that is at the origin of the thread creation: @@-- Tags related to the PI that is at the origin of the thread creation:
@@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here @@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here
@@-- @_Param_Names_@, _Types_@, _Encodings_@, _Directions_@ : param vector tag @@-- @_Param_Names_@, _Types_@, _ASN1_Modules, _Encodings_@, _Directions_@ : param vector tag
@@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here @@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here
@@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag) @@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag)
@@-- @@--
@@-- Matrix of output ports: Remote thread/corresponding remote PI @@-- Matrix of output ports: Remote thread/corresponding remote PI @_Name_@
@@IF@@ @_RCM_@ = "CYCLIC_OPERATION" @@IF@@ @_RCM_@ = "CYCLIC_OPERATION"
@_CAPITALIZE:Thread_Name_@_Package is new Periodic_Task @_CAPITALIZE:Thread_Name_@_Package is new Periodic_Task
(Cyclic_Operation => @_Pro_Block_Name_@.@_Entry_Port_Name_@, (Cyclic_Operation => @_Pro_Block_Name_@.@_Entry_Port_Name_@,
......
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