Made the number of SPI chip-selects configurable