diff --git a/src/main/drivers/timer.h b/src/main/drivers/timer.h index cbef24d0820..3e298f932da 100644 --- a/src/main/drivers/timer.h +++ b/src/main/drivers/timer.h @@ -168,7 +168,9 @@ void timerConfigBase(TIM_TypeDef *tim, uint16_t period, uint8_t mhz); // TODO - uint16_t timerGetPeriod(const timerHardware_t *timHw); +#if defined(USE_HAL_DRIVER) TIM_HandleTypeDef * timerFindTimerHandle(TIM_TypeDef *tim); +#endif void timerEnable(TIM_TypeDef * tim); void timerPWMConfigChannel(TIM_TypeDef * tim, uint8_t channel, bool isNChannel, bool inverted, uint16_t value); diff --git a/src/main/drivers/timer_impl_stdperiph.c b/src/main/drivers/timer_impl_stdperiph.c index 95cc654a1d6..4b52ac75a33 100644 --- a/src/main/drivers/timer_impl_stdperiph.c +++ b/src/main/drivers/timer_impl_stdperiph.c @@ -49,8 +49,9 @@ void impl_enableTimer(TIM_TypeDef * tim) TIM_Cmd(tim, ENABLE); } -void impl_timerPWMStart(TIM_TypeDef * tim, bool isNChannel) +void impl_timerPWMStart(TIM_TypeDef * tim, unsigned channel, bool isNChannel) { + UNUSED(channel); UNUSED(isNChannel); TIM_CtrlPWMOutputs(tim, ENABLE); }