blob: 9086ba1049ec593ca362976c4e561b08c1e7b54a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
//
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009-2009 - DIGITEO - Bruno JOFRET
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
//
//
function allInterfaces = getAllInterfaces(SharedInfo)
Target = SharedInfo.Target;
//Interface files common to all types of output format
Standalone_interfaces = [
"src/c/auxiliaryFunctions/interfaces/int_rand.h"
"src/c/auxiliaryFunctions/interfaces/int_sign.h"
"src/c/auxiliaryFunctions/interfaces/int_size.h"
"src/c/auxiliaryFunctions/interfaces/int_length.h"
"src/c/auxiliaryFunctions/interfaces/int_type.h"
"src/c/auxiliaryFunctions/interfaces/int_isempty.h"
"src/c/auxiliaryFunctions/interfaces/int_isnan.h"
"src/c/auxiliaryFunctions/interfaces/int_pythag.h"
"src/c/auxiliaryFunctions/interfaces/int_frexp.h"
"src/c/auxiliaryFunctions/interfaces/int_abs.h"
"src/c/auxiliaryFunctions/interfaces/int_max.h"
"src/c/auxiliaryFunctions/interfaces/int_min.h"
"src/c/auxiliaryFunctions/interfaces/int_conj.h"
"src/c/auxiliaryFunctions/interfaces/int_find.h"
"src/c/type/int_imag.h"
"src/c/type/int_real.h"
"src/c/matrixOperations/interfaces/int_vmagn.h"
"src/c/matrixOperations/interfaces/int_ones.h"
"src/c/matrixOperations/interfaces/int_spec.h"
"src/c/matrixOperations/interfaces/int_cat.h"
"src/c/matrixOperations/interfaces/int_zeros.h"
"src/c/matrixOperations/interfaces/int_OpBackSlash.h"
"src/c/matrixOperations/interfaces/int_OpApex.h"
"src/c/matrixOperations/interfaces/int_OpCc.h"
"src/c/matrixOperations/interfaces/int_OpRc.h"
"src/c/matrixOperations/interfaces/int_transpose.h"
"src/c/matrixOperations/interfaces/int_v2magn.h"
"src/c/matrixOperations/interfaces/int_invert.h"
"src/c/matrixOperations/interfaces/int_OpSlash.h"
"src/c/matrixOperations/interfaces/int_OpDotApex.h"
"src/c/matrixOperations/interfaces/int_trace.h"
"src/c/matrixOperations/interfaces/int_det.h"
"src/c/matrixOperations/interfaces/int_eye.h"
"src/c/matrixOperations/interfaces/int_OpStar.h"
"src/c/matrixOperations/interfaces/int_chol.h"
"src/c/matrixOperations/interfaces/int_dist.h"
"src/c/matrixOperations/interfaces/int_fill.h"
"src/c/matrixOperations/interfaces/int_expm.h"
"src/c/matrixOperations/interfaces/int_diag.h"
"src/c/matrixOperations/interfaces/int_cumsum.h"
"src/c/matrixOperations/interfaces/int_cumprod.h"
"src/c/matrixOperations/interfaces/int_triu.h"
"src/c/matrixOperations/interfaces/int_tril.h"
"src/c/matrixOperations/interfaces/int_kron.h"
"src/c/matrixOperations/interfaces/int_flipdim.h"
"src/c/matrixOperations/interfaces/int_permute.h"
"src/c/matrixOperations/interfaces/int_norm.h"
"src/c/interpolation/interfaces/int_interp1.h"
"src/c/elementaryFunctions/interfaces/int_nextpow2.h"
"src/c/elementaryFunctions/interfaces/int_gcd.h"
"src/c/elementaryFunctions/interfaces/int_isreal.h"
"src/c/elementaryFunctions/interfaces/int_asinh.h"
"src/c/elementaryFunctions/interfaces/int_atanh.h"
"src/c/elementaryFunctions/interfaces/int_sinh.h"
"src/c/elementaryFunctions/interfaces/int_tanh.h"
"src/c/elementaryFunctions/interfaces/int_sqrt.h"
"src/c/elementaryFunctions/interfaces/int_OpDotHat.h"
"src/c/elementaryFunctions/interfaces/int_OpHat.h"
"src/c/elementaryFunctions/interfaces/int_lnp1m1.h"
"src/c/elementaryFunctions/interfaces/int_round.h"
"src/c/elementaryFunctions/interfaces/int_log10.h"
"src/c/elementaryFunctions/interfaces/int_log1p.h"
"src/c/elementaryFunctions/interfaces/int_floor.h"
"src/c/elementaryFunctions/interfaces/int_exp10.h"
"src/c/elementaryFunctions/interfaces/int_cos.h"
"src/c/elementaryFunctions/interfaces/int_fix.h"
"src/c/elementaryFunctions/interfaces/int_exp.h"
"src/c/elementaryFunctions/interfaces/int_int.h"
"src/c/elementaryFunctions/interfaces/int_log.h"
"src/c/elementaryFunctions/interfaces/int_pow.h"
"src/c/elementaryFunctions/interfaces/int_sin.h"
"src/c/elementaryFunctions/interfaces/int_tan.h"
"src/c/elementaryFunctions/interfaces/int_acosh.h"
"src/c/elementaryFunctions/interfaces/int_acos.h"
"src/c/elementaryFunctions/interfaces/int_asin.h"
"src/c/elementaryFunctions/interfaces/int_atan.h"
"src/c/elementaryFunctions/interfaces/int_ceil.h"
"src/c/elementaryFunctions/interfaces/int_bitand.h"
"src/c/elementaryFunctions/interfaces/int_bitor.h"
"src/c/elementaryFunctions/interfaces/int_bitxor.h"
"src/c/elementaryFunctions/interfaces/int_bitcmp.h"
"src/c/elementaryFunctions/interfaces/int_bitset.h"
"src/c/elementaryFunctions/interfaces/int_bitget.h"
"src/c/elementaryFunctions/interfaces/int_linspace.h"
"src/c/elementaryFunctions/interfaces/int_logspace.h"
"src/c/elementaryFunctions/interfaces/int_cosh.h"
"src/c/elementaryFunctions/interfaces/int_uint8.h"
"src/c/elementaryFunctions/interfaces/int_int8.h"
"src/c/elementaryFunctions/interfaces/int_uint16.h"
"src/c/elementaryFunctions/interfaces/int_int16.h"
"src/c/elementaryFunctions/interfaces/int_acosd.h"
"src/c/elementaryFunctions/interfaces/int_acot.h"
"src/c/elementaryFunctions/interfaces/int_acotd.h"
"src/c/elementaryFunctions/interfaces/int_acoth.h"
"src/c/elementaryFunctions/interfaces/int_acsc.h"
"src/c/elementaryFunctions/interfaces/int_acscd.h"
"src/c/elementaryFunctions/interfaces/int_acsch.h"
"src/c/elementaryFunctions/interfaces/int_asec.h"
"src/c/elementaryFunctions/interfaces/int_asecd.h"
"src/c/elementaryFunctions/interfaces/int_asech.h"
"src/c/elementaryFunctions/interfaces/int_asind.h"
"src/c/elementaryFunctions/interfaces/int_atand.h"
"src/c/statisticsFunctions/interfaces/int_mean.h"
"src/c/statisticsFunctions/interfaces/int_meanf.h"
"src/c/statisticsFunctions/interfaces/int_stdevf.h"
"src/c/statisticsFunctions/interfaces/int_prod.h"
"src/c/statisticsFunctions/interfaces/int_variance.h"
"src/c/statisticsFunctions/interfaces/int_sum.h"
"src/c/operations/interfaces/int_OpEqual.h"
"src/c/operations/interfaces/int_OpLogNot.h"
"src/c/operations/interfaces/int_OpLogEq.h"
"src/c/operations/interfaces/int_OpLogNe.h"
"src/c/operations/interfaces/int_OpLogGt.h"
"src/c/operations/interfaces/int_OpLogGe.h"
"src/c/operations/interfaces/int_OpLogLt.h"
"src/c/operations/interfaces/int_OpLogLe.h"
"src/c/operations/interfaces/int_OpLogAnd.h"
"src/c/operations/interfaces/int_OpLogOr.h"
"src/c/operations/interfaces/int_OpDotStar.h"
"src/c/operations/interfaces/int_OpDotSlash.h"
"src/c/operations/interfaces/int_OpBackSlash.h"
"src/c/operations/interfaces/int_OpDotBackSlash.h"
"src/c/operations/interfaces/int_OpSlash.h"
"src/c/operations/interfaces/int_OpPlus.h"
"src/c/operations/interfaces/int_OpMinus.h"
"src/c/operations/interfaces/int_OpStar.h"
"src/c/operations/interfaces/int_OpExt.h"
"src/c/operations/interfaces/int_OpIns.h"
"src/c/string/interfaces/int_disp.h"
"src/c/string/interfaces/int_string.h"
"src/c/signalProcessing/interfaces/int_modk.h"
"src/c/signalProcessing/interfaces/int_idct.h"
"src/c/signalProcessing/interfaces/int_dct.h"
"src/c/signalProcessing/interfaces/int_ifft.h"
"src/c/signalProcessing/interfaces/int_lpc2cep.h"
"src/c/signalProcessing/interfaces/int_cepstrum.h"
"src/c/signalProcessing/interfaces/int_xcorr.h"
"src/c/signalProcessing/interfaces/int_convol.h"
"src/c/signalProcessing/interfaces/int_hilbert.h"
"src/c/signalProcessing/interfaces/int_levin.h"
"src/c/signalProcessing/interfaces/int_fftshift.h"
"src/c/signalProcessing/interfaces/int_fft.h"
"src/c/signalProcessing/interfaces/int_lev.h"
"src/c/implicitList/int_OpColon.h"
"src/c/differential_calculus/interfaces/int_ode.h"
"src/c/differential_calculus/interfaces/int_diffc.h"
"src/c/Files/interfaces/int_files.h"
"src/c/string/interfaces/int_convstr.h"
"src/c/string/interfaces/int_strsubst.h"
//"src/c/string/interfaces/int_strcmp.h"
"src/c/string/interfaces/int_strrev.h"
"src/c/string/interfaces/int_strrchr.h"
"src/c/elementaryFunctions/interfaces/int_dec2base.h"
"src/c/elementaryFunctions/interfaces/int_base2dec.h"
"src/c/elementaryFunctions/interfaces/int_dec2bin.h"
"src/c/elementaryFunctions/interfaces/int_dec2hex.h"
"src/c/elementaryFunctions/interfaces/int_dec2oct.h"
"src/c/elementaryFunctions/interfaces/int_oct2dec.h"
"src/c/elementaryFunctions/interfaces/int_hex2dec.h"
"src/c/elementaryFunctions/interfaces/int_bin2dec.h"
"src/c/elementaryFunctions/interfaces/int_cosd.h"
"src/c/elementaryFunctions/interfaces/int_cotd.h"
"src/c/elementaryFunctions/interfaces/int_coth.h"
"src/c/elementaryFunctions/interfaces/int_csc.h"
"src/c/elementaryFunctions/interfaces/int_cscd.h"
"src/c/elementaryFunctions/interfaces/int_csch.h"
"src/c/elementaryFunctions/interfaces/int_sec.h"
"src/c/elementaryFunctions/interfaces/int_secd.h"
"src/c/elementaryFunctions/interfaces/int_sech.h"
"src/c/elementaryFunctions/interfaces/int_float.h"
"src/c/elementaryFunctions/interfaces/int_factorial.h"
"src/c/elementaryFunctions/interfaces/int_primes.h"
"src/c/elementaryFunctions/interfaces/int_factor.h"
"src/c/CACSD/interfaces/int_syslin.h"
"src/c/CACSD/interfaces/int_lqr.h"
"src/c/CACSD/interfaces/int_lqe.h"
"src/c/CACSD/interfaces/int_obscont.h"
"src/c/linearAlgebra/interfaces/int_schur.h"
"src/c/linearAlgebra/interfaces/int_balanc.h"
"src/c/linearAlgebra/interfaces/int_rcond.h"];
//Interface files required for "Arduino" output
Arduino_interfaces = [
"src/c/scilab-arduino/interfaces/int_cmd_digital_out.h"
"src/c/scilab-arduino/interfaces/int_cmd_digital_in.h"
"src/c/scilab-arduino/interfaces/int_cmd_analog_out.h"
"src/c/scilab-arduino/interfaces/int_cmd_analog_in.h"
"src/c/scilab-arduino/interfaces/int_cmd_dcmotor.h"
"src/c/scilab-arduino/interfaces/int_cmd_servo.h"
"src/c/scilab-arduino/interfaces/int_sleep.h"
"src/c/scilab-arduino/interfaces/int_cmd_analog_in_volt.h"
"src/c/scilab-arduino/interfaces/int_cmd_analog_out_volt.h"
"src/c/scilab-arduino/interfaces/int_cmd_i2c_dev.h"
"src/c/scilab-arduino/interfaces/int_cmd_i2c_write.h"
"src/c/scilab-arduino/interfaces/int_cmd_i2c_read.h"
"src/c/scilab-arduino/interfaces/int_cmd_i2c_write_register.h"
"src/c/scilab-arduino/interfaces/int_cmd_i2c_read_register.h"];
//Interface files required for "AVR" output
AVR_interfaces = [
"src/c/hardware/avr/interfaces/int_AVRPeripheralGPIO.h"
"src/c/hardware/avr/interfaces/int_AVRPeripheralADC.h"
"src/c/hardware/avr/interfaces/int_AVRPeripheralPWM.h"
"src/c/hardware/avr/interfaces/int_AVRUtil.h"
"src/c/hardware/avr/interfaces/int_AVRPeripheralTimer.h"
"src/c/hardware/avr/interfaces/int_AVRPeripheralUART.h"
];
RPI_interfaces = [
"src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h"
"src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h"
"src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h"
"src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h"
"src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h"
"src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h"
];
OpenCV_interfaces = [
"src/c/imageProcessing/interfaces/int_cvcore.hpp"
"src/c/imageProcessing/interfaces/int_cvhighgui.hpp"
"src/c/imageProcessing/interfaces/int_cvimgproc.hpp"];
if Target == "StandAlone"
allInterfaces = Standalone_interfaces;
elseif Target == "Arduino"
allInterfaces = cat(1,Standalone_interfaces, Arduino_interfaces);
elseif Target == "AVR"
allInterfaces = cat(1,Standalone_interfaces, AVR_interfaces);
elseif Target == "RPi"
allInterfaces = cat(1,Standalone_interfaces, RPI_interfaces);
end
if (SharedInfo.OpenCVUsed == %T)
allInterfaces = cat(1,allInterfaces,OpenCV_interfaces)
end
endfunction
|