Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity committed May 5, 2018
1 parent 5b8e89b commit cd8bd18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/drivers/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/main/drivers/timer_impl_stdperiph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cd8bd18

Please sign in to comment.