]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/blob - rpp/blocks/tlc_c/sfunction_scic.tlc
Disable SCI blocks when External mode is enabled
[jenkicar/rpp-simulink.git] / rpp / blocks / tlc_c / sfunction_scic.tlc
1 %% Copyright (C) 2013-2014 Czech Technical University in Prague
2 %%
3 %% Authors:
4 %%     - Carlos Jenkins <carlos@jenkins.co.cr>
5 %%
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.
10 %%
11 %% File : sfunction_scic.tlc
12 %% Abstract:
13 %%     TLC file for inlining RPP serial communication configure block.
14 %%
15 %% References:
16 %%     BlockTypeSetup() : refs/rtw_tlc.pdf p. 277
17 %%     Outputs()        : refs/rtw_tlc.pdf p. 281
18
19
20 %implements sfunction_scic "C"
21
22 %include "common.tlc"
23
24
25 %% Function: BlockTypeSetup ====================================================
26 %function BlockTypeSetup(block, system) void
27
28     %% Ensure required header files are included
29     %<RppCommonBlockTypeSetup(block, system)>
30
31 %endfunction
32
33
34 %% Function: Start =============================================================
35 %function Start(block, system) Output
36
37     %if !SLibCodeGenForSim()
38
39         %if extMode
40             %return
41
42         %assign p1_val = LibBlockParameterValue(p1, 0)
43         rpp_sci_setup(%<p1_val>);
44     %endif
45
46 %endfunction
47
48
49 %% [EOF]