summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
diff options
context:
space:
mode:
authorsiddhu89902015-11-28 11:01:40 +0530
committersiddhu89902015-11-28 11:01:40 +0530
commit128638e88ce6d8414c9e1061faa96008be9bcda5 (patch)
treec38d4dbbed3ee4f3e71f263693d408e8bee519bc /2.3-1/macros/CCodeGeneration/C_InitHeader.sci
parent3bcc8ce62560f36eaaab0e064b169b0118f354f3 (diff)
downloadScilab2C-128638e88ce6d8414c9e1061faa96008be9bcda5.tar.gz
Scilab2C-128638e88ce6d8414c9e1061faa96008be9bcda5.tar.bz2
Scilab2C-128638e88ce6d8414c9e1061faa96008be9bcda5.zip
Intermediate commit aith support added for AVR (GPIO,ADC). Does not support other targets.
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_InitHeader.sci')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_InitHeader.sci8
1 files changed, 7 insertions, 1 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_InitHeader.sci b/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
index 41e13e45..1c2efd6a 100644
--- a/2.3-1/macros/CCodeGeneration/C_InitHeader.sci
+++ b/2.3-1/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');