15#include "target_constants.h"
19extern TIM_HandleTypeDef
TIM_PWM;
21void pwmInitTimer(TIM_HandleTypeDef* timer,uint32_t channel,uint32_t period,uint32_t prescaler);
22void setPWM_HAL(uint32_t value,TIM_HandleTypeDef* timer,uint32_t channel,uint32_t period);
82 void setPWM(uint32_t value,uint8_t ccr);
TIM_HandleTypeDef TIM_PWM
void setPWM_HAL(uint32_t value, TIM_HandleTypeDef *timer, uint32_t channel, uint32_t period)
void pwmInitTimer(TIM_HandleTypeDef *timer, uint32_t channel, uint32_t period, uint32_t prescaler)
SpeedPWM_DRV getPwmSpeed()
virtual std::string getHelpstring()
static bool pwmDriverInUse
static const PWMConfig timerConfig
void setPwmSpeed(SpeedPWM_DRV spd)
static std::pair< uint16_t, uint16_t > freqToPeriodPsc(uint32_t freq)
static ClassIdentifier info
static PWMConfig & config
const ClassIdentifier getInfo()
Command handlers always have class infos. Works well with ChoosableClass.
void setPWM(uint32_t value, uint8_t ccr)
void setMode(ModePWM_DRV mode)
static bool isCreatable()
CommandStatus command(const ParsedCommand &cmd, std::vector< CommandReply > &replies)
TIM_HandleTypeDef * timer