summaryrefslogtreecommitdiff
path: root/macros/findDeps/getAllInterfaces.sci
diff options
context:
space:
mode:
authorsiddhu89902015-09-28 14:10:44 +0530
committersiddhu89902015-09-28 14:10:44 +0530
commitdd343609eabf4afcee2aa8eeeda3a383333d30e5 (patch)
treed859386d929a2f814ec3bf68c50b1df8fdf1f111 /macros/findDeps/getAllInterfaces.sci
parente929ae3e4254caac2d29a832ee75d4ed8ae4a380 (diff)
downloadscilab2c-dd343609eabf4afcee2aa8eeeda3a383333d30e5.tar.gz
scilab2c-dd343609eabf4afcee2aa8eeeda3a383333d30e5.tar.bz2
scilab2c-dd343609eabf4afcee2aa8eeeda3a383333d30e5.zip
Extension compatible with both - standalone and Arduino outputs.
Diffstat (limited to 'macros/findDeps/getAllInterfaces.sci')
-rw-r--r--macros/findDeps/getAllInterfaces.sci17
1 files changed, 14 insertions, 3 deletions
diff --git a/macros/findDeps/getAllInterfaces.sci b/macros/findDeps/getAllInterfaces.sci
index b32f9d5f..b32bb652 100644
--- a/macros/findDeps/getAllInterfaces.sci
+++ b/macros/findDeps/getAllInterfaces.sci
@@ -10,8 +10,9 @@
//
//
-function allInterfaces = getAllInterfaces()
- allInterfaces = [
+function allInterfaces = getAllInterfaces(OutFormat)
+ //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"
@@ -118,10 +119,20 @@ function allInterfaces = getAllInterfaces()
"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/implicitList/int_OpColon.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_sleep.h"];
+
+ if OutFormat == "StandAlone"
+ allInterfaces = Standalone_interfaces;
+ elseif OutFormat == "Arduino"
+ allInterfaces = cat(1,Standalone_interfaces, Arduino_interfaces);
+ end
+
endfunction