Question
SPI DMA Multi-master
Hello
Im trying to implement the SPI "multimaster" functionality described in this_doc.
SPI networks can operate in a multi-master environment. This mode is used to connect two master nodes exclusively. When either node is not active, they are by default in a slave mode. When one node wants to take control of the bus, it switches itself into Master mode and asserts the Slave Select signal on the other node through a GPIO pin. Both Slave Select NSS pins work as a hardware input to detect potential bus collisions between nodes as only one can master the SPI bus at a single time. After the session is done, the active node master releases the Slave Select signal and returns back to passive slave mode waiting for the next session startI wonder what they mean by "switching to master mode"?
Do I use seperate handles for slave and master?
Or how is this done in practice?
What about open DMA jobs? Should a slave job be active at all times? And when "switching to master" should the slave DMA job be aborted?
Does anyone have any experience with this?
Thank you in advance!
BR Mikael
