summaryrefslogtreecommitdiff
path: root/src/c/hardware/avr/gpio
diff options
context:
space:
mode:
authorsiddhu89902016-10-18 10:31:23 +0530
committersiddhu89902016-10-18 10:31:23 +0530
commit52de97290366abe6cfb0576ca19d9c1732c1f0ea (patch)
treec2effe8b6e60c112b126f1d39ddb0d82253dc4e9 /src/c/hardware/avr/gpio
parent9a30882032e80661fe6c69d7c50da0154e4e431f (diff)
downloadScilab2C_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/avr/gpio')
-rw-r--r--src/c/hardware/avr/gpio/u8AVRDigitalOuts.c3
-rw-r--r--src/c/hardware/avr/gpio/u8AVRDigitalSetups.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c b/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
index 5ee84a8..118da54 100644
--- a/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
+++ b/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
@@ -25,7 +25,7 @@
#include "AVRPeripheralGPIO.h"
-uint8 u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state)
+void u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state)
{
if(state == LOW)
{/*Make output pin high*/
@@ -65,5 +65,4 @@ uint8 u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state)
PORTD = PORTD | (1<<pin);
}
}
-return 0;
}
diff --git a/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c b/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
index 46697f7..e28c468 100644
--- a/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
+++ b/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
@@ -25,7 +25,7 @@
#include "AVRPeripheralGPIO.h"
-uint8 u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction)
+void u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction)
{
if (direction == INPUT)
@@ -66,6 +66,5 @@ uint8 u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction)
DDRD = DDRD | (1<<pin);
}
}
-return 0;
}