diff options
author | siddhu8990 | 2015-11-28 11:01:40 +0530 |
---|---|---|
committer | siddhu8990 | 2015-11-28 11:01:40 +0530 |
commit | 88c02bb9dad7d955676fe44f6595f996bde3f07e (patch) | |
tree | e8c018a5a9535b2bd06356d4c5abf0368bbe9845 /macros/ASTManagement | |
parent | dd343609eabf4afcee2aa8eeeda3a383333d30e5 (diff) | |
download | Scilab2C_fossee_old-88c02bb9dad7d955676fe44f6595f996bde3f07e.tar.gz Scilab2C_fossee_old-88c02bb9dad7d955676fe44f6595f996bde3f07e.tar.bz2 Scilab2C_fossee_old-88c02bb9dad7d955676fe44f6595f996bde3f07e.zip |
Intermediate commit aith support added for AVR (GPIO,ADC). Does not support other targets.
Diffstat (limited to 'macros/ASTManagement')
-rw-r--r-- | macros/ASTManagement/AST_HandleEndGenFun.bin | bin | 77644 -> 78824 bytes | |||
-rw-r--r-- | macros/ASTManagement/AST_HandleEndGenFun.sci | 18 | ||||
-rw-r--r-- | macros/ASTManagement/lib | bin | 1468 -> 1644 bytes | |||
-rw-r--r-- | macros/ASTManagement/names | 68 |
4 files changed, 46 insertions, 40 deletions
diff --git a/macros/ASTManagement/AST_HandleEndGenFun.bin b/macros/ASTManagement/AST_HandleEndGenFun.bin Binary files differindex 12f738d..8b3ce65 100644 --- a/macros/ASTManagement/AST_HandleEndGenFun.bin +++ b/macros/ASTManagement/AST_HandleEndGenFun.bin diff --git a/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci index 69fbb82..f9515cd 100644 --- a/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/macros/ASTManagement/AST_HandleEndGenFun.sci @@ -40,12 +40,13 @@ SCI2CNInArgCheck(argn(2),3,3); // ----------------------- // --- Initialization. --- // ----------------------- -nxtscifunname = SharedInfo.NextSCIFunName; -nxtscifunnumber = SharedInfo.NextSCIFunNumber; -ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; -Pass1HeaderFileName = FileInfo.Funct(nxtscifunnumber).Pass1HeaderFileName; -FunInfoDatDir = FileInfo.FunctionList.FunInfoDatDir; -CGblDeclarFileName = FileInfo.Funct(nxtscifunnumber).CGblDeclarFileName; +nxtscifunname = SharedInfo.NextSCIFunName; +nxtscifunnumber = SharedInfo.NextSCIFunNumber; +ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; +Pass1HeaderFileName = FileInfo.Funct(nxtscifunnumber).Pass1HeaderFileName; +FunInfoDatDir = FileInfo.FunctionList.FunInfoDatDir; +CGblDeclarFileName = FileInfo.Funct(nxtscifunnumber).CGblDeclarFileName; +PeripheralInitListFile = FileInfo.PeripheralInitListFile; Flag_FunAlreadyCalled = 0; // #RNU_RES_B @@ -101,6 +102,11 @@ elseif (ASTFunName == 'global') PrintStringInfo(' ',ReportFileName,'both','y'); error(9999, 'SCI2CERROR: Unexpected number of output arguments for global function.'); end +//elseif(IsAVRSupportFunction(ASTFunName)) + //Get the peripheral from function name and input arguements, insert it in + //list of used peripherals. + // PeripheralUsed=GetPeripheral(ASTFunName,InArg); + // InsertPeripheralInList(PeripheralUsed,PeripheralInitListFile); end // #RNU_RES_B diff --git a/macros/ASTManagement/lib b/macros/ASTManagement/lib Binary files differindex ccecc91..4cd697c 100644 --- a/macros/ASTManagement/lib +++ b/macros/ASTManagement/lib diff --git a/macros/ASTManagement/names b/macros/ASTManagement/names index 3e6bfa8..7f6d053 100644 --- a/macros/ASTManagement/names +++ b/macros/ASTManagement/names @@ -1,44 +1,44 @@ -AST_ParseOperStruct -AST_HandleEOL -AST_ReadEqualRhsNames -AST_HandleFor +%comment_string +%cste_string +%equal_string +%for_string +%funcall_string +%ifthenel_string +%operatio_string +%program_p +%program_string %variable_string -AST_GetASTFile -AST_HandleEndFor +%while_string AST2Ccode -AST_GetFuncallPrm -AST_HandleEndGenFun +AST_CheckCommonInOutArgs +AST_CheckLastFunc AST_CheckLineLength -SciFile2ASTFile AST_CheckPrecSpecifier -%operatio_string -AST_HandleIfElse +AST_DisplayStack +AST_ExtractNameAndScope +AST_GetASTFile +AST_GetFuncallPrm +AST_GetPrecAndLhsArg +AST_HandleEOL +AST_HandleEndFor +AST_HandleEndGenFun +AST_HandleEndProgram AST_HandleEndWhile -AST_CheckCommonInOutArgs -AST_HandleWhileStatem +AST_HandleFor AST_HandleForStatem -%ifthenel_string +AST_HandleHeader +AST_HandleIfElse +AST_HandleWhileExpr +AST_HandleWhileStatem AST_ParseEqualStruct -%while_string -AST_GetPrecAndLhsArg -AST_ExtractNameAndScope -objectlist2string -%comment_string +AST_ParseFuncallStruct +AST_ParseIfExprStruct +AST_ParseOperStruct AST_PopASTStack -AST_CheckLastFunc -GenOutArgNames -%equal_string -AST_ReadASTHeader -%cste_string -AST_HandleEndProgram AST_PushASTStack -AST_DisplayStack -%funcall_string -AST_HandleWhileExpr -AST_ParseFuncallStruct +AST_ReadASTHeader +AST_ReadEqualRhsNames +GenOutArgNames Operator2FunName -%program_p -AST_HandleHeader -AST_ParseIfExprStruct -%program_string -%for_string +SciFile2ASTFile +objectlist2string |