SAMV7: Fix to SPI-Master driver. Without this the chip select decoding feature will not work properly

This commit is contained in:
Spahlinger, Michael
2016-11-03 09:22:33 -06:00
committed by Gregory Nutt
parent 96aba62fda
commit 77caf4180f
+1 -1
View File
@@ -626,7 +626,7 @@ static inline uint32_t spi_cs2pcs(struct sam_spics_s *spics)
#ifndef CONFIG_SAMV7_SPI_CS_DECODING
return ((uint32_t)1 << (spics->cs)) - 1;
#else
return spics->cs;
return spics->cs - 1;
#endif
}