summaryrefslogtreecommitdiff
path: root/macros/ToolInitialization/INIT_SCI2C.sci
diff options
context:
space:
mode:
authorimushir2015-12-28 16:08:36 +0530
committerimushir2015-12-28 16:08:36 +0530
commiteb760e0368b6be3bc0f0a7f076bc74d25df0df62 (patch)
tree64d0fdc06c92478f9e15dd2b6def6fe4b369383b /macros/ToolInitialization/INIT_SCI2C.sci
parentb8c97a6580ea62ca9480504e66be2b2f5b1dc2ef (diff)
parentd166736e0eb384156d30bcea45711d4c8d474ee1 (diff)
downloadScilab2C_fossee_old-eb760e0368b6be3bc0f0a7f076bc74d25df0df62.tar.gz
Scilab2C_fossee_old-eb760e0368b6be3bc0f0a7f076bc74d25df0df62.tar.bz2
Scilab2C_fossee_old-eb760e0368b6be3bc0f0a7f076bc74d25df0df62.zip
Merge branch 'master' of https://github.com/siddhu8990/Scilab2C
Fetching master
Diffstat (limited to 'macros/ToolInitialization/INIT_SCI2C.sci')
-rw-r--r--macros/ToolInitialization/INIT_SCI2C.sci9
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/ToolInitialization/INIT_SCI2C.sci b/macros/ToolInitialization/INIT_SCI2C.sci
index 0340d6f..6dde05d 100644
--- a/macros/ToolInitialization/INIT_SCI2C.sci
+++ b/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