From 3121a1f5a8203bfd14d46f71930ac5cd22afdf7d Mon Sep 17 00:00:00 2001 From: yash1112 Date: Mon, 19 Jun 2017 05:40:46 +0530 Subject: 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 --- 2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin | Bin 0 -> 18232 bytes 2.3-1/macros/CCodeGeneration/C_ForExpression.bin | Bin 0 -> 32208 bytes 2.3-1/macros/CCodeGeneration/C_Funcall.bin | Bin 0 -> 73176 bytes 2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin | Bin 0 -> 22004 bytes 2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin | Bin 0 -> 7776 bytes .../macros/CCodeGeneration/C_GenerateLaunchScript.bin | Bin 0 -> 17232 bytes 2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin | Bin 0 -> 32632 bytes .../CCodeGeneration/C_GenerateMakefile_msvc.bin | Bin 0 -> 29868 bytes .../CCodeGeneration/C_GenerateMkfle_arduino.bin | Bin 0 -> 3104 bytes .../CCodeGeneration/C_GenerateMkfle_arduino.sci | 12 ++++++++++++ .../macros/CCodeGeneration/C_GenerateSCI2CHeader.bin | Bin 0 -> 1936 bytes 2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin | Bin 0 -> 8516 bytes 2.3-1/macros/CCodeGeneration/C_IfExpression.bin | Bin 0 -> 10612 bytes 2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin | Bin 0 -> 3184 bytes 2.3-1/macros/CCodeGeneration/C_InitHeader.bin | Bin 0 -> 14140 bytes .../macros/CCodeGeneration/C_MemAllocOutTempVars.bin | Bin 0 -> 12996 bytes 2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin | Bin 0 -> 7268 bytes 2.3-1/macros/CCodeGeneration/C_Type.bin | Bin 0 -> 6816 bytes 2.3-1/macros/CCodeGeneration/C_WhileExpression.bin | Bin 0 -> 13196 bytes 2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin | Bin 0 -> 9348 bytes 2.3-1/macros/CCodeGeneration/GetClsFileName.bin | Bin 0 -> 13340 bytes 2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin | Bin 0 -> 8944 bytes 2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin | Bin 0 -> 10228 bytes 2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin | Bin 0 -> 22776 bytes 2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin | Bin 0 -> 7400 bytes 2.3-1/macros/CCodeGeneration/lib | Bin 2449 -> 1044 bytes 2.3-1/macros/CCodeGeneration/names | 1 + 27 files changed, 13 insertions(+) create mode 100644 2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_ForExpression.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_Funcall.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci create mode 100644 2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_IfExpression.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_InitHeader.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_Type.bin create mode 100644 2.3-1/macros/CCodeGeneration/C_WhileExpression.bin create mode 100644 2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin create mode 100644 2.3-1/macros/CCodeGeneration/GetClsFileName.bin create mode 100644 2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin create mode 100644 2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin create mode 100644 2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin create mode 100644 2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin (limited to '2.3-1/macros/CCodeGeneration') 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_ForExpression.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_Funcall.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_IfExpression.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_InitHeader.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_Type.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/GetClsFileName.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin 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 Binary files /dev/null and b/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin differ diff --git a/2.3-1/macros/CCodeGeneration/lib b/2.3-1/macros/CCodeGeneration/lib index 2db4b8c8..d0cb0a22 100644 Binary files a/2.3-1/macros/CCodeGeneration/lib and b/2.3-1/macros/CCodeGeneration/lib 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 -- cgit