/* INCLUDE_vTaskDelayUntil was replaced by INCLUDE_xTaskDelayUntil. Backward * compatibility is maintained if only one or the other is defined, but * there is a conflict if both are defined. */
and so I would expect that now it should be better (best practise) defining INCLUDE_xTaskDelayUntil instead of INCLUDE_vTaskDelayUntil.
Biut in the FreeRTOSConfig.h that I find on github I see
#define INCLUDE_vTaskDelayUntil 1
I know that everyhting works (because of the backward compatibility), but would you think that this can be updated?
Add an assert to catch register overflow (#1265)").
It must be said that FreeRTOS.h checks for double declarations:
#ifdef INCLUDE_xTaskDelayUntil
#ifdef INCLUDE_vTaskDelayUntil
#error INCLUDE_vTaskDelayUntil and INCLUDE_xTaskDelayUntil are both defined. INCLUDE_vTaskDelayUntil is no longer required and should be removed
#endif
#endif
Thanks for noticing this! I have made the change to the kernel template file and will have the website updated shortly. The vTaskDelayUntil page will direct new users to using xTaskDelayUntil. xTaskDelayUntil has been updated to remove a typo in the inclusion macro.