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/CCodeGeneration/C_InitHeader.sci | |
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/CCodeGeneration/C_InitHeader.sci')
-rw-r--r-- | macros/CCodeGeneration/C_InitHeader.sci | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macros/CCodeGeneration/C_InitHeader.sci b/macros/CCodeGeneration/C_InitHeader.sci index 41e13e4..1c2efd6 100644 --- a/macros/CCodeGeneration/C_InitHeader.sci +++ b/macros/CCodeGeneration/C_InitHeader.sci @@ -1,4 +1,4 @@ -function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName) +function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName,OutFormat) // function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName) // ----------------------------------------------------------------- // //NUT: add description here @@ -51,6 +51,12 @@ PrintStringInfo('extern ""C"" {',HeaderFileName,'file','y'); PrintStringInfo('#endif',HeaderFileName,'file','y'); PrintStringInfo('/*',HeaderFileName,'file','y'); PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); +PrintStringInfo('** ----- Target ------ ',HeaderFileName,'file','y'); +PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); +PrintStringInfo('*/',HeaderFileName,'file','y'); +PrintStringInfo('# define ' + OutFormat + '1' ,HeaderFileName,'file','y'); +PrintStringInfo('/*',HeaderFileName,'file','y'); +PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); PrintStringInfo('** --- Prototypes. --- ',HeaderFileName,'file','y'); PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); PrintStringInfo('*/',HeaderFileName,'file','y'); |