altos/stm: Support SPI modes other than 0