summaryrefslogtreecommitdiff
path: root/macros/Hardware/RasberryPi/IsRPISupportFunction.sci
diff options
context:
space:
mode:
authorsiddhu89902016-02-01 11:05:35 +0530
committersiddhu89902016-02-01 11:05:35 +0530
commit5df6d1cb2868abdc8df66755f76c997ee36c0b49 (patch)
tree8f6eef9f83437133b0b8d7f16f3b5dd470872aee /macros/Hardware/RasberryPi/IsRPISupportFunction.sci
parent1ff7f5293444b22b46ff7bd51d52a845dc20525c (diff)
downloadScilab2C_fossee_old-5df6d1cb2868abdc8df66755f76c997ee36c0b49.tar.gz
Scilab2C_fossee_old-5df6d1cb2868abdc8df66755f76c997ee36c0b49.tar.bz2
Scilab2C_fossee_old-5df6d1cb2868abdc8df66755f76c997ee36c0b49.zip
Support for RPi gpios added
Diffstat (limited to 'macros/Hardware/RasberryPi/IsRPISupportFunction.sci')
-rw-r--r--macros/Hardware/RasberryPi/IsRPISupportFunction.sci22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/Hardware/RasberryPi/IsRPISupportFunction.sci b/macros/Hardware/RasberryPi/IsRPISupportFunction.sci
new file mode 100644
index 0000000..647b0c8
--- /dev/null
+++ b/macros/Hardware/RasberryPi/IsRPISupportFunction.sci
@@ -0,0 +1,22 @@
+function Output = IsRPISupportFunction(FunName)
+// -----------------------------------------------------------------
+// Check whether input function name is a RPi support function or not.
+//
+// Input data:
+// FunName: Name of the function to be checked
+//
+// Output data:
+// Output: True or False depending whether given function is a RPi
+// support functions or not
+//
+// Author: Siddhesh Wani
+// -----------------------------------------------------------------
+
+//Get list of supported functions for AVR
+RPISupportFunctions = GetRPISupportFunctions();
+
+//Check whether input function is present in above list or not
+FunNameInRPISupport = members(FunName,RPISupportFunctions);
+Output = bool2s(FunNameInRPISupport~=0);
+
+endfunction