/* Configures a chip select of a SPI peripheral. The chip select configuration is computed using the definition provided by the LibV3 (AT91C_SPI_*).  */
void SPI_ConfigureNPCS(AT91S_SPI *spi, unsigned int npcs, unsigned int configuration)
/* Configures a chip select of a SPI peripheral. The chip select configuration is computed using the definition provided by the LibV3 (AT91C_SPI_*).  */
void SPI_ConfigureNPCS(AT91S_SPI *spi, unsigned int npcs, unsigned int configuration)
{
    spi->SPI_CSR[npcs] = configuration;
}