msleep has no function prototype
msleep() is listed as supported by XilTimer, but its prototype is missing from sleep.h. Standalone Library Documentation: BSP and Libraries Document Collection (UG643)
XilTimer.c has a msleep() function: xiltimer.c on Github
void msleep(unsigned long mseconds) { XilTimer_Sleep(mseconds, XTIMER_DELAY_MSEC); }
Prototype missing from XilTimer's sleep.h (as well as other sleep.h files elsewhere): XilTimer's sleep.h on Github
Reference to where this was reported on the forums earlier this year: Vitis Unified msleep() function missing from sleep.h but present in xiltimer.c
Thanks. We will make the corrections.
I just checked sleep.h in Vitis 2024.2, there is still no prototype for msleep()
Since this wasn't fixed in Vitis 2024.2, a new issue was added, this time with a patch file, to bring this issue back to the forefront. https://github.com/Xilinx/embeddedsw/issues/324
Thanks for tracking this. Sorry, we will fix this in the next release.
Thank you.
I just checked sleep.h in Vitis 2024.2, there is still no prototype for msleep() @digitalnumeric It is there in 2024.2 xiltimer sleep.h at https://github.com/Xilinx/embeddedsw/blob/xlnx_rel_v2024.2/lib/sw_services/xiltimer/src/sleep.h#L82 Iam not sure on which file you have checked. This prototype isn't needed in common sleep.h as this API is only part of xiltimer and doesn't exist in non xiltimer case.
My apologies, I see now that you are correct. We were looking at the wrong, sleep.h.