summaryrefslogtreecommitdiff
path: root/2.3-1/macros/SymbolTable
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/macros/SymbolTable')
-rw-r--r--2.3-1/macros/SymbolTable/ST_AnalyzeScope.binbin16792 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Del.binbin4552 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_FindPos.binbin5104 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Get.binbin8108 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetInArgInfo.binbin37384 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci15
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetSymbolInfo.binbin13320 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_InsForCntVars.binbin25508 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_InsOutArg.binbin33516 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_InsOutArg.sci2
-rw-r--r--2.3-1/macros/SymbolTable/ST_Load.binbin4288 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_MatchSymbol.binbin9112 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Save.binbin5440 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Set.binbin7048 -> 0 bytes
-rw-r--r--2.3-1/macros/SymbolTable/libbin684 -> 890 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
deleted file mode 100644
index 7e727a04..00000000
--- a/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Del.bin b/2.3-1/macros/SymbolTable/ST_Del.bin
deleted file mode 100644
index c26e2e58..00000000
--- a/2.3-1/macros/SymbolTable/ST_Del.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_FindPos.bin b/2.3-1/macros/SymbolTable/ST_FindPos.bin
deleted file mode 100644
index c7003f30..00000000
--- a/2.3-1/macros/SymbolTable/ST_FindPos.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Get.bin b/2.3-1/macros/SymbolTable/ST_Get.bin
deleted file mode 100644
index 512e72b7..00000000
--- a/2.3-1/macros/SymbolTable/ST_Get.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin
deleted file mode 100644
index 6eb16e37..00000000
--- a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin
+++ /dev/null
Binary files differ
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
deleted file mode 100644
index b8a7cf74..00000000
--- a/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin
deleted file mode 100644
index 12882fc7..00000000
--- a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin
deleted file mode 100644
index ec9970cb..00000000
--- a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin
+++ /dev/null
Binary files differ
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
deleted file mode 100644
index f158c2b6..00000000
--- a/2.3-1/macros/SymbolTable/ST_Load.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin
deleted file mode 100644
index 278560d0..00000000
--- a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Save.bin b/2.3-1/macros/SymbolTable/ST_Save.bin
deleted file mode 100644
index 4aa50a20..00000000
--- a/2.3-1/macros/SymbolTable/ST_Save.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Set.bin b/2.3-1/macros/SymbolTable/ST_Set.bin
deleted file mode 100644
index cbd26274..00000000
--- a/2.3-1/macros/SymbolTable/ST_Set.bin
+++ /dev/null
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib
index 102c8c96..ad10f776 100644
--- a/2.3-1/macros/SymbolTable/lib
+++ b/2.3-1/macros/SymbolTable/lib
Binary files differ