The subsystem project can be found in the M0 SDK under MSP Subsystems folder.
Set up the SPI module in SysConfig. Put the device in SPI Controller mode and leave the rest of
the settings on default. Now, navigate to the Interrupt configuration tab and
enable the Receive and Transmit interrupts.
Set up the I2C module in SysConfig. Set the device in Target Mode and leave the rest of the
settings by default. Now navigate to the Interrupt configuration tab and enable
the Start Detection, RX FIFO Trigger, TX FIFO Trigger, Stop Detection, TX FIFO
Underflow, Target Arbitration Lost, RX FIFO Overflow, and Interrupt Overflow
interrupts.
Define the maximum packet size to the desired package size.