commit | 6ac2d4b370be1eef6bbc1fa0b5951fc60df04af9 | [log] [tgz] |
---|---|---|
author | Erik Gilling <konkers@google.com> | Thu Mar 14 00:27:42 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 14 00:27:42 2024 +0000 |
tree | 31d9282156e31a3d8074f657505273323e09f2c2 | |
parent | 04b24a89a24be81cd8ffac1df6e784f28d9e24bd [diff] |
pw_format: Add initial support for untyped specifiers * Introduces a %v format specifier for untyped data arguments. * For stable toolchains arguments must be annotated with their type using `value as type`. * Future support for the experimental feature `type-alias-impl-trait` will allow arguments to not be annotated. * Currently only i32 and u32 arguments are supported to keep this patch small. * pw_log_backend_println, pw_log_backend_printf, and pw_tokenizer are updated to work with the new APIs. Change-Id: I6af05ff3d76d57e60f80d79a0554dc85d0df0fe1 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/187650 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Erik Gilling <konkers@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/.