summaryrefslogtreecommitdiff
path: root/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
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/u8AVRPWMSetups.c
parent9a30882032e80661fe6c69d7c50da0154e4e431f (diff)
downloadscilab2c-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.gz
scilab2c-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.bz2
scilab2c-52de97290366abe6cfb0576ca19d9c1732c1f0ea.zip
Suppressed declaration of not required variables and functions
Diffstat (limited to 'src/c/hardware/avr/pwm/u8AVRPWMSetups.c')
-rw-r--r--src/c/hardware/avr/pwm/u8AVRPWMSetups.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/c/hardware/avr/pwm/u8AVRPWMSetups.c b/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
index 5110d812..945f2312 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;
}