summaryrefslogtreecommitdiff
path: root/src/c/hardware/avr/gpio
diff options
context:
space:
mode:
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;
}