summaryrefslogtreecommitdiff
path: root/src/c/hardware/avr/pwm
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/hardware/avr/pwm')
-rw-r--r--src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c2
-rw-r--r--src/c/hardware/avr/pwm/u8AVRPWMSetups.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c b/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
index adb186a..0f358fc 100644
--- a/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
+++ b/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/src/c/hardware/avr/pwm/u8AVRPWMSetups.c b/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
index 5110d81..945f231 100644
--- a/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
+++ b/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;
}