add SPI feature to work with M4