summaryrefslogtreecommitdiff
path: root/src/c/hardware/avr/pwm
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/pwm
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/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;
}