Skip to content

Commit efe010d

Browse files
authored
Merge pull request #89 from whj4674672/master
[fix] HAL_Delay
2 parents a89e5ed + 30d5165 commit efe010d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

RealThread_STMH750-ART-Pi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
yaml_version: 3
3-
pkg_version: 1.0.0
3+
pkg_version: 1.0.1
44
pkg_vendor: RealThread
55
pkg_type: Board_Support_Packages
66
board:

libraries/drivers/drv_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void rt_hw_systick_init(void)
2929
HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq() / RT_TICK_PER_SECOND);
3030
#endif
3131
HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);
32-
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
32+
NVIC_SetPriority(SysTick_IRQn, 0xFF);
3333
}
3434

3535
/**
@@ -63,6 +63,7 @@ void HAL_ResumeTick(void)
6363

6464
void HAL_Delay(__IO uint32_t Delay)
6565
{
66+
rt_thread_mdelay(Delay);
6667
}
6768

6869
/* re-implement tick interface for STM32 HAL */

0 commit comments

Comments
 (0)