1 %% Copyright (C) 2013-2015 Czech Technical University in Prague
4 %% - Carlos Jenkins <carlos@jenkins.co.cr>
6 %% This document contains proprietary information belonging to Czech
7 %% Technical University in Prague. Passing on and copying of this
8 %% document, and communication of its contents is not permitted
9 %% without prior written authorization.
11 %% File : rpp_file_process.tlc
13 %% Code generation custom file processing template.
15 %% This file should decide which \textit{main} to generate according to configuration, in
16 %% particular which mode, Single Tasking or Multitasking, is chosen. The RPP Target ignores
17 %% this settings because it uses a tasking system based on tasking features provided by
18 %% FreeRTOS. In consequence is only a wrapper to the \textit{Single Tasking} main, which
19 %% clearly is not for single tasking.
22 %% ecoder_ug.pdf p. 556
23 %% ecoder_ref.pdf p. 1347
28 %assign ::modelName = CompiledModel.Name
29 %assign ::solverMode = CompiledModel.FixedStepOpts.SolverMode
30 %assign ::fundamentalStepSize = CompiledModel.FundamentalStepSize
31 %assign ::tid01Eq = CompiledModel.FixedStepOpts.TID01EQ
32 %assign ::numSampleTimes = CompiledModel.NumSynchronousSampleTimes
34 %% Need to set the template compliance flag before you can use the API
35 %<LibSetCodeTemplateComplianceLevel(1)>
37 %% Create a the main file
38 %if LibIsSingleTasking()
39 %include "rpp_srmain.tlc"
40 %<FcnSingleTaskingMain()>
42 %include "rpp_mrmain.tlc"
43 %<FcnMultiTaskingMain()>