summaryrefslogtreecommitdiff
path: root/2.3-1/macros/runsci2c.sci
diff options
context:
space:
mode:
authoryash11122017-06-19 05:40:46 +0530
committeryash11122017-06-19 05:40:46 +0530
commit3121a1f5a8203bfd14d46f71930ac5cd22afdf7d (patch)
tree42fc74d21d1506f2e69359f4083e2d17b4328394 /2.3-1/macros/runsci2c.sci
parent02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff)
downloadScilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.gz
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.bz2
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.zip
1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI
Diffstat (limited to '2.3-1/macros/runsci2c.sci')
-rw-r--r--2.3-1/macros/runsci2c.sci6
1 files changed, 4 insertions, 2 deletions
diff --git a/2.3-1/macros/runsci2c.sci b/2.3-1/macros/runsci2c.sci
index eb32a4b5..f05cb83d 100644
--- a/2.3-1/macros/runsci2c.sci
+++ b/2.3-1/macros/runsci2c.sci
@@ -1,4 +1,4 @@
-function runsci2c(UserScilabMainFile, UserSciFilesPaths, SCI2COutputPath, Runmode, BuildTool,Target)
+function runsci2c(UserScilabMainFile, UserSciFilesPaths, SCI2COutputPath, Runmode, BuildTool,Target,Board_name)
// function runsci2c(SCI2CInputPrmFile)
// -----------------------------------------------------------------
// === hArtes/PoliBa/GAP SCI2C tool ===
@@ -51,7 +51,7 @@ disp(RunSci2CMainDir);
// --- Initialize the SCI2C tool directories and files. ---
[FileInfoDatFile,SharedInfoDatFile] = INIT_SCI2C(UserScilabMainFile, ...
- UserSciFilesPaths, SCI2COutputPath, RunMode, Target);
+ UserSciFilesPaths, SCI2COutputPath, RunMode, Target,Board_name);
// -- Load FileInfo and SharedInfo
load(SharedInfoDatFile,'SharedInfo');
@@ -177,6 +177,8 @@ if (Target == 'Arduino')
//disp("Copying "+arduinoFiles(i)+" in "+SCI2COutputPath+"/arduino/sci2carduino");
copyfile(arduinoFiles(i), SCI2COutputPath+"/arduino/sci2c_arduino/");
end
+ C_GenerateMkfle_arduino(FileInfo,SharedInfo);
+ movefile(FileInfo.MakefileFilename, SCI2COutputPath+"/arduino/sci2c_arduino/");
elseif (Target == 'AVR')
AVRFile = SCI2CHOME + "/" + "src/c/hardware/avr/default_files/Makefile";
copyfile(AVRFile, SCI2COutputPath);