summaryrefslogtreecommitdiff
path: root/macros/ToolInitialization/INIT_SCI2C.sci
diff options
context:
space:
mode:
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