diff options
author | siddhu8990 | 2016-10-18 10:31:23 +0530 |
---|---|---|
committer | siddhu8990 | 2016-10-18 10:31:23 +0530 |
commit | 52de97290366abe6cfb0576ca19d9c1732c1f0ea (patch) | |
tree | c2effe8b6e60c112b126f1d39ddb0d82253dc4e9 /src/c/hardware/rasberrypi/gpio | |
parent | 9a30882032e80661fe6c69d7c50da0154e4e431f (diff) | |
download | Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.gz Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.bz2 Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.zip |
Suppressed declaration of not required variables and functions
Diffstat (limited to 'src/c/hardware/rasberrypi/gpio')
-rw-r--r-- | src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c | 4 | ||||
-rw-r--r-- | src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c index a5f80e5..f828f77 100644 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c +++ b/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; } diff --git a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c index 37cfc03..fa86025 100644 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c +++ b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c @@ -26,7 +26,7 @@ int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/ 13, 6, 14, 10, 17, 11 }; /*Pin 21 to 26*/ /*pin is reduced by one as arrayiindex starts from 0 and pin no starts from 1*/ -uint8 u8RPIDigitalSetups(uint8 pin, uint8 direction) +void u8RPIDigitalSetups(uint8 pin, uint8 direction) { if(direction == 1) /*Pin to be used as output*/ pinMode(phy_pin[pin-1], OUTPUT); @@ -35,6 +35,4 @@ uint8 u8RPIDigitalSetups(uint8 pin, uint8 direction) else pinMode(phy_pin[pin-1], INPUT); - - return 0; } |