%if !SLibCodeGenForSim()
- %<LibAddToCommonIncludes("rpp.h")>
-
- %endif
- %endif
-
-%endfunction
-
-
-%function RppCommonStart(block, system) void
-
- %if EXISTS("_DONE_COMMON_START_") == 0
- %assign _DONE_COMMON_START_ = 1
-
- %if !SLibCodeGenForSim()
-
- /* Initialize RPP board */
- rpp_init();
+ %<LibAddToCommonIncludes("rpp/rpp.h")>
%endif
%endif
%% TLC file for inlining RPP digital output block.
%%
%% References:
-%% BlockTypeSetup() : rtw_tlc.pdf p. 277
-%% Start() : rtw_tlc.pdf p. 279
-%% Outputs() : rtw_tlc.pdf p. 281
+%% BlockTypeSetup() : refs/rtw_tlc.pdf p. 277
+%% Start() : refs/rtw_tlc.pdf p. 279
+%% Outputs() : refs/rtw_tlc.pdf p. 281
%implements sfunction_lout "C"
%function Start(block, system) Output
%if !SLibCodeGenForSim()
- %<RppCommonStart(block, system)>
+ %%No initialization needed for this block
%endif
%endfunction
%%%%%%%%
%openfile tmpBuf
- #define STEP_SIZE_MILLIS (%<CompiledModel.FundamentalStepSize>*1000.0)
+ /* Definitions */
+ #define STEP_SIZE_MILLIS %<CompiledModel.FundamentalStepSize>*1000.0
#define CONTROL_PRIORITY 2
#define WORKING_PRIORITY 1
*/
void main(void)
{
+ /* Initialize RPP board */
+ rpp_init();
+
/* Initialize model */
%<LibCallModelInitialize()>\
#
# References:
# "Include a tool specification settings" comment block in rpp.tmf
-# Compiler options documentation available in armcl.pdf
+# Compiler options documentation available in refs/armcl.pdf
include $(START_DIR)/slprj/target_paths.mk