changeset 1833:14804b5162ae

* src/spi_at91.c: Fixed negation of the chip select signal when not using a 4 to 16 decoder
author asl
date Fri, 12 Nov 2004 13:09:00 +0000
parents 9053ba5020a7
children 121da35df27b
files packages/devs/spi/arm/at91/current/ChangeLog packages/devs/spi/arm/at91/current/src/spi_at91.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/spi/arm/at91/current/ChangeLog
+++ b/packages/devs/spi/arm/at91/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-11  Sebastian Block <sebastianblock@gmx.net>
+
+        * src/spi_at91.c: Fixed negation of the chip select signal when
+	not using a 4 to 16 decoder
+
 2004-10-13  Savin Zlobec  <savin@elatec.si> 
 
         * src/spi_at91.c: Fixed a typo in spi_at91_transfer reported by
--- a/packages/devs/spi/arm/at91/current/src/spi_at91.c
+++ b/packages/devs/spi/arm/at91/current/src/spi_at91.c
@@ -266,7 +266,7 @@ spi_at91_start_transfer(cyg_spi_at91_dev
                      AT91_SPI_PIO_NPCS(~dev->dev_num));
 #else
     HAL_WRITE_UINT32(AT91_SPI_PIO+AT91_PIO_CODR,
-                     AT91_SPI_PIO_NPCS((~(1<<dev->dev_num)) & 0x0F));
+                      AT91_SPI_PIO_NPCS(1<<dev->dev_num));
 #endif
     CYGACC_CALL_IF_DELAY_US(dev->cs_up_udly);