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/rasberrypi/pwm | |
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/rasberrypi/pwm')
4 files changed, 8 insertions, 8 deletions
diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c index 883f3fa..d06b135 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c +++ b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c @@ -19,9 +19,9 @@ #include "types.h" #include "RPIPeripheralPWM.h" -uint8 u8RPIHardPWMSetClocks(uint16 clk_divisor) +void u8RPIHardPWMSetClocks(uint16 clk_divisor) { pwmSetClock(clk_divisor); - return 0; + } diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c index 5a7ccd1..0cca7a7 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c +++ b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c @@ -18,11 +18,11 @@ #include "types.h" #include "RPIPeripheralPWM.h" -uint8 u8RPIHardPWMSetModes(uint8 mode) +void u8RPIHardPWMSetModes(uint8 mode) { if (mode == 1) /*mark/space mode*/ pwmSetMode(PWM_MODE_MS); else pwmSetMode(PWM_MODE_BAL); - return 0; + } diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c index e3cda77..b2489f5 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c +++ b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c @@ -18,8 +18,8 @@ #include "types.h" #include "RPIPeripheralPWM.h" -uint8 u8RPIHardPWMSetRanges(uint16 value) +void u8RPIHardPWMSetRanges(uint16 value) { pwmSetRange(value); - return 0; + } diff --git a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c index 546cfd5..ae02bf0 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c +++ b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c @@ -19,8 +19,8 @@ #include "RPIPeripheralPWM.h" #include "RPIPeripheralDigital.h" -uint8 u8RPIHardPWMWrites(uint8 pin, uint16 value) +void u8RPIHardPWMWrites(uint8 pin, uint16 value) { pwmWrite((int)phy_pin[pin-1], value); - return 0; + } |