diff options
author | siddhu8990 | 2016-02-01 11:05:35 +0530 |
---|---|---|
committer | siddhu8990 | 2016-02-01 11:05:35 +0530 |
commit | 5df6d1cb2868abdc8df66755f76c997ee36c0b49 (patch) | |
tree | 8f6eef9f83437133b0b8d7f16f3b5dd470872aee /macros/Hardware/RasberryPi/RPI_DigitalOut.sci | |
parent | 1ff7f5293444b22b46ff7bd51d52a845dc20525c (diff) | |
download | scilab2c-5df6d1cb2868abdc8df66755f76c997ee36c0b49.tar.gz scilab2c-5df6d1cb2868abdc8df66755f76c997ee36c0b49.tar.bz2 scilab2c-5df6d1cb2868abdc8df66755f76c997ee36c0b49.zip |
Support for RPi gpios added
Diffstat (limited to 'macros/Hardware/RasberryPi/RPI_DigitalOut.sci')
-rw-r--r-- | macros/Hardware/RasberryPi/RPI_DigitalOut.sci | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/Hardware/RasberryPi/RPI_DigitalOut.sci b/macros/Hardware/RasberryPi/RPI_DigitalOut.sci new file mode 100644 index 00000000..4836f54f --- /dev/null +++ b/macros/Hardware/RasberryPi/RPI_DigitalOut.sci @@ -0,0 +1,27 @@ +function RPI_DigitalOut(pin, state) +// Function to output desired state on digital pins. +// +// Calling Sequence +// RPI_DigitalOut(pin, state) +// +// Parameters +// pin : pin of RPi to be used +// state : desired state of the pin (0 -> LOW, 1 -> HIGH) +// +// Description +// This fucntion is used for outputting the desired state on gpio pins of RPi. 'RPI_DigitalSetup' function must be called before this for setting up pin as output. 'pin' must be specified from list given. 'state' specifies the output state (0 -> Low, 1-> High) +// Examples +// RPI_DigitalOut(RPI_GPIO_P1_03,0) //Changes the state of pin 3 of header P1 as 'Low'. +// +// See also +// RPI_DigitalSetup RPI_DigitalIn +// +// +// Authors +// Siddhesh Wani +// + +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for RPi. + +endfunction |