This is a verilog code used oversampled clock to implement SPI slave. Also include C code for a ARM processor as the SPI master