The subsystem project can be found in the M0 SDK under MSP Subsystems folder.
Set up the I2C module in SysConfig. Set the device in Controller Mode and leave the rest of the
settings by default. Now navigate to the Interrupt configuration tab and enable
the TX Done and RX_FIFO_TRIGGER interrupts.
Set up the SPI module in SysConfig. Put the device in SPI Peripheral mode and leave the rest of
the settings on default. Now, navigate to the Interrupt configuration tab and
enable the Receive and Transmit interrupts.
Define the maximum packet size to the desired package size.