diff options
author | imushir | 2016-02-09 17:00:34 +0530 |
---|---|---|
committer | imushir | 2016-02-09 17:00:34 +0530 |
commit | fad04e78ac69db4ef74c1bd45154fc430c18cccc (patch) | |
tree | 29bb0c8b76e6882adbaaae67bd0e845e3280f73e /macros/Hardware/RasberryPi/IsRPISupportFunction.sci | |
parent | ee5bf4d90f78673d1e4d5a9dd304ee53c503c085 (diff) | |
parent | bbdc94252ee563f0b01d4949868a583e43a2e6a8 (diff) | |
download | Scilab2C_fossee_old-fad04e78ac69db4ef74c1bd45154fc430c18cccc.tar.gz Scilab2C_fossee_old-fad04e78ac69db4ef74c1bd45154fc430c18cccc.tar.bz2 Scilab2C_fossee_old-fad04e78ac69db4ef74c1bd45154fc430c18cccc.zip |
merged RPi & diag
Diffstat (limited to 'macros/Hardware/RasberryPi/IsRPISupportFunction.sci')
-rw-r--r-- | macros/Hardware/RasberryPi/IsRPISupportFunction.sci | 22 |
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 |