diff options
author | yash1112 | 2017-06-19 05:40:46 +0530 |
---|---|---|
committer | yash1112 | 2017-06-19 05:40:46 +0530 |
commit | 3121a1f5a8203bfd14d46f71930ac5cd22afdf7d (patch) | |
tree | 42fc74d21d1506f2e69359f4083e2d17b4328394 /2.3-1/macros/SymbolTable | |
parent | 02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff) | |
download | Scilab2C-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/SymbolTable')
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin | bin | 0 -> 16792 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Del.bin | bin | 0 -> 4552 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_FindPos.bin | bin | 0 -> 5104 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Get.bin | bin | 0 -> 8108 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin | bin | 0 -> 39244 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci | 15 | ||||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin | bin | 0 -> 13320 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_InsForCntVars.bin | bin | 0 -> 25508 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_InsOutArg.bin | bin | 0 -> 33508 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_InsOutArg.sci | 2 | ||||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Load.bin | bin | 0 -> 4288 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_MatchSymbol.bin | bin | 0 -> 9112 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Save.bin | bin | 0 -> 5440 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Set.bin | bin | 0 -> 7048 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/lib | bin | 1199 -> 752 bytes |
15 files changed, 13 insertions, 4 deletions
diff --git a/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin Binary files differnew file mode 100644 index 00000000..7e727a04 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin diff --git a/2.3-1/macros/SymbolTable/ST_Del.bin b/2.3-1/macros/SymbolTable/ST_Del.bin Binary files differnew file mode 100644 index 00000000..c26e2e58 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_Del.bin diff --git a/2.3-1/macros/SymbolTable/ST_FindPos.bin b/2.3-1/macros/SymbolTable/ST_FindPos.bin Binary files differnew file mode 100644 index 00000000..c7003f30 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_FindPos.bin diff --git a/2.3-1/macros/SymbolTable/ST_Get.bin b/2.3-1/macros/SymbolTable/ST_Get.bin Binary files differnew file mode 100644 index 00000000..512e72b7 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_Get.bin diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin Binary files differnew file mode 100644 index 00000000..97512b3a --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci index 9f5cbd4e..4c85408c 100644 --- a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci +++ b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci @@ -49,13 +49,13 @@ for cntinarg = 1:NInArg tmpname = InArg(cntinarg).Name;
tmpscope = InArg(cntinarg).Scope;
lengthNumber = length('Number_');
- if (part(tmpscope,1:lengthNumber) == 'Number_')
+ if (part(tmpscope,1:lengthNumber) == 'Number_')
// #RNU_RES_B
PrintStringInfo('Input Argument '+string(cntinarg)+' is a number: '+tmpname+'.',FileInfo.Funct(nxtscifunnumber).ReportFileName,'file');
// #RNU_RES_E
UpdatedInArg(cntinarg).Type = part(tmpscope,lengthNumber+1:lengthNumber+1);
if (UpdatedInArg(cntinarg).Type == 'x')
- UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default.
+ UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default
elseif (UpdatedInArg(cntinarg).Type == 'X')
if (SharedInfo.DefaultPrecision == 's')
UpdatedInArg(cntinarg).Type = 'c'; // It is the default.
@@ -101,6 +101,17 @@ for cntinarg = 1:NInArg UpdatedInArg(cntinarg).FindLike = 0;
UpdatedInArg(cntinarg).Dimension = 0;
UpdatedInArg(cntinarg).Scope = 'Number';
+ if((ASTFunName == 'cmd_analog_in' | ASTFunName == 'cmd_analog_in_volt' ) & cntinarg == 2)
+ numvalue = eval(tmpname);
+ if (SharedInfo.Board_name == 'mega' | SharedInfo.Board_name == 'mega2560') then
+ tmpname = string(numvalue + 54)
+ UpdatedInArg(cntinarg).Value = 54 + numvalue;
+ else
+ tmpname = string(numvalue + 14)
+ UpdatedInArg(cntinarg).Value = 14 + numvalue;
+ end
+ UpdatedInArg(cntinarg).Name = tmpname; // Change the name.
+ end
elseif (tmpscope == 'String')
// #RNU_RES_B
diff --git a/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin b/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin Binary files differnew file mode 100644 index 00000000..b8a7cf74 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin diff --git a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin Binary files differnew file mode 100644 index 00000000..12882fc7 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin Binary files differnew file mode 100644 index 00000000..7571456a --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.sci b/2.3-1/macros/SymbolTable/ST_InsOutArg.sci index f4958ff7..fd6b426c 100644 --- a/2.3-1/macros/SymbolTable/ST_InsOutArg.sci +++ b/2.3-1/macros/SymbolTable/ST_InsOutArg.sci @@ -47,8 +47,6 @@ PrintStringInfo('***Putting output arguments in the symbol table***',ReportFileN // ---------------------------
// --- End Initialization. ---
// ---------------------------
-
-
for counteroutput = 1:NOutArg
// #RNU_RES_B
PrintStringInfo(' Symbol ""'+OutArg(counteroutput).Name+'""',ReportFileName,'file','y','n');
diff --git a/2.3-1/macros/SymbolTable/ST_Load.bin b/2.3-1/macros/SymbolTable/ST_Load.bin Binary files differnew file mode 100644 index 00000000..f158c2b6 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_Load.bin diff --git a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin Binary files differnew file mode 100644 index 00000000..278560d0 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin diff --git a/2.3-1/macros/SymbolTable/ST_Save.bin b/2.3-1/macros/SymbolTable/ST_Save.bin Binary files differnew file mode 100644 index 00000000..4aa50a20 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_Save.bin diff --git a/2.3-1/macros/SymbolTable/ST_Set.bin b/2.3-1/macros/SymbolTable/ST_Set.bin Binary files differnew file mode 100644 index 00000000..cbd26274 --- /dev/null +++ b/2.3-1/macros/SymbolTable/ST_Set.bin diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib Binary files differindex dbc603e2..59ce4653 100644 --- a/2.3-1/macros/SymbolTable/lib +++ b/2.3-1/macros/SymbolTable/lib |