summaryrefslogtreecommitdiff
path: root/macros/CCodeGeneration/C_GenerateFunName.sci
diff options
context:
space:
mode:
authorsiddhu89902016-07-25 15:59:40 +0530
committersiddhu89902016-07-25 15:59:40 +0530
commit24fbba33153e7758df4a990cb4c21ae8e53e6f3e (patch)
treeb12075cf236142e6e0b9c024a37a2fc4ee5e6761 /macros/CCodeGeneration/C_GenerateFunName.sci
parent169db0082ebd07baea82d00213db6ffd4dee7cf6 (diff)
downloadscilab2c-24fbba33153e7758df4a990cb4c21ae8e53e6f3e.tar.gz
scilab2c-24fbba33153e7758df4a990cb4c21ae8e53e6f3e.tar.bz2
scilab2c-24fbba33153e7758df4a990cb4c21ae8e53e6f3e.zip
WiringPi used for RaspberryPi (Gpio, serial, Threads, ISRs)
Diffstat (limited to 'macros/CCodeGeneration/C_GenerateFunName.sci')
-rw-r--r--macros/CCodeGeneration/C_GenerateFunName.sci7
1 files changed, 5 insertions, 2 deletions
diff --git a/macros/CCodeGeneration/C_GenerateFunName.sci b/macros/CCodeGeneration/C_GenerateFunName.sci
index d87fb9c1..a1373ded 100644
--- a/macros/CCodeGeneration/C_GenerateFunName.sci
+++ b/macros/CCodeGeneration/C_GenerateFunName.sci
@@ -24,10 +24,13 @@ function CFunName = C_GenerateFunName(FunctionName,InArg,NInArg,OutArg,NOutArg)
SCI2CNInArgCheck(argn(2),5,5);
CFunName = '';
if((IsAVRSupportFunction(FunctionName)) | (IsRPISupportFunction(FunctionName)) | ...
- (mtlb_strcmp(part(FunctionName,1:5),'odefn') == %T))
+ (mtlb_strcmp(part(FunctionName,1:5),'odefn') == %T) |...
+ (mtlb_strcmp(part(FunctionName,1:9),'PI_thread') == %T)| ...
+ (mtlb_strcmp(part(FunctionName,1:4),'ISR_') == %T))
//If current function is an AVR or RPi function, then function name can be just
//plain function name without any input/output arguments types
-
+//Slimilarly for functions conataining ode functions and functions to be called in
+//separate thread in RPi
CFunName = CFunName+FunctionName;
else