<div dir="ltr"><div>This implementation is problematic because HAL_GetTick is supposed to return elapsed milliseconds since boot and the current implementation assumes there are 1000 ticks per second.</div><div>I'll send an updated patch.</div><div><br></div><div>Kind Regards</div><div>Robin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 12 Apr 2021 at 11:55, Robin.Mueller <<a href="mailto:robin.mueller.m@gmail.com">robin.mueller.m@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This commit adds an implementation for the HAL_GetTick function.<br>
It simply forwards the call to the respective RTEMS function.<br>
---<br>
bsps/arm/stm32h7/start/bspstart.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/bsps/arm/stm32h7/start/bspstart.c b/bsps/arm/stm32h7/start/bspstart.c<br>
index 2fc8133cca..d942fbdcb3 100644<br>
--- a/bsps/arm/stm32h7/start/bspstart.c<br>
+++ b/bsps/arm/stm32h7/start/bspstart.c<br>
@@ -34,7 +34,7 @@<br>
<br>
uint32_t HAL_GetTick(void)<br>
{<br>
- return 0;<br>
+ return rtems_clock_get_ticks_since_boot();<br>
}<br>
<br>
uint32_t stm32h7_systick_frequency(void)<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div>