mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2786 from openmv/fix_stm_systick
ports/stm32: Use HAL_InitTick to init SysTick.
This commit is contained in:
commit
186b9e671d
@ -149,7 +149,7 @@ void HAL_MspInit(void) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Config Systick.
|
// Config Systick.
|
||||||
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
|
assert(HAL_InitTick(0) == HAL_OK);
|
||||||
|
|
||||||
// Enable GPIO clocks.
|
// Enable GPIO clocks.
|
||||||
__HAL_RCC_GPIOA_CLK_ENABLE();
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user