diff options
author | siddhu8990 | 2016-06-06 09:18:33 +0530 |
---|---|---|
committer | siddhu8990 | 2016-06-06 09:18:33 +0530 |
commit | f08e63e652a564b3f805b69c05948e497c7b28f6 (patch) | |
tree | d8f4bcc4dc02c668ec38745eaf867dd365fd9992 /2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c | |
parent | 49003250e69e4e500742614888e47db789bbe451 (diff) | |
download | Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.tar.gz Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.tar.bz2 Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.zip |
File handling functions added
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c')
-rw-r--r-- | 2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c index 277c620f..657df3a1 100644 --- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c +++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c @@ -1,27 +1,33 @@ -// Function to setup digital pins. -// -// Calling Sequence -// u8RPI_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. +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + 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 + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to setup digital pins. + + Calling Sequence + u8RPI_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 +*/ + #include "types.h" #include "RPIPeripheralDigital.h" |