From cdd9bf519d594b87c07193d2770b81a07829a50c Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Tue, 18 Oct 2016 10:31:23 +0530 Subject: Suppressed declaration of not required variables and functions --- 2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c') 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; } -- cgit