summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/avr
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/hardware/avr')
-rw-r--r--2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c3
-rw-r--r--2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c3
-rw-r--r--2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c3
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h2
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h4
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h4
-rw-r--r--2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c2
-rw-r--r--2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c4
8 files changed, 10 insertions, 15 deletions
diff --git a/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c b/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c
index 620f80fe..f9d310b8 100644
--- a/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c
+++ b/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c
@@ -26,7 +26,7 @@
#include "AVRPeripheralADC.h"
-uint8 u8AVRADCSetups(uint8 prescalar, uint8 adc_ref)
+void u8AVRADCSetups(uint8 prescalar, uint8 adc_ref)
{
/*Set the prescalar value*/
ADCSRA |= (prescalar & 0x07);
@@ -37,6 +37,5 @@ uint8 u8AVRADCSetups(uint8 prescalar, uint8 adc_ref)
/*Enable ADC hardware. Set ADEN bit*/
ADCSRA |= (1<<7);
- return 0;
}
diff --git a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c b/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
index 5ee84a80..118da542 100644
--- a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c b/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
index 46697f70..e28c468c 100644
--- a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
+++ b/2.3-1/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;
}
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h
index e343de63..736c3406 100644
--- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h
@@ -15,7 +15,7 @@ extern "C" {
#endif
//Function prototypes
-uint8 u8AVRADCSetups(uint8 prescalar, uint8 adc_ref);
+void u8AVRADCSetups(uint8 prescalar, uint8 adc_ref);
uint16 u8AVRReadADCs(uint8 channel);
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h
index ddbeb2d8..37f2377e 100644
--- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h
@@ -32,11 +32,11 @@ extern "C" {
#define HIGH 1
//Function prototypes
-uint8 u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction);
+void u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction);
uint8 u8AVRDigitalIns(uint8 port,uint8 pin);
-uint8 u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state);
+void u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
index 7371dd74..2e41db6e 100644
--- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
@@ -15,9 +15,9 @@ extern "C" {
#endif
//Function prototypes
-uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode);
+void u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode);
-uint8 u8AVRPWMSetDutys(uint8 timer, uint8 duty);
+void u8AVRPWMSetDutys(uint8 timer, uint8 duty);
#ifdef __cplusplus
diff --git a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
index adb186a6..0f358fc3 100644
--- a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
+++ b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
@@ -19,7 +19,7 @@
#include "AVRPeripheralPWM.h"
-uint8 u8AVRPWMSetDutys(uint8 timer, uint8 duty)
+void u8AVRPWMSetDutys(uint8 timer, uint8 duty)
{
uint8 duty_value=0;
diff --git a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
index 5110d812..945f2312 100644
--- a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
+++ b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
@@ -33,7 +33,7 @@
#include "AVRPeripheralPWM.h"
-uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode)
+void u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode)
{
switch(timer)
{
@@ -56,7 +56,5 @@ uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 ou
TCCR2 |= ((output_mode & 0x02) << 6); //WGM1
break;
}
-
- return 0;
}