[PATCH] updated HAL_GetTick function
Robin Mueller
robin.mueller.m at gmail.com
Mon Apr 19 08:48:10 UTC 2021
diff --git a/bsps/arm/stm32h7/start/bspstart.c b/bsps/arm/stm32h7/start/bspstart.c
index 2fc8133cca..e6e995a50c 100644
--- a/bsps/arm/stm32h7/start/bspstart.c
+++ b/bsps/arm/stm32h7/start/bspstart.c
@@ -32,9 +32,10 @@
#include <stm32h7xx_hal.h>
+/* Get number of milliseconds elapsed since startup */
uint32_t HAL_GetTick(void)
{
- return 0;
+ return (rtems_clock_get_ticks_since_boot() * 1000) / rtems_clock_get_ticks_per_second();
}
uint32_t stm32h7_systick_frequency(void)
--
2.29.2.windows.2
More information about the devel
mailing list