Updated SPI configuration and semaphores.