diff options
author | siddhu8990 | 2015-12-17 14:48:36 +0530 |
---|---|---|
committer | siddhu8990 | 2015-12-17 14:48:36 +0530 |
commit | 02f2862023bb34146f6a0a96c2795bebe97e7c47 (patch) | |
tree | 9d2075243dcba13e417edb0929846f49b03aeac3 /2.3-1/macros/ToolInitialization/INIT_SCI2C.sci | |
parent | eac39cdc77ad5fdaf7b245cbce5c92f105ac75bf (diff) | |
download | Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.tar.gz Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.tar.bz2 Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.zip |
Code generation for Arduino changed. DC motor added to Arduino
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
|