2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file pwm_generator.cpp
|
|
|
|
* @brief software PWM generator
|
|
|
|
*
|
|
|
|
* Software PWM implementation. Considering how low all frequencies are, we can totally afford a couple of float multiplications.
|
|
|
|
* By generating PWM programmatically we are saving the timers for better purposes. This implementation also supports generating
|
|
|
|
* synchronized waves as needed for example to emulate dual Hall-effect crankshaft position sensors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-01-03 20:51:29 -08:00
|
|
|
#include "global.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-01-03 20:51:29 -08:00
|
|
|
#if EFI_PROD_CODE || EFI_SIMULATOR
|
|
|
|
#include "pwm_generator.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "pin_repository.h"
|
|
|
|
#include "datalogging.h"
|
|
|
|
|
|
|
|
void initPwmGenerator(void) {
|
|
|
|
}
|
|
|
|
|
2019-01-03 20:51:29 -08:00
|
|
|
#endif
|