summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration
diff options
context:
space:
mode:
authoryash11122017-06-19 05:40:46 +0530
committeryash11122017-06-19 05:40:46 +0530
commit3121a1f5a8203bfd14d46f71930ac5cd22afdf7d (patch)
tree42fc74d21d1506f2e69359f4083e2d17b4328394 /2.3-1/macros/CCodeGeneration
parent02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff)
downloadScilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.gz
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.bz2
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.zip
1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI
Diffstat (limited to '2.3-1/macros/CCodeGeneration')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_FinalizeCode.binbin0 -> 18232 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_ForExpression.binbin0 -> 32208 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_Funcall.binbin0 -> 73176 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenDeclarations.binbin0 -> 22004 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateFunName.binbin0 -> 7776 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.binbin0 -> 17232 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateMakefile.binbin0 -> 32632 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.binbin0 -> 29868 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.binbin0 -> 3104 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci12
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.binbin0 -> 1936 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_IfElseBlocks.binbin0 -> 8516 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_IfExpression.binbin0 -> 10612 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_IndentBlanks.binbin0 -> 3184 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_InitHeader.binbin0 -> 14140 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.binbin0 -> 12996 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_SCI2CHeader.binbin0 -> 7268 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_Type.binbin0 -> 6816 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/C_WhileExpression.binbin0 -> 13196 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/GenCFunDatFiles.binbin0 -> 9348 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/GetClsFileName.binbin0 -> 13340 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/GetSymbolDimension.binbin0 -> 8944 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/GetWhileCondVariable.binbin0 -> 10228 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.binbin0 -> 22776 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.binbin0 -> 7400 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/libbin2449 -> 1044 bytes
-rw-r--r--2.3-1/macros/CCodeGeneration/names1
27 files changed, 13 insertions, 0 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin b/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin
new file mode 100644
index 00000000..b4005914
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_ForExpression.bin b/2.3-1/macros/CCodeGeneration/C_ForExpression.bin
new file mode 100644
index 00000000..1c3f6747
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_ForExpression.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_Funcall.bin b/2.3-1/macros/CCodeGeneration/C_Funcall.bin
new file mode 100644
index 00000000..80fda7c4
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_Funcall.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin b/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin
new file mode 100644
index 00000000..c3b36009
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin b/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin
new file mode 100644
index 00000000..1b723f16
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin b/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin
new file mode 100644
index 00000000..587c1547
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin
new file mode 100644
index 00000000..cea86411
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin
new file mode 100644
index 00000000..838c674e
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin
new file mode 100644
index 00000000..ce25219f
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci
new file mode 100644
index 00000000..b43eb442
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci
@@ -0,0 +1,12 @@
+function C_GenerateMkfle_arduino(FileInfo,SharedInfo)
+
+ PrintStringInfo('ARDUINO_DIR = /usr/share/arduino',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('ARDMK_DIR = /usr/share/arduino',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('AVR_TOOLS_DIR = /usr',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('BOARD_TAG = ' + SharedInfo.Board_name ,FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('USER_LIB_PATH = ../',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('ARDUINO_LIBS = ../src/c ../includes ../interfaces ../ Wire',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('ARDUINO_PORT = /dev/ttyACM0',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('include /usr/share/arduino/Arduino.mk',FileInfo.MakefileFilename,'file','y','y');
+
+endfunction
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin b/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin
new file mode 100644
index 00000000..2e02cae4
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin b/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin
new file mode 100644
index 00000000..332e89bf
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_IfExpression.bin b/2.3-1/macros/CCodeGeneration/C_IfExpression.bin
new file mode 100644
index 00000000..c6cda7bd
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_IfExpression.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin b/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin
new file mode 100644
index 00000000..77bfaebc
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_InitHeader.bin b/2.3-1/macros/CCodeGeneration/C_InitHeader.bin
new file mode 100644
index 00000000..567822c0
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_InitHeader.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin b/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin
new file mode 100644
index 00000000..443ad3c1
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin b/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin
new file mode 100644
index 00000000..1d3e6182
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_Type.bin b/2.3-1/macros/CCodeGeneration/C_Type.bin
new file mode 100644
index 00000000..7b5bf444
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_Type.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin b/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin
new file mode 100644
index 00000000..cff8f38d
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin b/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin
new file mode 100644
index 00000000..6a374f5b
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/GetClsFileName.bin b/2.3-1/macros/CCodeGeneration/GetClsFileName.bin
new file mode 100644
index 00000000..30b25713
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/GetClsFileName.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin b/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin
new file mode 100644
index 00000000..5c73f435
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin b/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin
new file mode 100644
index 00000000..6815fb4b
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin
new file mode 100644
index 00000000..084ab085
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin b/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin
new file mode 100644
index 00000000..95fe5611
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/lib b/2.3-1/macros/CCodeGeneration/lib
index 2db4b8c8..d0cb0a22 100644
--- a/2.3-1/macros/CCodeGeneration/lib
+++ b/2.3-1/macros/CCodeGeneration/lib
Binary files differ
diff --git a/2.3-1/macros/CCodeGeneration/names b/2.3-1/macros/CCodeGeneration/names
index efbb400a..5311c7fd 100644
--- a/2.3-1/macros/CCodeGeneration/names
+++ b/2.3-1/macros/CCodeGeneration/names
@@ -6,6 +6,7 @@ C_GenerateFunName
C_GenerateLaunchScript
C_GenerateMakefile
C_GenerateMakefile_msvc
+C_GenerateMkfle_arduino
C_GenerateSCI2CHeader
C_IfElseBlocks
C_IfExpression