K20D5(0)M SPI code

Other pinouts still need to be done. PTC6 as MOSI possibly has issues.
There are also some changes which technically aren't required, but were
made in the search to why on earth it wasn't doing anything.