Skip to content

Commit

Permalink
Merge pull request #89 from whj4674672/master
Browse files Browse the repository at this point in the history
[fix] HAL_Delay
  • Loading branch information
armink authored Oct 23, 2020
2 parents a89e5ed + 30d5165 commit efe010d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RealThread_STMH750-ART-Pi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
yaml_version: 3
pkg_version: 1.0.0
pkg_version: 1.0.1
pkg_vendor: RealThread
pkg_type: Board_Support_Packages
board:
Expand Down
3 changes: 2 additions & 1 deletion libraries/drivers/drv_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void rt_hw_systick_init(void)
HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq() / RT_TICK_PER_SECOND);
#endif
HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
NVIC_SetPriority(SysTick_IRQn, 0xFF);
}

/**
Expand Down Expand Up @@ -63,6 +63,7 @@ void HAL_ResumeTick(void)

void HAL_Delay(__IO uint32_t Delay)
{
rt_thread_mdelay(Delay);
}

/* re-implement tick interface for STM32 HAL */
Expand Down

0 comments on commit efe010d

Please sign in to comment.