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

View File

@ -18,13 +18,17 @@
void initPwmGenerator(void); 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, void startSimplePwm(PwmConfig *state, const char *msg, OutputPin *output,
float dutyCycle, float frequency, pwm_gen_callback *stateChangeCallback); 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, void startSimplePwmExt(PwmConfig *state, const char *msg, brain_pin_e brainPin, OutputPin *output,
float frequency, float dutyCycle, pwm_gen_callback *stateChangeCallback); float frequency, float dutyCycle, pwm_gen_callback *stateChangeCallback);