Short version: could anyone point me to some applicable resources/examples for how to use SPI on an Arduino Portenta H7 in peripheral (slave) mode. I found a useful examples for setting this up in controller mode (for instance, here: Minimal example of SPI for Portenta H7), but am having a hard time adapting the non-Portenta Arduino code I've found for setting up a peripheral SPI device to the Portenta case.
That being said, the reason I want to do this is to quickly transfer data (float values) between two Portentas as quickly as possible. If someone else has a suggestion that would be faster (or as fast and easier to implement) please let me know.
Some background: I'm fairly new to Arduino programming - I am working on a project in which I am gathering a small set of analog inputs, performing some moderately complex computations on each of them to detect an event which then results in a TTL pulse when the event is detected. A key part of this project is that the time between input and output be kept minimal (I'm aiming at ~3000Hz). Given that a lot of the computation can be performed in parallel between the different input streams, I though I could have individual Portenta's getting the input, performing the pre-processing and then sending that output to a 'controller' Portenta which makes a decision based on their inputs. I tried, I2C, which does work but is much slower than I'd like and therefore takes a big bite out of the per cycle time left to do the actual computations.
Thanks!