This commit is contained in:
rusefi 2018-01-22 11:22:09 -05:00
parent 3fe28fbbe1
commit 0e9f63524e
1 changed files with 6 additions and 2 deletions

View File

@ -18,13 +18,17 @@
void initPwmGenerator(void);
/**
* start a one-channel PWM driver
* Start a one-channel software PWM driver.
*
* This method should be called after scheduling layer is started by initSignalExecutor()
*/
void startSimplePwm(PwmConfig *state, const char *msg, OutputPin *output,
float dutyCycle, float frequency, pwm_gen_callback *stateChangeCallback);
/**
* initialize GPIO pin and start a one-channel PWM driver
* initialize GPIO pin and start a one-channel software PWM driver.
*
* This method should be called after scheduling layer is started by initSignalExecutor()
*/
void startSimplePwmExt(PwmConfig *state, const char *msg, brain_pin_e brainPin, OutputPin *output,
float frequency, float dutyCycle, pwm_gen_callback *stateChangeCallback);