Commit c611ff66 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

timestamp conversion fixed

parent ed1e75cb
......@@ -47,7 +47,7 @@
#endif /* HS_TIMER_INIT_FROM_RTC */
#define HS_TIMER_TICKS_TO_LPTIMER(hs_ticks) ((hs_ticks) * HS_TIMER_FREQUENCY / LPTIMER_FREQUENCY)
#define HS_TIMER_TICKS_TO_LPTIMER(hs_ticks) ((uint64_t)(hs_ticks) * LPTIMER_FREQUENCY / HS_TIMER_FREQUENCY)
#define HS_TIMER_TICKS_TO_S(hs_ticks) ((hs_ticks) / HS_TIMER_FREQUENCY)
#define HS_TIMER_TICKS_TO_MS(hs_ticks) ((hs_ticks) / HS_TIMER_FREQUENCY_MS)
#define HS_TIMER_TICKS_TO_US(hs_ticks) ((hs_ticks) / HS_TIMER_FREQUENCY_US)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment