forked from Imagelibrary/rtems
Updated tick implementation for HAL_GetTick
This now uses rtems_clock_get_uptime_nanoseconds to calculate the uptime ticks in milliseconds.
This commit is contained in:
committed by
Sebastian Huber
parent
ea1dc0eeb3
commit
100c050cbd
@@ -32,9 +32,11 @@
|
||||
|
||||
#include <stm32h7xx_hal.h>
|
||||
|
||||
/* Get number of milliseconds elapsed since startup */
|
||||
uint32_t HAL_GetTick(void)
|
||||
{
|
||||
return 0;
|
||||
uint64_t temp = rtems_clock_get_uptime_nanoseconds() / (1000 * 1000);
|
||||
return temp;
|
||||
}
|
||||
|
||||
uint32_t stm32h7_systick_frequency(void)
|
||||
|
||||
Reference in New Issue
Block a user