diff options
author | imushir | 2015-12-28 16:08:36 +0530 |
---|---|---|
committer | imushir | 2015-12-28 16:08:36 +0530 |
commit | a5ffe09fca6b245c7af5a1072a124492cfc3f1b9 (patch) | |
tree | b7a3d16b8b4b5eeb67a5313032082a371cf76b5b /2.3-1/macros/ToolInitialization/INIT_SCI2C.sci | |
parent | b78d9ee3ae4c216c3b6bef13ba5637833381f529 (diff) | |
parent | 9bee3723b675d7ab65b757d38cf9c5938a63531a (diff) | |
download | Scilab2C-a5ffe09fca6b245c7af5a1072a124492cfc3f1b9.tar.gz Scilab2C-a5ffe09fca6b245c7af5a1072a124492cfc3f1b9.tar.bz2 Scilab2C-a5ffe09fca6b245c7af5a1072a124492cfc3f1b9.zip |
Merge branch 'master' of https://github.com/siddhu8990/Scilab2C
Fetching master
Diffstat (limited to '2.3-1/macros/ToolInitialization/INIT_SCI2C.sci')
-rw-r--r-- | 2.3-1/macros/ToolInitialization/INIT_SCI2C.sci | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/2.3-1/macros/ToolInitialization/INIT_SCI2C.sci b/2.3-1/macros/ToolInitialization/INIT_SCI2C.sci index 0340d6ff..6dde05de 100644 --- a/2.3-1/macros/ToolInitialization/INIT_SCI2C.sci +++ b/2.3-1/macros/ToolInitialization/INIT_SCI2C.sci @@ -147,8 +147,13 @@ anscounter = 0; //--------------------------------------------
//---Hardware related initialisation----------
//--------------------------------------------
-PeripheralList = list();
-save(FileInfo.PeripheralInitListFile, 'PeripheralList');
+if (OutFormat == 'AVR')
+ PeripheralList = list();
+ save(FileInfo.PeripheralInitListFile, 'PeripheralList');
+elseif (OutFormat == 'Arduino')
+ SetupList = list();
+ save(FileInfo.SetupListFile, 'SetupList');
+end
endfunction
// #RNU_RES_B
|