From 3121a1f5a8203bfd14d46f71930ac5cd22afdf7d Mon Sep 17 00:00:00 2001 From: yash1112 Date: Mon, 19 Jun 2017 05:40:46 +0530 Subject: 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 --- 2.3-1/macros/runsci2c.sci | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '2.3-1/macros/runsci2c.sci') 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); -- cgit