STM32L1 - Don't use RepetitionCounter field in timer init

pull/3467/head
bcostm 2016-10-26 14:26:03 +02:00 committed by Anna Bridge
parent 731e4c8dce
commit e0049e5abe
1 changed files with 2 additions and 0 deletions

View File

@ -98,7 +98,9 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
TimMasterHandle.Init.ClockDivision = 0;
TimMasterHandle.Init.CounterMode = TIM_COUNTERMODE_UP;
#if !TARGET_STM32L1
TimMasterHandle.Init.RepetitionCounter = 0;
#endif
HAL_TIM_OC_Init(&TimMasterHandle);
NVIC_SetVector(TIM_MST_IRQ, (uint32_t)timer_irq_handler);