LPC176x Framework update (#15722)

Changes required for compatibility with framework-arduino-lpc176x 0.2.0
This commit is contained in:
Chris Pepper
2019-11-03 02:34:09 +00:00
committed by GitHub
parent 15f94e5ee5
commit b9116d4050
30 changed files with 172 additions and 176 deletions

View File

@@ -29,11 +29,11 @@
#include <pwm.h>
void set_pwm_frequency(const pin_t pin, int f_desired) {
pwm_set_frequency(pin, f_desired);
LPC176x::pwm_set_frequency(pin, f_desired);
}
void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size/*=255*/, const bool invert/*=false*/) {
pwm_write_ratio(pin, invert ? 1.0f - (float)v / v_size : (float)v / v_size);
LPC176x::pwm_write_ratio(pin, invert ? 1.0f - (float)v / v_size : (float)v / v_size);
}
#endif // FAST_PWM_FAN || SPINDLE_LASER_PWM