stm32f4xx-hal
stm32f4xx-hal copied to clipboard
Rework SPI DMA Rx/Tx: keep Spi object inside, add release method to reuse it
To support txrx(), introduce two new structs, RxCoupled and TxCoupled, which work independently with DMA, but require each other to release the Spi object.