Extract CS "low/high"

Hi Ravis,

In preparation for the I2C porting, I have extracted the SPI-specific manipulation of the "CS" pin.

Thanks for all the work