Merge pull request #2786 from openmv/fix_stm_systick

ports/stm32: Use HAL_InitTick to init SysTick.
This commit is contained in:
Ibrahim Abdelkader 2025-07-27 18:15:28 +03:00 committed by GitHub
commit 186b9e671d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,7 +149,7 @@ void HAL_MspInit(void) {
#endif
// Config Systick.
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
assert(HAL_InitTick(0) == HAL_OK);
// Enable GPIO clocks.
__HAL_RCC_GPIOA_CLK_ENABLE();