diff options
author | siddhu8990 | 2015-12-17 14:48:36 +0530 |
---|---|---|
committer | siddhu8990 | 2015-12-17 14:48:36 +0530 |
commit | 4e3eef82b0aa598761e087925fabe835496ab3bc (patch) | |
tree | 5b046acee2453c83fc1d776221373c3992147e7a /macros/ToolInitialization/INIT_SCI2C.sci | |
parent | 96b51a5ded447676d493be9721e4480065a5ae7e (diff) | |
download | scilab2c-4e3eef82b0aa598761e087925fabe835496ab3bc.tar.gz scilab2c-4e3eef82b0aa598761e087925fabe835496ab3bc.tar.bz2 scilab2c-4e3eef82b0aa598761e087925fabe835496ab3bc.zip |
Code generation for Arduino changed. DC motor added to Arduino
Diffstat (limited to 'macros/ToolInitialization/INIT_SCI2C.sci')
-rw-r--r-- | macros/ToolInitialization/INIT_SCI2C.sci | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/ToolInitialization/INIT_SCI2C.sci b/macros/ToolInitialization/INIT_SCI2C.sci index 0340d6ff..6dde05de 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
|