void SPID_ConfigureCS(Spid *pSpid, unsigned char cs, unsigned int csr) { AT91S_SPI *pSpiHw = pSpid->pSpiHw; WRITE_SPI(pSpiHw, SPI_CSR[cs], csr); }