2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file pwm_generator.h
|
|
|
|
*
|
|
|
|
* @date May 28, 2013
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PWM_GENERATOR_H_
|
|
|
|
#define PWM_GENERATOR_H_
|
|
|
|
|
|
|
|
#include "global.h"
|
|
|
|
#include "pwm_generator_logic.h"
|
|
|
|
|
|
|
|
#define DEBUG_PWM FALSE
|
|
|
|
|
2019-03-29 06:11:13 -07:00
|
|
|
#include "efi_gpio.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
void initPwmGenerator(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* default implementation of pwm_gen_callback which simply toggles the pins
|
2019-04-12 17:06:09 -07:00
|
|
|
*
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
2019-04-12 17:15:18 -07:00
|
|
|
void applyPinState(int stateIndex, PwmConfig* state) /* pwm_gen_callback */;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* PWM_GENERATOR_H_ */
|