summaryrefslogtreecommitdiff
path: root/src/c/hardware/avr/adc/u8AVRADCSetups.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/adc/u8AVRADCSetups.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/adc/u8AVRADCSetups.c')
-rw-r--r--src/c/hardware/avr/adc/u8AVRADCSetups.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/c/hardware/avr/adc/u8AVRADCSetups.c b/src/c/hardware/avr/adc/u8AVRADCSetups.c
index 620f80fe..f9d310b8 100644
--- a/src/c/hardware/avr/adc/u8AVRADCSetups.c
+++ b/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;
}