Skip to content

Commit

Permalink
Merge pull request #17655 from kfessel/p-remove-evtimer-now-min
Browse files Browse the repository at this point in the history
sys/evtimer: remove deprecated evtimer_now_min
  • Loading branch information
kfessel committed Feb 15, 2022
2 parents 726c461 + a1f5b5d commit c4b760c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions sys/include/evtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,6 @@ static inline uint32_t evtimer_now_msec(void)
#endif
}

/**
* @brief Return the current system time in minutes
*
* @deprecated wrongly placed convenience function, that
* may not work as expected with ztimer (32 bit)
*/
static inline uint32_t evtimer_now_min(void)
{
#if IS_USED(MODULE_EVTIMER_ON_ZTIMER)
return ztimer_now(ZTIMER_MSEC) / (MS_PER_SEC * SEC_PER_MIN);
#else
return xtimer_now_usec64() / (US_PER_SEC * SEC_PER_MIN);
#endif
}

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit c4b760c

Please sign in to comment.