diff options
author | Ankitr19 | 2017-07-04 15:33:41 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-04 15:33:41 +0530 |
commit | 46f9a6c3b848a549f5d92929fd6d1efb501e176a (patch) | |
tree | 0063bfdcb730f75e8cd4281d6f775791883c87d4 /2.3-1/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c | |
parent | 5cfbe7196dd381f1e3f49f5673ce5c9291748364 (diff) | |
parent | c66867c874436fb37ef54c67b048885ce094e894 (diff) | |
download | Scilab2C-46f9a6c3b848a549f5d92929fd6d1efb501e176a.tar.gz Scilab2C-46f9a6c3b848a549f5d92929fd6d1efb501e176a.tar.bz2 Scilab2C-46f9a6c3b848a549f5d92929fd6d1efb501e176a.zip |
New functions added and rpi issues resolved
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c')
-rw-r--r-- | 2.3-1/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c b/2.3-1/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c new file mode 100644 index 00000000..70fb6858 --- /dev/null +++ b/2.3-1/src/c/hardware/rasberrypi/Digital/RPI_digitalReadByte.c @@ -0,0 +1,21 @@ +/* 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: Jorawar Singh, Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "RPIPeripheralDigital.h" + +/* Function to read the state of the first eight gpio pins */ + +uint8 RPI_digitalReadByte(){ + uint8 state=0; + state=digitalReadByte(); + return (state); +} |