summaryrefslogtreecommitdiff
path: root/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci
diff options
context:
space:
mode:
authorimushir2016-02-09 17:00:34 +0530
committerimushir2016-02-09 17:00:34 +0530
commit65ca99dd846281e3d1c3066697ad260df0d0909e (patch)
tree53b01af3e50678970b009c774479bc43b4c15bc4 /2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci
parenta6efab1a42eda8c1e3902c2f2d030a9cb9cfd25e (diff)
parent58b8656a350fed1a1e59caa484e6d9967dd1bc4d (diff)
downloadScilab2C-65ca99dd846281e3d1c3066697ad260df0d0909e.tar.gz
Scilab2C-65ca99dd846281e3d1c3066697ad260df0d0909e.tar.bz2
Scilab2C-65ca99dd846281e3d1c3066697ad260df0d0909e.zip
merged RPi & diag
Diffstat (limited to '2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci')
-rw-r--r--2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci27
1 files changed, 27 insertions, 0 deletions
diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci
new file mode 100644
index 00000000..5ce48f0b
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci
@@ -0,0 +1,27 @@
+function RPI_DigitalSetup(pin, direction)
+// Function to setup digital pins.
+//
+// Calling Sequence
+// RPI_DigitalSetup(pin,direction)
+//
+// Parameters
+// pin : pin of RPi to be used
+// direction : direction to be set for pin (0 -> INPUT, 1 -> OUTPUT)
+//
+// Description
+// There are few pins available on RPi as Gpio or digital io. These pins can be used as digital output or input. Pin name must be provided from list provided. Please refer '' for complete list of pins. Direction can be 0 or 1 depending upon desired function (Input/output)
+// Examples
+// RPI_DigitalSetup(RPI_GPIO_P1_03,0) //Sets pin 3 of header P1 as input
+//
+// See also
+// RPI_DigitalIn RPI_DigitalOut
+//
+//
+// 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