]> begriffs open source - freertos/commit
Add callback overrides for stream buffer and message buffers (#437)
authorRavishankar Bhagavandas <bhagavar@amazon.com>
Tue, 21 Jun 2022 00:48:34 +0000 (17:48 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 00:48:34 +0000 (17:48 -0700)
commit0b46492740518eb7ba90ecbfbd8a5d2228a0fed7
treeccb87fb9227015500ae8a050d2efe6f02a48b7e6
parent49cb8e8b28c07db5b7739335f87829659e7beed7
Add callback overrides for stream buffer and message buffers (#437)

* Let each stream/message can use its own sbSEND_COMPLETED

In FreeRTOS.h, set the default value of configUSE_SB_COMPLETED_CALLBACK
to zero, and add additional space for the function pointer when
the buffer created statically.

In stream_buffer.c, modify the macro of sbSEND_COMPLETED which let
the stream buffer to use its own implementation, and then add an
pointer to the stream buffer's structure, and modify the
implementation of the buffer creating and initializing

Co-authored-by: eddie9712 <qw1562435@gmail.com>
.github/lexicon.txt
History.txt
include/FreeRTOS.h
include/message_buffer.h
include/mpu_prototypes.h
include/stream_buffer.h
portable/Common/mpu_wrappers.c
stream_buffer.c