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

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to