mirror of https://github.com/rusefi/wideband.git
unused PWM api? (#273)
This commit is contained in:
parent
6627ba6c89
commit
f833e13536
|
@ -9,28 +9,6 @@ Pwm::Pwm(PWMDriver& driver)
|
|||
{
|
||||
}
|
||||
|
||||
void Pwm::Start()
|
||||
{
|
||||
static const PWMConfig config = {
|
||||
m_counterFrequency,
|
||||
m_counterPeriod,
|
||||
nullptr,
|
||||
{
|
||||
{PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr},
|
||||
{PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr},
|
||||
{PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr},
|
||||
{PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr}
|
||||
},
|
||||
0,
|
||||
0,
|
||||
#if STM32_PWM_USE_ADVANCED
|
||||
0
|
||||
#endif
|
||||
};
|
||||
|
||||
Start(config);
|
||||
}
|
||||
|
||||
void Pwm::Start(const PWMConfig& config)
|
||||
{
|
||||
m_counterFrequency = config.frequency;
|
||||
|
|
|
@ -12,7 +12,6 @@ class Pwm
|
|||
public:
|
||||
Pwm(PWMDriver& driver);
|
||||
|
||||
void Start();
|
||||
void Start(const PWMConfig& config);
|
||||
void SetDuty(int channel, float duty);
|
||||
float GetLastDuty(int channel);
|
||||
|
|
Loading…
Reference in New Issue