diff options
author | siddhu8990 | 2017-04-19 11:56:09 +0530 |
---|---|---|
committer | siddhu8990 | 2017-04-19 11:56:09 +0530 |
commit | 453598b49cb3d4a62b1797dbc90f0e3dd4521329 (patch) | |
tree | 9d10176d0a4be5eb567ade03e1dd6172c77605e4 /macros/Hardware/RasberryPi/RPI_PinISR.sci | |
parent | aceeb1fe05a8ff6c126ea9ba166a19249488dbd1 (diff) | |
download | Scilab2C_fossee_old-453598b49cb3d4a62b1797dbc90f0e3dd4521329.tar.gz Scilab2C_fossee_old-453598b49cb3d4a62b1797dbc90f0e3dd4521329.tar.bz2 Scilab2C_fossee_old-453598b49cb3d4a62b1797dbc90f0e3dd4521329.zip |
Copyright message updated in added files and libraries separated in 'thirdparty' folder
Diffstat (limited to 'macros/Hardware/RasberryPi/RPI_PinISR.sci')
-rw-r--r-- | macros/Hardware/RasberryPi/RPI_PinISR.sci | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/macros/Hardware/RasberryPi/RPI_PinISR.sci b/macros/Hardware/RasberryPi/RPI_PinISR.sci index 2de7d9e..c2354c1 100644 --- a/macros/Hardware/RasberryPi/RPI_PinISR.sci +++ b/macros/Hardware/RasberryPi/RPI_PinISR.sci @@ -1,3 +1,11 @@ +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + function RPI_PinISR(pin, edgetype, fn) // Function to assign a function to be run when an interrupt occurs on // specified pin. @@ -30,7 +38,8 @@ function RPI_PinISR(pin, edgetype, fn) // for providing support for generating C code for RPi. //Pins of header P1 which can be used as GPIO -supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26] +supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26,27,28,29,... + 31,31,33,35,36,37,38,40]; PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO @@ -38,7 +47,7 @@ PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO if(PinIsGPIO == 0) error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.'); end -EdgeTypeSupported = members(edgetype,[1 2 3]) +EdgeTypeSupported = members(edgetype,[1 2 3]); if(EdgeTypeSupported == 0) error(9999, 'SCI2CERROR: Given edgetype is incorrect. Please specify correct edgetype from [1,2,3]') |