unused PWM api? (#273)

This commit is contained in:
rusefillc 2023-07-22 15:33:56 -07:00 committed by GitHub
parent 6627ba6c89
commit f833e13536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 23 deletions

View File

@ -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) void Pwm::Start(const PWMConfig& config)
{ {
m_counterFrequency = config.frequency; m_counterFrequency = config.frequency;

View File

@ -12,7 +12,6 @@ class Pwm
public: public:
Pwm(PWMDriver& driver); Pwm(PWMDriver& driver);
void Start();
void Start(const PWMConfig& config); void Start(const PWMConfig& config);
void SetDuty(int channel, float duty); void SetDuty(int channel, float duty);
float GetLastDuty(int channel); float GetLastDuty(int channel);