pw_stream_uart_mcuxpresso: Make dma_stream Write of size 0 succeed This changes the behavior of the dma_stream implementation to always have a write of size 0 succeed, rather than returning "invalid argument". A write of size 0 is valid, and is required to be supported by the RPC system. This also matches the behavior of the non-DMA stream. Tested: Do a write of size 0, see that it succeeds Change-Id: I8c5712ad130a69bf6fbe9645dd01ce04408bdfd8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/214151 Reviewed-by: Austin Foxley <afoxley@google.com> Commit-Queue: Eli Lipsitz <elipsitz@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Reviewed-by: Christoph Klee <chklee@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/.