ChibiOS: UARTDriver: init dma buffer
this change initializes the UART DMA buffers properly and also respects the OPTION_NODMA_RX and OPTION_NODMA_TX options.
Thanks for the contribution. Are you seeing an issue caused by this? ArduPilot zeros memory on allocation so member variables are assumed initialized.
I was finding that the driver was always using DMA for receiving data, even when I set the OPTION_NODMA_RX option flag. I traced this down to this line and found that rx_dma_enabled was always true. I then added the code to initialize rx_bounce_buf to nullptr and that fixed the problem.
What board and compiler?
CubeOrangePlus, arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
@peterbarker ok removed now
Ping @andyp1per - we're down to the single logical change now, and I think you're rather more qualified on this one than I am :-)
This is included in 4.6.2-beta1