wip: fixed spi initialisation
fixed r/w mode handling