Skip to content

Commit 750ac51

Browse files
authored
Merge pull request #3741 from jeromecoutant/PR_TICK32
STM32 remove warning in hal_tick_32b.c file
2 parents f168f62 + 0259c1a commit 750ac51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

targets/TARGET_STM/hal_tick_32b.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
extern TIM_HandleTypeDef TimMasterHandle;
2424

25+
extern void HAL_IncTick(void);
26+
2527
volatile uint32_t PreviousVal = 0;
2628

2729
void us_ticker_irq_handler(void);
@@ -90,8 +92,7 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
9092
if (RCC_ClkInitStruct.APB2CLKDivider == RCC_HCLK_DIV1) {
9193
#endif
9294
TimMasterHandle.Init.Prescaler = (uint16_t)((PclkFreq) / 1000000) - 1; // 1 us tick
93-
}
94-
else {
95+
} else {
9596
TimMasterHandle.Init.Prescaler = (uint16_t)((PclkFreq * 2) / 1000000) - 1; // 1 us tick
9697
}
9798

0 commit comments

Comments
 (0)