Skip to content

zbus: make CONFIG_HEAP_MEM_POOL_ADD_SIZE_ZBUS configurable #89012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

embRoobin
Copy link

#77631 introduces default non configurable values for zbus heap. This may result in insufficient heap size for application or soc,

This change :

  • introduces the option to configure the heap size, without changing the usability.
  • updates the documentation to refer to automatic heap calculation configuration when using zbus

Zbus currently does only support default heap sizes.
The configuration option allows to decrease rom-footprint for embedded
applications. Adding the option to ZBus improves its flexibility and
while not increasing its complexity.

Signed-off-by: Matthias Plöger <[email protected]>
Add and exchange global heap configuration CONFIG_HEAP_MEM_POOL_SIZE
against configuration used for auto heap calculation
CONFIG_HEAP_MEM_POOL_ADD_SIZE_ZBUS.
Add CONFIG_HEAP_MEM_POOL_ADD_SIZE_ZBUS as related configuration

Signed-off-by: Matthias Plöger <[email protected]>
Due to configuration option of value HEAP_MEM_POOL_ADD_SIZE_ZBUS,
the CONFIG gets defined with "" even if no other option is required.
To compensate the default value 0 is added.

Signed-off-by: Matthias Plöger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants