[PATCH 1/4] Implementation for HAL_GetTick

Robin.Mueller robin.mueller.m at gmail.com
Mon Apr 12 09:55:42 UTC 2021


This commit adds an implementation for the HAL_GetTick function.
It simply forwards the call to the respective RTEMS function.
---
 bsps/arm/stm32h7/start/bspstart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/arm/stm32h7/start/bspstart.c b/bsps/arm/stm32h7/start/bspstart.c
index 2fc8133cca..d942fbdcb3 100644
--- a/bsps/arm/stm32h7/start/bspstart.c
+++ b/bsps/arm/stm32h7/start/bspstart.c
@@ -34,7 +34,7 @@
 
 uint32_t HAL_GetTick(void)
 {
-  return 0;
+  return rtems_clock_get_ticks_since_boot();
 }
 
 uint32_t stm32h7_systick_frequency(void)
-- 
2.25.1



More information about the devel mailing list