commit | 3d57eaa0f5ee5f9e21ad5f23cf270664c86c0c10 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Feb 01 18:31:07 2022 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Feb 05 00:48:41 2022 +0000 |
tree | 7264fb8b37808a82714bfdee5fcc27be71f51b8a | |
parent | 0e718cbd4b6716ad3a7ca979076aac00e08919b0 [diff] |
pw_rpc: Support dynamically adding channels - Create the PW_RPC_DYNAMIC_ALLOCATION config option, which enables dynamic allocation for channels. Dynamic allocation will also be used for encoding buffers in the future. - If dynamic allocation is enabled, store channels in a std::vector. Otherwise, use the current externally-allocated array. - Add an OpenChannel() endpoint function to complement CloseChannel(). - Expand tests for CloseChannel(). Add tests for OpenChannel() and deferred channel lookup. - Remove dynamic channel assignment in ProcessPacket. Channels should be assigned with OpenChannel() / CloseChannel() instead. Change-Id: I771b3ebb699f5d4a65943c1c41e5cd8a2d25bec4 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/82945 Reviewed-by: Erik Gilling <konkers@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/