Fixed spi and uart configuration.