xEventGroupWaitBits

The last argument of xEventGroupWaitBits() is xTicksToWait.

Can xTicksToWait be endless time ?

In other words can xEventGroupWaitBits() wait on block forever ?

Can I set xTicksToWait = portMAX_DELAY ?

Thanks

Michael

Due to internal implementation details, if INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h then portMAX_DELAY means “wait forever”. Otherwise portMAX_DELAY is either 0xffffffff or 0xffff - depending on the architectures and other FreeRTOSConfig.h settings.

This holds for all API functions and I think is mentioned in the book and probably also the reference manual.