General SPI driver (master mode) To activate a specific SPI peripheral, define flag USE_SPIX where X is your SPI peripheral number