diff options
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; + } |