Move SPI defines from config.h to spi.h.
Fix byteorder in debug output.