Fix SPI write function
Fix the SPI frequency, polarity and edge wrong config issue
Fix the SPI read function