1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

sys/include/xtimer.h: deprecate nanosleep

This commit is contained in:
Francisco Molina 2021-11-30 09:33:15 +01:00
parent 1ef9ca8a6f
commit 92a003fcdc

View File

@ -176,6 +176,10 @@ static inline void xtimer_usleep64(uint64_t microseconds);
/**
* @brief Stop execution of a thread for some time
*
* @deprecated This function is deprecated as no XTIMER backend is currently
* configured to run at more than 1 MHz, making nanoseconds accuracy
* impossible to achieve.
*
* Don't expect nanosecond accuracy. As of now, this function just calls
* xtimer_usleep(nanoseconds/1000).
*