diff options
author | siddhu8990 | 2016-10-18 10:31:23 +0530 |
---|---|---|
committer | siddhu8990 | 2016-10-18 10:31:23 +0530 |
commit | 52de97290366abe6cfb0576ca19d9c1732c1f0ea (patch) | |
tree | c2effe8b6e60c112b126f1d39ddb0d82253dc4e9 /src/c/hardware/avr | |
parent | 9a30882032e80661fe6c69d7c50da0154e4e431f (diff) | |
download | Scilab2C_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')
-rw-r--r-- | src/c/hardware/avr/adc/u8AVRADCSetups.c | 3 | ||||
-rw-r--r-- | src/c/hardware/avr/gpio/u8AVRDigitalOuts.c | 3 | ||||
-rw-r--r-- | src/c/hardware/avr/gpio/u8AVRDigitalSetups.c | 3 | ||||
-rw-r--r-- | src/c/hardware/avr/includes/AVRPeripheralADC.h | 2 | ||||
-rw-r--r-- | src/c/hardware/avr/includes/AVRPeripheralGPIO.h | 4 | ||||
-rw-r--r-- | src/c/hardware/avr/includes/AVRPeripheralPWM.h | 4 | ||||
-rw-r--r-- | src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c | 2 | ||||
-rw-r--r-- | src/c/hardware/avr/pwm/u8AVRPWMSetups.c | 4 |
8 files changed, 10 insertions, 15 deletions
diff --git a/src/c/hardware/avr/adc/u8AVRADCSetups.c b/src/c/hardware/avr/adc/u8AVRADCSetups.c index 620f80f..f9d310b 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; } diff --git a/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c b/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c index 5ee84a8..118da54 100644 --- a/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c +++ b/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/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c b/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c index 46697f7..e28c468 100644 --- a/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c +++ b/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/src/c/hardware/avr/includes/AVRPeripheralADC.h b/src/c/hardware/avr/includes/AVRPeripheralADC.h index e343de6..736c340 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralADC.h +++ b/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/src/c/hardware/avr/includes/AVRPeripheralGPIO.h b/src/c/hardware/avr/includes/AVRPeripheralGPIO.h index ddbeb2d..37f2377 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralGPIO.h +++ b/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/src/c/hardware/avr/includes/AVRPeripheralPWM.h b/src/c/hardware/avr/includes/AVRPeripheralPWM.h index 7371dd7..2e41db6 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralPWM.h +++ b/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/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; } |