Stream buffers depend on enabling the xTaskGetCurrentTaskHandle() function


Just a little clarification on the official documentation. I find nowhere, including this page, a reference to set INCLUDE_xTaskGetCurrentTaskHandle to 1 in order for the stream buffers to compile. Other objects doesn’t need it.

Not big deal, so you might want to add this clarification to the documentation, just saying :slight_smile:

If you don’t mind I have another comment: in the xStreamBufferCreate() function example you’ve declared the stream buffer handler locally to vAFunction(), and it should be global because the idea is to transfer information between tasks. Just saying, again :slight_smile:

Kind regards!

1 Like

Thanks for reporting. I added the following to streambuffers.c, although it not checked in yet:

#if INCLUDE_xTaskGetCurrentTaskHandle != 1
	#error INCLUDE_xTaskGetCurrentTaskHandle must be set to 1 in FreeRTOSConfig.h to use stream buffers.
1 Like