summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
diff options
context:
space:
mode:
authorsiddhu89902016-10-18 10:31:23 +0530
committersiddhu89902016-10-18 10:31:23 +0530
commitcdd9bf519d594b87c07193d2770b81a07829a50c (patch)
treec8985f43c314cafcfa04053a821116424d54c2a1 /2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
parentf0ef5a2d4560f166751b58020ee5a2bc70904611 (diff)
downloadScilab2C-cdd9bf519d594b87c07193d2770b81a07829a50c.tar.gz
Scilab2C-cdd9bf519d594b87c07193d2770b81a07829a50c.tar.bz2
Scilab2C-cdd9bf519d594b87c07193d2770b81a07829a50c.zip
Suppressed declaration of not required variables and functions
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c')
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
index a5f80e5d..f828f77e 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
@@ -17,12 +17,10 @@
#include "RPIPeripheralDigital.h"
/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/
-uint8 u8RPIDigitalOuts(uint8 pin, uint8 state)
+void u8RPIDigitalOuts(uint8 pin, uint8 state)
{
if (state == 0) /*low output*/
digitalWrite(phy_pin[pin-1], LOW);
if (state == 1) /*high output*/
digitalWrite(phy_pin[pin-1], HIGH);
-
- return 0;
}