use macros to generate SPI registers table and switches